結果
問題 |
No.8115 What day of week is it in N days?
|
ユーザー |
|
提出日時 | 2025-04-01 21:30:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 433 bytes |
コンパイル時間 | 1,652 ms |
コンパイル使用メモリ | 163,020 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-04-01 21:30:18 |
合計ジャッジ時間 | 2,287 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll,ll> P; #define REP(i,n) for(ll i=0;i<ll(n);i++) int main(void){ cin.tie(nullptr); ios_base::sync_with_stdio(false); ll i,j; ll N; cin >> N; vector<string> a(7); a[0]="Tuesday"; a[1]="Wednesday"; a[2]="Thursday"; a[3]="Friday"; a[4]="Saturday"; a[5]="Sunday"; a[6]="Monday"; cout << a[N%7] << endl; return 0; }