結果
| 問題 | No.1185 完全な3の倍数 |
| コンテスト | |
| ユーザー |
wagasa2
|
| 提出日時 | 2020-08-23 16:50:14 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 223 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,520 KB |
| 最終ジャッジ日時 | 2026-09-18 21:26:47 |
| 合計ジャッジ時間 | 11,091 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 38 |
ソースコード
no3times = {"1", "2", "4", "5", "7", "8"}
N = int(input())
ids = range(1, N+1)
Xs = [i for i in ids if (i % 3 == 0) and (len(str(i)) == 2 or (len(str(i)) > 2 and set(str(i)).isdisjoint(no3times)))]
#print(Xs)
print(len(Xs))
wagasa2