結果

問題 No.1140 EXPotentiaLLL!
ユーザー ytftytft
提出日時 2021-05-07 18:48:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 214 bytes
コンパイル時間 1,453 ms
コンパイル使用メモリ 86,228 KB
実行使用メモリ 117,632 KB
最終ジャッジ日時 2023-10-13 09:57:03
合計ジャッジ時間 17,871 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,428 ms
116,896 KB
testcase_01 AC 1,444 ms
116,796 KB
testcase_02 WA -
testcase_03 AC 1,241 ms
116,884 KB
testcase_04 AC 1,028 ms
116,732 KB
testcase_05 AC 1,450 ms
117,092 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 324 ms
115,836 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

t=5000001
A=[1 for i in range(t)]
for i in range(2,t):
    if A[i]:
        for j in range(2*i,t,i):
            A[j]=0
N=int(input())
for i in range(N):
    print(1 if A[list(map(int,input().split()))[1]] else -1)
0