結果
| 問題 | No.201 yukicoderじゃんけん |
| コンテスト | |
| ユーザー |
hokto
|
| 提出日時 | 2019-01-08 17:17:07 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 84 ms / 5,000 ms |
| コード長 | 185 bytes |
| 記録 | |
| コンパイル時間 | 190 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-05-17 20:13:28 |
| 合計ジャッジ時間 | 2,484 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
コンパイルメッセージ
Main.rb:8: warning: ambiguous first argument; put parentheses or a space even after `-` operator Syntax OK
ソースコード
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
hokto