/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 0ms 316.0 KiB
#2 Wrong Answer 0ms 320.0 KiB

Code

#include <stdio.h>

int main() {
   int t,k;
   scanf("%d",&t);
   for(int i=0;i<t;i++){
       scanf("%d",&k);
       char p[]={'R','G','B'};
       char temp;
       for(int j=0;j<k;j++){
           temp=p[0];
           p[0]=p[1];
           p[1]=temp;
           
           temp=p[2];
           p[2]=p[1];
           p[1]=temp;
       }
       printf("%c%c%c\n",p[0],p[1],p[2]);
   }

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1010 Red Green Blue
Contest
Brain booster - 1
Language
C99 (GCC 13.2.0)
Submit At
2023-12-31 15:06:37
Judged At
2024-11-11 03:45:59
Judged By
Score
0
Total Time
0ms
Peak Memory
320.0 KiB