結果

問題 No.201 yukicoderじゃんけん
ユーザー yamaghyamagh
提出日時 2015-08-15 14:19:24
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 135 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 11,364 KB
実行使用メモリ 15,332 KB
最終ジャッジ日時 2023-09-25 12:04:06
合計ジャッジ時間 3,099 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,128 KB
testcase_01 AC 80 ms
15,132 KB
testcase_02 AC 83 ms
15,284 KB
testcase_03 AC 80 ms
15,044 KB
testcase_04 WA -
testcase_05 AC 80 ms
15,244 KB
testcase_06 AC 80 ms
15,304 KB
testcase_07 AC 80 ms
15,292 KB
testcase_08 AC 81 ms
15,084 KB
testcase_09 AC 80 ms
15,128 KB
testcase_10 AC 80 ms
15,272 KB
testcase_11 AC 80 ms
15,044 KB
testcase_12 AC 79 ms
15,284 KB
testcase_13 AC 81 ms
15,264 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 79 ms
15,136 KB
testcase_17 AC 80 ms
15,084 KB
testcase_18 AC 81 ms
15,044 KB
testcase_19 AC 80 ms
15,092 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] < user2[1] ? user2[0] : user1[0]
end
0