結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2024-10-22 00:15:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 5,000 ms |
コード長 | 553 bytes |
コンパイル時間 | 238 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-22 00:15:25 |
合計ジャッジ時間 | 2,078 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
def main():a, b = map(int, input().split(' '))if a == b:if judge(a):print(a)else:for i in range(a, b+1):if judge(i):print(i)def judge(i: int):if i%3 == 0:return Trueif judge_exists3(i):return Truereturn Falsedef judge_exists3(i):if int(i%10) == 3:return Trueif int(i) == 3:return Trueif i < 10:return Falseelse:return judge_exists3(i//10)if __name__ == '__main__':main()