結果
| 問題 |
No.407 鴨等素数間隔列の数え上げ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-19 21:30:12 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 172 bytes |
| コンパイル時間 | 607 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 245,808 KB |
| 最終ジャッジ日時 | 2024-12-17 18:18:58 |
| 合計ジャッジ時間 | 8,068 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 2 |
| other | AC * 20 WA * 9 TLE * 2 |
ソースコード
m,l=map(int,input().split()) n=l//(m-1) L=list(range(n)) P=set() for i in L: if L[i]<2:continue L[::i]=[0]*(n//i+(n%i>0)) P.add(i) c=0 for p in P:c+=l-(m-1)*p+1 print(c)