結果
問題 | No.1140 EXPotentiaLLL! |
ユーザー | syunsuke |
提出日時 | 2020-09-16 22:20:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 342 ms |
コンパイル使用メモリ | 86,580 KB |
実行使用メモリ | 118,112 KB |
最終ジャッジ日時 | 2023-09-04 04:04:49 |
合計ジャッジ時間 | 9,025 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 595 ms
117,656 KB |
testcase_01 | AC | 558 ms
117,444 KB |
testcase_02 | WA | - |
testcase_03 | AC | 505 ms
116,540 KB |
testcase_04 | AC | 477 ms
116,436 KB |
testcase_05 | AC | 539 ms
117,032 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 317 ms
115,508 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 326 ms
115,412 KB |
ソースコード
P=[0 for i in range(5*10**6+1)] P[0]=1 P[1]=1 #print(len(P)) for i in range(2,len(P)): if P[i]==0: for j in range(2,len(P)): if i*j>5*10**6: break else: P[i*j]=1 import sys input=sys.stdin.readline Q=int(input()) for q in range(Q): A,T=map(int,input().split()) if P[T]==0: print(1) else: print(-1)