結果

問題 No.3259 C++ → Rust → Python
ユーザー YU Hirose
提出日時 2025-09-09 12:56:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 592 ms
コンパイル使用メモリ 82,660 KB
実行使用メモリ 54,048 KB
最終ジャッジ日時 2025-09-09 12:57:01
合計ジャッジ時間 2,786 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

l, r = map(int, input().split())
a = list(range(l, r+1)) + [0]
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