結果

問題 No.3030 ミラー・ラビン素数判定法のテスト
ユーザー kk_ken_kenkk_ken_ken
提出日時 2018-12-20 22:12:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 201 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-29 13:08:20
合計ジャッジ時間 12,302 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 31 ms
10,496 KB
testcase_02 AC 33 ms
10,496 KB
testcase_03 AC 463 ms
10,496 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

for i in range(n):
    x = int(input())
    for j in range(2,x//2 + 1):
        if x % j == 0 :
            print(x,0)
            break
        if j == x // 2:
            print(x,1)
0