結果

問題 No.201 yukicoderじゃんけん
ユーザー MaxMellonMaxMellon
提出日時 2015-10-09 03:02:04
言語 Ruby
(3.3.0)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 113 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 11,508 KB
実行使用メモリ 15,540 KB
最終ジャッジ日時 2023-09-27 08:13:53
合計ジャッジ時間 2,418 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
15,116 KB
testcase_01 AC 71 ms
15,232 KB
testcase_02 AC 70 ms
15,236 KB
testcase_03 AC 70 ms
15,344 KB
testcase_04 AC 72 ms
15,316 KB
testcase_05 AC 69 ms
15,412 KB
testcase_06 AC 73 ms
15,392 KB
testcase_07 AC 72 ms
15,224 KB
testcase_08 AC 70 ms
15,324 KB
testcase_09 AC 73 ms
15,360 KB
testcase_10 AC 75 ms
15,396 KB
testcase_11 AC 71 ms
15,072 KB
testcase_12 AC 75 ms
15,144 KB
testcase_13 AC 70 ms
15,420 KB
testcase_14 AC 72 ms
15,240 KB
testcase_15 AC 71 ms
15,540 KB
testcase_16 AC 72 ms
15,400 KB
testcase_17 AC 73 ms
15,404 KB
testcase_18 AC 75 ms
15,168 KB
testcase_19 AC 77 ms
15,388 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a = gets.chomp.split(' ')
b = gets.chomp.split(' ')
puts a[1] == b[1] ? -1 : a[1].to_i > b[1].to_i ? a[0] : b[0]
0