結果

問題 No.726 Tree Game
ユーザー letrangerjpletrangerjp
提出日時 2018-08-24 22:21:19
言語 Ruby
(3.3.0)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 11,504 KB
実行使用メモリ 15,596 KB
最終ジャッジ日時 2023-09-05 12:15:32
合計ジャッジ時間 3,977 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
15,496 KB
testcase_01 AC 94 ms
15,172 KB
testcase_02 AC 95 ms
15,560 KB
testcase_03 AC 97 ms
15,336 KB
testcase_04 AC 94 ms
15,460 KB
testcase_05 AC 95 ms
15,576 KB
testcase_06 AC 95 ms
15,424 KB
testcase_07 AC 97 ms
15,332 KB
testcase_08 AC 95 ms
15,108 KB
testcase_09 AC 96 ms
15,400 KB
testcase_10 AC 97 ms
15,420 KB
testcase_11 AC 96 ms
15,356 KB
testcase_12 AC 96 ms
15,500 KB
testcase_13 AC 96 ms
15,128 KB
testcase_14 AC 95 ms
15,596 KB
testcase_15 AC 95 ms
15,412 KB
testcase_16 AC 95 ms
15,172 KB
testcase_17 AC 95 ms
15,456 KB
testcase_18 AC 96 ms
15,384 KB
testcase_19 AC 95 ms
15,408 KB
testcase_20 AC 96 ms
15,320 KB
testcase_21 AC 94 ms
15,572 KB
testcase_22 AC 95 ms
15,420 KB
testcase_23 AC 94 ms
15,276 KB
testcase_24 AC 97 ms
15,184 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!ruby -parprime
$_=$F.map!(&:to_i).all?(&:prime?)||$F.any?(2)||$F.map{|n|(n+1..9e99).find(&:prime?)-n}.sum&1<1?:Second: :First
0