結果

問題 No.207 世界のなんとか
ユーザー TeraokaAkihiroTeraokaAkihiro
提出日時 2016-10-22 19:56:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 271 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 8,040 KB
最終ジャッジ日時 2023-08-15 11:06:07
合計ジャッジ時間 1,251 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,936 KB
testcase_01 AC 15 ms
7,876 KB
testcase_02 AC 13 ms
7,996 KB
testcase_03 AC 14 ms
7,936 KB
testcase_04 AC 14 ms
7,992 KB
testcase_05 AC 15 ms
7,956 KB
testcase_06 AC 14 ms
7,932 KB
testcase_07 AC 13 ms
8,040 KB
testcase_08 AC 13 ms
7,920 KB
testcase_09 AC 13 ms
7,900 KB
testcase_10 AC 13 ms
7,856 KB
testcase_11 AC 13 ms
7,856 KB
testcase_12 AC 14 ms
7,952 KB
testcase_13 AC 14 ms
8,000 KB
testcase_14 AC 14 ms
8,000 KB
testcase_15 AC 13 ms
7,868 KB
testcase_16 AC 14 ms
7,924 KB
testcase_17 AC 14 ms
7,956 KB
testcase_18 AC 16 ms
7,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math;
a,b = input().split();
j = i = 0;
for i in range(int(a),int(b)+1):
    j = i;
    if (i%3 == 0):
        print(i);
    else:
        while(j > 0):
            if (j%10 == 3):
                print(i);
                break;
            j = math.floor(j/10);
0