Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<cstdio>
- int main()
- {
- int test,t=0,a,b,p;
- scanf("%d",&test);
- while(test--)
- {
- scanf("%d%d",&a,&b);
- p=(a+b)%3;
- if(p==0)
- printf("Case %d# All Groups Are OK\n",++t);
- else
- printf("Case %d# %d\n",++t,p);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement