0
已解决
李锦昊
中级天翼
中级天翼
0分代码
#include<bits/stdc++.h>
using namespace std;
int k,t,n;
string s;
string a[10]={"","Red","Orange","Yellow","Green","Blue","Cyan","Purple"};
int main(){
cin>>n;
for(int j=1;j<=n;j++){
cin>>s>>k;
for(int i=1;i<=7;i++){
if(s==a[i]){
t=i;
}
} cout<<a[(t+k%7+1)%7]<<endl;
}
return 0;
}