結果

問題 No.207 世界のなんとか
ユーザー matsu7874
提出日時 2015-10-07 13:31:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 5,000 ms
コード長 232 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-10-09 10:34:55
合計ジャッジ時間 1,363 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

def is_contain_3(n):
    while n > 0:
        if n % 10 == 3:
            return True
        n //= 10
    return False

A, B = map(int, input().split())

for i in range(A, B + 1):
    if i%3==0 or is_contain_3(i):
        print(i)
0