Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
32570 | chenyifei | 判定花色 | C++ | Accepted | 1 MS | 244 KB | 200 | 2023-12-01 21:55:27 |
#include<iostream> using namespace std; int main() { int n; cin>>n; if(n%6==1||n%6==2||n%6==3){ cout<<"红"; } else if(n%6==0){ cout<<"白"; } else cout<<"黄"; return 0; }