結果

問題 No.207 世界のなんとか
ユーザー moon17moon17
提出日時 2022-05-14 17:39:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 5,000 ms
コード長 217 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 71,440 KB
最終ジャッジ日時 2023-09-30 09:31:18
合計ジャッジ時間 2,534 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,224 KB
testcase_01 AC 63 ms
71,228 KB
testcase_02 AC 64 ms
71,440 KB
testcase_03 AC 63 ms
71,372 KB
testcase_04 AC 62 ms
71,392 KB
testcase_05 AC 65 ms
71,224 KB
testcase_06 AC 64 ms
71,116 KB
testcase_07 AC 61 ms
71,140 KB
testcase_08 AC 63 ms
71,344 KB
testcase_09 AC 64 ms
71,392 KB
testcase_10 AC 63 ms
71,364 KB
testcase_11 AC 65 ms
71,204 KB
testcase_12 AC 62 ms
71,340 KB
testcase_13 AC 67 ms
71,368 KB
testcase_14 AC 68 ms
71,004 KB
testcase_15 AC 66 ms
71,144 KB
testcase_16 AC 65 ms
71,392 KB
testcase_17 AC 67 ms
71,276 KB
testcase_18 AC 67 ms
71,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())
for i in range(A, B+1):
    if i%3 == 0:
        print(i)
    else:
        for j in range(len(str(i))):
            if str(i)[j] == "3":
                print(i)
                break
0