結果
| 問題 |
No.87 Advent Calendar Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-13 20:23:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 5,000 ms |
| コード長 | 180 bytes |
| コンパイル時間 | 798 ms |
| コンパイル使用メモリ | 81,988 KB |
| 実行使用メモリ | 53,856 KB |
| 最終ジャッジ日時 | 2024-06-22 06:22:31 |
| 合計ジャッジ時間 | 2,709 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N = int(input()) - 2014 C, ANS = 0, (N // 400) * 57 N %= 400 for i in range(15, 15 + N): C += (1 + (i % 400 == 0 or (i % 100 != 0 and i % 4 == 0))) ANS += (C % 7 == 0) print(ANS)