結果
| 問題 |
No.1528 Not 1
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-11-28 21:26:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 507 bytes |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 82,168 KB |
| 実行使用メモリ | 87,512 KB |
| 最終ジャッジ日時 | 2024-11-28 21:26:57 |
| 合計ジャッジ時間 | 6,040 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 19 |
ソースコード
N = int(input())
def seachPrimeNum(N):
if N == 2:
return []
max = int(N**0.5)
seachList = [i for i in range(2,N+1)]
primeNum = []
while seachList[0] <= max:
primeNum.append(seachList[0])
tmp = seachList[0]
seachList = [i for i in seachList if i % tmp != 0]
primeNum.extend(seachList)
return primeNum
N2 = -(-N//2)
PL = seachPrimeNum(10**5)
X = [2**i for i in range(1,12)]
ans = []
for i in range(N2):
ans.append(X[i%11]*PL[i//11])
print(*ans)
ntuda