Wrong Answer
Code
#include <stdio.h>
int main(){
char str[] = "RGB";
int arrnum,temp;
scanf("%d",&arrnum);
int arrlist[arrnum];
for (int i = 0; i<arrnum; i+=1){
scanf("%d",&arrlist[i]);
printf("\n");
}
for (int i = 1; i<=arrnum; i+=1){
if (i%2 == 0){
temp = str[2];
str[2] = str[1];
str[1] = temp;
printf("%s\n",str);
}
else{
temp = str[0];
str[0] = str[1];
str[1] = temp;
printf("%s\n",str);
}
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1010 Red Green Blue
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2025-05-21 09:40:34
- Judged At
- 2025-05-21 09:40:34
- Judged By
- Score
- 60
- Total Time
- 1ms
- Peak Memory
- 540.0 KiB