結果
問題 | No.87 Advent Calendar Problem |
ユーザー |
|
提出日時 | 2015-02-16 02:09:23 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 11 ms / 5,000 ms |
コード長 | 207 bytes |
コンパイル時間 | 119 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 20:39:00 |
合計ジャッジ時間 | 1,448 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
N = int(raw_input())-2014M = N%400ans = N/400*57k = 0for i in xrange(2015,2015+M):if i%400 == 0 or not (i%100 == 0) and i%4 == 0: k += 2else: k += 1k %= 7if k == 0: ans += 1print ans