結果

問題 No.207 世界のなんとか
ユーザー ronpooronpoo
提出日時 2023-08-22 08:44:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 5,000 ms
コード長 279 bytes
コンパイル時間 366 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 71,604 KB
最終ジャッジ日時 2023-08-22 08:44:32
合計ジャッジ時間 3,061 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,604 KB
testcase_01 AC 70 ms
71,348 KB
testcase_02 AC 69 ms
71,396 KB
testcase_03 AC 69 ms
71,404 KB
testcase_04 AC 69 ms
71,296 KB
testcase_05 AC 70 ms
71,276 KB
testcase_06 AC 72 ms
71,432 KB
testcase_07 AC 70 ms
71,412 KB
testcase_08 AC 70 ms
71,504 KB
testcase_09 AC 70 ms
71,592 KB
testcase_10 AC 70 ms
71,092 KB
testcase_11 AC 68 ms
71,476 KB
testcase_12 AC 69 ms
71,500 KB
testcase_13 AC 69 ms
71,576 KB
testcase_14 AC 71 ms
71,384 KB
testcase_15 AC 70 ms
71,404 KB
testcase_16 AC 69 ms
71,248 KB
testcase_17 AC 69 ms
71,216 KB
testcase_18 AC 79 ms
71,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = []
for i in range(A, B+1):
    if i % 3 == 0:
        ans.append(i)
    else:
        s = str(i)
        for j in range(len(s)):
            if s[j] == '3':
                ans.append(i)
                break
        
print(*ans, sep='\n')
0