結果

問題 No.207 世界のなんとか
ユーザー maguroguma
提出日時 2017-07-27 18:20:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 350 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-10 02:11:37
合計ジャッジ時間 1,513 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

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

for i in range(A, B+1):
    if i % 3 == 0 and i != 0:
        print(i)
    else:
        quotient = i
        while quotient != 0:
            number = quotient % 10
            if number == 3:
                print(i)
                break
            else:
                quotient //= 10
0