結果

問題 No.3259 C++ → Rust → Python
ユーザー YU Hirose
提出日時 2025-09-09 12:52:52
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 209 bytes
コンパイル時間 1,468 ms
コンパイル使用メモリ 82,272 KB
実行使用メモリ 67,084 KB
最終ジャッジ日時 2025-09-09 12:52:56
合計ジャッジ時間 3,198 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 RE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

l, r = map(int, input().split())
a = list(range(l, r+1))
cnt = 0
for i in range(len(a)):
    if a[i] == 295 and a[i+1] == 296:
        cnt += 1
    if a[i] == 416 and a[i+1] == 417:
        cnt += 1
print(cnt)
0