#include<cstdio> int n,a,o;int main(){scanf("%d",&n);while(n--&&scanf("%d",&a))o+=a==1;printf("%d\n2\n1 2",o>2?0:2-o);}
1 2 | #include<cstdio> int n,a,o;int main(){scanf("%d",&n);while(n--&&scanf("%d",&a))o+=a==1;printf("%d\n2\n1 2",o>2?0:2-o);} |
#include<cstdio> int n,a,o;int main(){scanf("%d",&n);while(n--&&scanf("%d",&a))o+=a==1;printf("%d\n2\n1 2",o>2?0:2-o);}
1 2 | #include<cstdio> int n,a,o;int main(){scanf("%d",&n);while(n--&&scanf("%d",&a))o+=a==1;printf("%d\n2\n1 2",o>2?0:2-o);} |