結果
| 問題 | No.8115 What day of week is it in N days? | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-04-03 11:53:39 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 415 bytes | 
| コンパイル時間 | 917 ms | 
| コンパイル使用メモリ | 77,820 KB | 
| 実行使用メモリ | 7,716 KB | 
| 最終ジャッジ日時 | 2025-04-03 11:53:42 | 
| 合計ジャッジ時間 | 1,635 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 19 | 
ソースコード
#include <iostream>
#include <cstdint>
using namespace std;
static inline constexpr const char* solve(const uint32_t N) noexcept
{
	constexpr const char* days[] =
	{
		"Tuesday",
		"Wednesday",
		"Thursday",
		"Friday",
		"Saturday",
		"Sunday",
		"Monday"
	};
	return days[N % 7];
}
int main()
{
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	uint32_t N;
	cin >> N;
	cout << solve(N) << '\n';
	return 0;
}
            
            
            
        