結果
問題 |
No.1140 EXPotentiaLLL!
|
ユーザー |
|
提出日時 | 2021-01-28 17:50:22 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 286 ms |
コンパイル使用メモリ | 82,388 KB |
実行使用メモリ | 90,120 KB |
最終ジャッジ日時 | 2024-06-26 02:09:15 |
合計ジャッジ時間 | 8,649 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 1 |
other | TLE * 1 -- * 11 |
ソースコード
import math def is_prime(n): if n == 1: return False for k in range(2, int(math.sqrt(n)) + 1): if n % k == 0: return False return True t = int(input()) for _ in range(t): a, p = map(int, input().split()) if is_prime(p): print(1) else: print(-1)