| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 71023 | sh25_ganzy | 计算星期几 | C++ | Accepted | 0 MS | 256 KB | 502 | 2025-10-24 12:48:23 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,w=1; cin>>a>>b; for(int i=0;i<b;i++){ w*=a; w%=7; } if(w==0){ cout<<"Sun"; }else if(w==1){ cout<<"Mon"; }else if(w==2){ cout<<"Tues"; }else if(w==3){ cout<<"Wednes"; }else if(w==4){ cout<<"Thurs"; }else if(w==5){ cout<<"Fri"; }else if(w==6){ cout<<"Satur"; } cout<<"day"; return 0; }