shipuahamed.com
LightOJ 1020 – A Childhood Game | Shipu's Blog
Problem:- long n,t,no=0; char s[7]; scanf("%ld",&t); while(t--) { scanf("%ld%s",&n,s); if(strcmp(s,"Alice")==0) { if(n%3==1) printf("Case %d: Bobn",++no); else printf("Case %d: Alicen",++no); } else { if(n%3==0) printf("Case %d: Alicen",++no); &nbsp