fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n, day;
  6. cin >> n;
  7. while (n--) {
  8. cin >> day;
  9. if (day % 3 == 1)
  10. cout<<"VGC"<<endl;
  11. else if (day % 3 == 2)
  12. cout<<"CVG"<<endl;
  13. else
  14. cout<<"GCV"<<endl;
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 15232KB
stdin
3
3
6 
9
stdout
GCV
GCV
GCV