結果
問題 |
No.1114 足し算盆に返らず
|
ユーザー |
![]() |
提出日時 | 2020-10-12 14:57:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 252 bytes |
コンパイル時間 | 244 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,904 KB |
最終ジャッジ日時 | 2024-07-20 17:59:57 |
合計ジャッジ時間 | 51,792 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 WA * 8 RE * 15 |
ソースコード
N=int(input()) if N==1: print(1) exit() D=[0]*(10**5+1) A=[] for i in range(2,N+1): if D[i]==0: A.append(i) n=i while n<=10**5: D[n]=1 n+=i for j in A: D[i+j]=1 print(*A)