結果

問題 No.201 yukicoderじゃんけん
ユーザー hadrorihadrori
提出日時 2015-07-25 17:17:59
言語 Ruby
(3.3.0)
結果
AC  
実行時間 109 ms / 5,000 ms
コード長 166 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 11,524 KB
実行使用メモリ 15,636 KB
最終ジャッジ日時 2023-09-24 12:26:12
合計ジャッジ時間 2,891 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,156 KB
testcase_01 AC 82 ms
15,132 KB
testcase_02 AC 83 ms
15,288 KB
testcase_03 AC 84 ms
15,432 KB
testcase_04 AC 83 ms
15,368 KB
testcase_05 AC 82 ms
15,248 KB
testcase_06 AC 83 ms
15,336 KB
testcase_07 AC 82 ms
15,088 KB
testcase_08 AC 83 ms
15,416 KB
testcase_09 AC 84 ms
15,340 KB
testcase_10 AC 83 ms
15,212 KB
testcase_11 AC 84 ms
15,244 KB
testcase_12 AC 83 ms
15,396 KB
testcase_13 AC 83 ms
15,312 KB
testcase_14 AC 81 ms
15,048 KB
testcase_15 AC 109 ms
15,408 KB
testcase_16 AC 83 ms
15,500 KB
testcase_17 AC 83 ms
15,596 KB
testcase_18 AC 83 ms
15,552 KB
testcase_19 AC 83 ms
15,636 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a = gets.split
b = gets.split

ans = if a[1].to_i == b[1].to_i
        "-1"
      elsif a[1].to_i > b[1].to_i
        a[0]
      else
        b[0]
      end
puts ans
0