結果

問題 No.87 Advent Calendar Problem
ユーザー ytftytft
提出日時 2022-11-10 00:33:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 5,000 ms
コード長 206 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 86,988 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-09-30 11:09:30
合計ジャッジ時間 4,773 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
71,552 KB
testcase_01 AC 89 ms
71,256 KB
testcase_02 AC 88 ms
71,132 KB
testcase_03 AC 92 ms
71,128 KB
testcase_04 AC 88 ms
71,268 KB
testcase_05 AC 86 ms
71,196 KB
testcase_06 AC 87 ms
71,456 KB
testcase_07 AC 86 ms
71,192 KB
testcase_08 AC 87 ms
71,396 KB
testcase_09 AC 88 ms
71,508 KB
testcase_10 AC 86 ms
71,504 KB
testcase_11 AC 86 ms
71,372 KB
testcase_12 AC 87 ms
71,504 KB
testcase_13 AC 89 ms
71,244 KB
testcase_14 AC 89 ms
71,400 KB
testcase_15 AC 88 ms
71,584 KB
testcase_16 AC 88 ms
71,488 KB
testcase_17 AC 89 ms
71,584 KB
testcase_18 AC 88 ms
71,364 KB
testcase_19 AC 90 ms
71,500 KB
testcase_20 AC 87 ms
71,420 KB
testcase_21 AC 88 ms
71,416 KB
testcase_22 AC 89 ms
71,504 KB
testcase_23 AC 88 ms
71,132 KB
testcase_24 AC 89 ms
71,576 KB
testcase_25 AC 88 ms
71,580 KB
testcase_26 AC 90 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,copy
input=lambda:sys.stdin.readline().rstrip()
N=int(input())-2014
cur=0
ans=(N//400)*57
N%=400
for i in range(15,15+N):
	cur+=(1+(i%400==0 or (i%100!=0 and i%4==0)))
	ans+=(cur%7==0)
print(ans)
0