結果
| 問題 | No.87 Advent Calendar Problem | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2015-02-15 23:11:25 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 177 bytes | 
| コンパイル時間 | 73 ms | 
| コンパイル使用メモリ | 7,040 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-06-23 20:24:10 | 
| 合計ジャッジ時間 | 1,333 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 14 WA * 10 | 
ソースコード
d = 6
ds = [0]*400
for i in xrange(400):
    d = (d + (i%4 if i%4 > 0 else 1 if i%100 < 1 else 2))%7
    ds[i] = d
N = int(raw_input())-2000
print N/400*57+ds[:N%400].count(3)-3
            
            
            
        