結果
問題 |
No.1059 素敵な集合
|
ユーザー |
![]() |
提出日時 | 2020-05-22 22:52:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 316 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-05 19:38:02 |
合計ジャッジ時間 | 4,936 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 2 WA * 17 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() l,r=map(int,input().split()) D=[1]*(r+1) for i in range(r+1): if i<l: D[i]=0 else: mul=2 while mul*i<=r: D[mul*i]=0 mul+=1 print(sum(D)-1)