結果
| 問題 |
No.843 Triple Primes
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-08 23:48:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 166 bytes |
| コンパイル時間 | 178 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 34,580 KB |
| 最終ジャッジ日時 | 2024-11-16 18:47:27 |
| 合計ジャッジ時間 | 5,781 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 37 WA * 5 |
ソースコード
n=int(input()) L=list(range(n)) s=set() for i in L: if L[i]<2:continue L[::i]=[0]*(n//i+(n%i>0)) s.add(i) c=0 a=set() for p in s: if p*p-2 in s: c+=2 print(c-1)