結果
| 問題 | No.3253 Banned Product |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-04 03:16:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 82,616 KB |
| 実行使用メモリ | 66,256 KB |
| 最終ジャッジ日時 | 2025-09-05 05:29:16 |
| 合計ジャッジ時間 | 3,911 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 1 WA * 2 TLE * 1 -- * 5 |
ソースコード
from math import isqrt
def solve():
n, k = map(int, input().split())
while k <= n:
for d in range(1, isqrt(n)+1):
if n%d==0 and d <= k:
break
else:
print(n)
return
n -= 1
print(-1)
return
t = int(input())
for i in range(t):
solve()