結果
| 問題 | No.8115 What day of week is it in N days? | 
| コンテスト | |
| ユーザー |  ゼリトキ | 
| 提出日時 | 2025-04-01 21:21:53 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 494 bytes | 
| コンパイル時間 | 3,287 ms | 
| コンパイル使用メモリ | 274,572 KB | 
| 実行使用メモリ | 7,716 KB | 
| 最終ジャッジ日時 | 2025-04-01 21:21:57 | 
| 合計ジャッジ時間 | 4,013 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 19 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
#define mod 998244353
int main(){
    cin.tie(0)->sync_with_stdio(0);
    cout.tie(0);
    int N;
    cin>>N;
    N%=7;
    if(N==0) cout<<"Tuesday"<<endl;
    if(N==1) cout<<"Wednesday"<<endl;
    if(N==2) cout<<"Thursday"<<endl;
    if(N==3) cout<<"Friday"<<endl;
    if(N==4) cout<<"Saturday"<<endl;
    if(N==5) cout<<"Sunday"<<endl;
    if(N==6) cout<<"Monday"<<endl;
}
            
            
            
        