Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int a,wa,ac;
- char x[100];
- int main()
- {
- scanf("%d\n",&a);
- for(int i=0;i<a;i++)
- {
- scanf("%c",&x[i]);
- if(x[i]==x[i-1])
- {
- wa=wa+1;
- }
- else
- {
- ac=ac+1;
- }
- }
- if(wa==0)
- {
- printf("Accepted");
- }
- else
- printf("Wrong Answer");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement