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