結果

問題 No.207 世界のなんとか
ユーザー MarioMario
提出日時 2018-05-01 18:10:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 8,620 KB
最終ジャッジ日時 2023-09-10 08:45:08
合計ジャッジ時間 1,676 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,580 KB
testcase_01 AC 19 ms
8,620 KB
testcase_02 AC 18 ms
8,516 KB
testcase_03 AC 19 ms
8,588 KB
testcase_04 AC 18 ms
8,608 KB
testcase_05 AC 18 ms
8,592 KB
testcase_06 AC 18 ms
8,420 KB
testcase_07 AC 18 ms
8,516 KB
testcase_08 AC 18 ms
8,456 KB
testcase_09 AC 18 ms
8,604 KB
testcase_10 AC 19 ms
8,580 KB
testcase_11 AC 19 ms
8,564 KB
testcase_12 AC 19 ms
8,432 KB
testcase_13 AC 18 ms
8,436 KB
testcase_14 AC 18 ms
8,512 KB
testcase_15 AC 19 ms
8,596 KB
testcase_16 AC 19 ms
8,472 KB
testcase_17 AC 18 ms
8,604 KB
testcase_18 AC 18 ms
8,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

a, b = map(int, input().split())

for n in range(a, b+1):
    if n % 3 == 0:
        print(n)
    elif Counter(str(n))["3"] > 0:
        print(n)
0