結果

問題 No.312 置換処理
ユーザー hirokazu1020hirokazu1020
提出日時 2015-12-05 00:38:37
言語 Ruby
(3.2.2)
結果
AC  
実行時間 187 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 877 ms
コンパイル使用メモリ 11,168 KB
実行使用メモリ 15,572 KB
最終ジャッジ日時 2023-08-09 15:37:08
合計ジャッジ時間 7,725 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
15,356 KB
testcase_01 AC 138 ms
15,524 KB
testcase_02 AC 187 ms
15,444 KB
testcase_03 AC 155 ms
15,572 KB
testcase_04 AC 88 ms
15,236 KB
testcase_05 AC 90 ms
15,352 KB
testcase_06 AC 94 ms
15,432 KB
testcase_07 AC 115 ms
15,492 KB
testcase_08 AC 93 ms
15,480 KB
testcase_09 AC 97 ms
15,472 KB
testcase_10 AC 87 ms
15,292 KB
testcase_11 AC 97 ms
15,524 KB
testcase_12 AC 89 ms
15,336 KB
testcase_13 AC 90 ms
15,136 KB
testcase_14 AC 92 ms
15,080 KB
testcase_15 AC 94 ms
15,528 KB
testcase_16 AC 94 ms
15,308 KB
testcase_17 AC 103 ms
15,284 KB
testcase_18 AC 95 ms
15,328 KB
testcase_19 AC 91 ms
15,288 KB
testcase_20 AC 96 ms
15,472 KB
testcase_21 AC 92 ms
15,200 KB
testcase_22 AC 88 ms
15,136 KB
testcase_23 AC 89 ms
15,136 KB
testcase_24 AC 86 ms
15,324 KB
testcase_25 AC 89 ms
15,332 KB
testcase_26 AC 90 ms
15,248 KB
testcase_27 AC 89 ms
15,384 KB
testcase_28 AC 87 ms
15,192 KB
testcase_29 AC 89 ms
15,196 KB
testcase_30 AC 100 ms
15,388 KB
testcase_31 AC 100 ms
15,520 KB
testcase_32 AC 101 ms
15,548 KB
testcase_33 AC 125 ms
15,284 KB
testcase_34 AC 125 ms
15,560 KB
testcase_35 AC 101 ms
15,524 KB
testcase_36 AC 94 ms
15,380 KB
testcase_37 AC 89 ms
15,108 KB
testcase_38 AC 89 ms
15,108 KB
testcase_39 AC 89 ms
15,184 KB
testcase_40 AC 88 ms
15,336 KB
testcase_41 AC 90 ms
15,188 KB
testcase_42 AC 91 ms
15,240 KB
testcase_43 AC 90 ms
15,368 KB
testcase_44 AC 90 ms
15,356 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'prime'
a=gets.to_i.prime_division;
x=1145141919810
x=[x,4].min if a[0][0]==2 && a[0][1]>1
x=[x,a[0][0]].min if a[0][0]!=2
x=[x,a[1][0]].min if a.length>1
p x
0