結果

問題 No.8115 What day of week is it in N days?
コンテスト
ユーザー daiota
提出日時 2025-04-01 21:30:15
言語 C++14
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 0 ms / 2,000 ms
コード長 433 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 835 ms
コンパイル使用メモリ 185,820 KB
実行使用メモリ 9,224 KB
最終ジャッジ日時 2026-07-08 06:34:36
合計ジャッジ時間 2,024 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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;
}
0