結果

問題 No.3030 ミラー・ラビン素数判定法のテスト
ユーザー neko_the_shadowneko_the_shadow
提出日時 2019-02-07 21:58:18
言語 Ruby
(3.3.0)
結果
AC  
実行時間 4,883 ms / 9,973 ms
コード長 97 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 19,456 KB
最終ジャッジ日時 2024-04-28 09:20:02
合計ジャッジ時間 12,374 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
18,944 KB
testcase_01 AC 107 ms
18,816 KB
testcase_02 AC 109 ms
18,816 KB
testcase_03 AC 107 ms
18,944 KB
testcase_04 AC 2,392 ms
19,456 KB
testcase_05 AC 2,226 ms
19,072 KB
testcase_06 AC 298 ms
19,200 KB
testcase_07 AC 295 ms
19,328 KB
testcase_08 AC 297 ms
19,328 KB
testcase_09 AC 4,883 ms
19,072 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'openssl';gets;STDIN.each{|x| x.strip!; puts "#{x} #{OpenSSL::BN.new(x).prime? ? 1 : 0}"}
0