結果
| 問題 |
No.407 鴨等素数間隔列の数え上げ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-19 21:31:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 174 bytes |
| コンパイル時間 | 342 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 245,716 KB |
| 最終ジャッジ日時 | 2024-12-17 18:20:28 |
| 合計ジャッジ時間 | 7,642 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 29 TLE * 2 |
ソースコード
m,l=map(int,input().split()) n=l//(m-1)+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)