結果

問題 No.8115 What day of week is it in N days?
ユーザー wsrtrt
提出日時 2025-04-01 21:22:39
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 724 bytes
コンパイル時間 3,079 ms
コンパイル使用メモリ 275,852 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-04-01 21:22:45
合計ジャッジ時間 3,767 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto& i:a)
#define ff first 
#define ss second 
#define all(a) begin(a),end(a)
#define allr(a) rbegin(a),rend(a)
#define pb push_back
using namespace std;
using ll =long long;
using pii=pair<int,int>;
using pll=pair<ll,ll>;
using vi=vector<int>;
using vll=vector<ll>;
template<class T> inline bool chmin(T& a,T b){return a>b?a=b,1:0;}
template<class T> inline bool chmax(T& a,T b){return a<b?a=b,1:0;}

void solve(){
    
}
int main(){
    vector<string> v={"Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","Monday"};
    ll n;cin>>n;
    cout<<v[n%7]<<'\n';

    return 0;
}
/*

*/
0