結果

問題 No.3030 ミラー・ラビン素数判定法のテスト
ユーザー くれちーくれちー
提出日時 2019-02-15 02:04:14
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 9,799 ms / 9,973 ms
コード長 174 bytes
コンパイル時間 2,605 ms
コンパイル使用メモリ 151,188 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-07 22:59:39
合計ジャッジ時間 27,101 ms
ジャッジサーバーID
(参考情報)
judge3 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,384 KB
testcase_03 AC 3 ms
4,380 KB
testcase_04 AC 5,119 ms
4,376 KB
testcase_05 AC 4,807 ms
4,384 KB
testcase_06 AC 1,365 ms
4,376 KB
testcase_07 AC 1,315 ms
4,384 KB
testcase_08 AC 1,319 ms
4,376 KB
testcase_09 AC 9,799 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
  var n: int :: cui@input().toInt(&)
  for(1, n)
    var x: int :: cui@input().toInt(&)
    do cui@print("\{x} \{math@prime(x) ?('1', '0')}\n")
  end for
end func
0