結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2021-05-31 23:36:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 442 bytes |
コンパイル時間 | 261 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-09 00:00:18 |
合計ジャッジ時間 | 1,400 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
A, B = map(int, input().split()) sample = list(range(A,B+1)) def gen(n): if n < 10: yield n else: for j in gen(n/10): yield j yield n%10 for i in range(len(sample)): testNum = sample[i] if testNum % 3 == 0 or testNum % 10 == 3: print(testNum) else: testl = [int(k) for k in gen(testNum)] if 3 in testl: print(testNum) else: pass