結果

問題 No.201 yukicoderじゃんけん
ユーザー yamaghyamagh
提出日時 2015-08-15 14:37:40
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 145 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,456 KB
実行使用メモリ 15,644 KB
最終ジャッジ日時 2023-09-25 12:04:09
合計ジャッジ時間 2,716 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,140 KB
testcase_01 AC 80 ms
15,132 KB
testcase_02 AC 80 ms
15,048 KB
testcase_03 AC 81 ms
15,356 KB
testcase_04 AC 80 ms
15,472 KB
testcase_05 AC 80 ms
15,356 KB
testcase_06 AC 80 ms
15,304 KB
testcase_07 AC 81 ms
15,288 KB
testcase_08 AC 81 ms
15,344 KB
testcase_09 AC 80 ms
15,400 KB
testcase_10 AC 81 ms
15,192 KB
testcase_11 AC 81 ms
15,180 KB
testcase_12 AC 82 ms
15,296 KB
testcase_13 AC 81 ms
15,372 KB
testcase_14 AC 81 ms
15,152 KB
testcase_15 AC 84 ms
15,644 KB
testcase_16 AC 83 ms
15,420 KB
testcase_17 AC 81 ms
15,412 KB
testcase_18 AC 80 ms
15,240 KB
testcase_19 AC 81 ms
15,496 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

user1=gets.chomp.split
user2=gets.chomp.split
if user1[1] == user2[1]
  p -1
else
  puts user1[1].to_i < user2[1].to_i ? user2[0] : user1[0]
end
0