Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
56205 | xuxingping | 判定花色 | C++ | Accepted | 0 MS | 244 KB | 252 | 2024-11-09 21:22:23 |
#include<bits/stdc++.h> using namespace std; int main(){ long long a; cin>>a; int b=a%6; if(b==1||b==2||b==3){ cout<<"红"; return 0; } if(b==5||b==4){ cout<<"黄"; return 0; } if(b==0){ cout<<"白"; return 0; } }