結果

問題 No.201 yukicoderじゃんけん
ユーザー hokto
提出日時 2019-01-08 17:17:07
言語 Ruby
(3.4.1)
結果
AC  
実行時間 93 ms / 5,000 ms
コード長 185 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2024-11-24 00:43:49
合計ジャッジ時間 3,013 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:8: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

player1=gets.chomp.split(" ")
player2=gets.chomp.split(" ")
if player1[1].to_i>player2[1].to_i
	puts player1[0]
elsif player1[1].to_i<player2[1].to_i
	puts player2[0]
else 
	puts -1
end
0