結果

問題 No.2 素因数ゲーム
ユーザー cielciel
提出日時 2014-12-10 04:25:32
言語 Ruby
(3.3.0)
結果
AC  
実行時間 93 ms / 5,000 ms
コード長 87 bytes
コンパイル時間 544 ms
コンパイル使用メモリ 11,344 KB
実行使用メモリ 15,544 KB
最終ジャッジ日時 2023-08-27 03:36:35
合計ジャッジ時間 4,606 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
15,240 KB
testcase_01 AC 92 ms
15,292 KB
testcase_02 AC 92 ms
15,328 KB
testcase_03 AC 91 ms
15,176 KB
testcase_04 AC 91 ms
15,404 KB
testcase_05 AC 92 ms
15,232 KB
testcase_06 AC 90 ms
15,324 KB
testcase_07 AC 91 ms
15,180 KB
testcase_08 AC 91 ms
15,380 KB
testcase_09 AC 92 ms
15,324 KB
testcase_10 AC 93 ms
15,164 KB
testcase_11 AC 91 ms
15,296 KB
testcase_12 AC 91 ms
15,180 KB
testcase_13 AC 93 ms
15,292 KB
testcase_14 AC 90 ms
15,100 KB
testcase_15 AC 93 ms
15,192 KB
testcase_16 AC 93 ms
15,184 KB
testcase_17 AC 92 ms
15,248 KB
testcase_18 AC 92 ms
15,380 KB
testcase_19 AC 92 ms
15,192 KB
testcase_20 AC 91 ms
15,368 KB
testcase_21 AC 92 ms
15,184 KB
testcase_22 AC 93 ms
15,424 KB
testcase_23 AC 93 ms
15,248 KB
testcase_24 AC 90 ms
15,264 KB
testcase_25 AC 93 ms
15,168 KB
testcase_26 AC 91 ms
15,240 KB
testcase_27 AC 91 ms
15,540 KB
testcase_28 AC 92 ms
15,252 KB
testcase_29 AC 93 ms
15,324 KB
testcase_30 AC 92 ms
15,544 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
/usr/bin/ruby: warning: shebang line ending with \r may cause problems
Syntax OK

ソースコード

diff #

#!ruby -rprime
puts gets.to_i.prime_division.reduce(0){|s,(n,p)|s^p}>0 ? :Alice : :Bob
0