結果

問題 No.857 素振り
ユーザー mossari_aozoramossari_aozora
提出日時 2019-10-01 15:54:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 264 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 17,572 KB
最終ジャッジ日時 2024-04-14 08:37:17
合計ジャッジ時間 2,915 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
17,572 KB
testcase_01 AC 31 ms
10,752 KB
testcase_02 AC 31 ms
10,624 KB
testcase_03 AC 31 ms
10,624 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

line = input().split(" ")

# 休み
holiday1 = int(line[0])
holiday2 = int(line[1])
# 計測終了日
endAt = int(line[2])

i = 1
cnt = 0
while i <= endAt:

    if (i in (holiday1, holiday2)):
        i += 1
        continue
    i += 1
    cnt += 1
    
print(cnt)
0