結果
問題 |
No.3253 Banned Product
|
ユーザー |
![]() |
提出日時 | 2025-09-06 02:20:05 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 243 bytes |
コンパイル時間 | 288 ms |
コンパイル使用メモリ | 82,840 KB |
実行使用メモリ | 65,636 KB |
最終ジャッジ日時 | 2025-09-06 02:20:10 |
合計ジャッジ時間 | 4,142 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 1 TLE * 1 -- * 5 |
ソースコード
def f(x,k): for i in range(1,k+1): if x%i<1 and x//i<=k:return 0 return 1 for i in range(int(input())): n,k=map(int,input().split());p=250 while n*p: if f(n,k):print(n);break n-=1;p-=1 else:print(-1)