結果

問題 No.87 Advent Calendar Problem
ユーザー roiti46roiti46
提出日時 2015-02-15 23:11:25
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 6,648 KB
実行使用メモリ 6,104 KB
最終ジャッジ日時 2023-09-06 01:19:23
合計ジャッジ時間 1,621 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,084 KB
testcase_01 AC 13 ms
5,972 KB
testcase_02 WA -
testcase_03 AC 11 ms
6,036 KB
testcase_04 AC 12 ms
5,920 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 11 ms
6,100 KB
testcase_08 WA -
testcase_09 AC 11 ms
5,972 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 11 ms
5,868 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 12 ms
5,972 KB
testcase_17 AC 11 ms
5,896 KB
testcase_18 WA -
testcase_19 AC 11 ms
5,948 KB
testcase_20 AC 11 ms
5,948 KB
testcase_21 WA -
testcase_22 AC 11 ms
5,856 KB
testcase_23 AC 11 ms
5,936 KB
testcase_24 AC 11 ms
5,984 KB
testcase_25 AC 11 ms
6,104 KB
testcase_26 AC 12 ms
5,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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
0