結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-19 11:46:31 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 363 bytes |
| 記録 | |
| コンパイル時間 | 551 ms |
| コンパイル使用メモリ | 20,884 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2026-03-19 11:46:39 |
| 合計ジャッジ時間 | 6,357 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 19 |
ソースコード
numbers = range(1, 40)
result =[]
for n in numbers:
#3の倍数かどうか。
multiple_3 = (n%3 == 0)
#3のつく数字かどうか。
contains_3 = ('3' in str(n))
if multiple_3 or contains_3:
result.append(n)
#ソート関数を用いて小さい順に並べる
result = sorted(set(result))
print(result)