結果

問題 No.207 世界のなんとか
ユーザー Fullmoon85072Fullmoon85072
提出日時 2020-08-01 16:36:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 287 bytes
コンパイル時間 353 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 71,612 KB
最終ジャッジ日時 2023-09-22 10:58:43
合計ジャッジ時間 2,557 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,376 KB
testcase_01 AC 71 ms
71,612 KB
testcase_02 AC 72 ms
71,244 KB
testcase_03 AC 71 ms
71,244 KB
testcase_04 AC 78 ms
71,132 KB
testcase_05 AC 73 ms
71,372 KB
testcase_06 AC 71 ms
71,288 KB
testcase_07 AC 71 ms
71,280 KB
testcase_08 AC 69 ms
71,288 KB
testcase_09 AC 70 ms
71,448 KB
testcase_10 AC 73 ms
71,240 KB
testcase_11 AC 73 ms
71,516 KB
testcase_12 AC 72 ms
71,428 KB
testcase_13 AC 73 ms
71,244 KB
testcase_14 AC 71 ms
71,464 KB
testcase_15 AC 70 ms
71,432 KB
testcase_16 AC 72 ms
71,420 KB
testcase_17 AC 71 ms
71,092 KB
testcase_18 AC 69 ms
71,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

line = input().split(" ")
min_num = int(line[0])
max_num = int(line[1])

for x in range(min_num, max_num+1):

    # 3の倍数
    if x % 3 == 0:
        print(x)
        continue

    # 3のつく数
    for ch in str(x):
        if ch == '3':
            print(x)
            break
0