結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,016 KB
testcase_01 AC 83 ms
15,312 KB
testcase_02 AC 82 ms
15,016 KB
testcase_03 AC 83 ms
15,036 KB
testcase_04 WA -
testcase_05 AC 82 ms
15,220 KB
testcase_06 AC 83 ms
15,092 KB
testcase_07 AC 83 ms
15,144 KB
testcase_08 AC 83 ms
15,012 KB
testcase_09 AC 82 ms
15,132 KB
testcase_10 AC 83 ms
15,240 KB
testcase_11 AC 84 ms
15,092 KB
testcase_12 AC 83 ms
15,140 KB
testcase_13 AC 84 ms
15,272 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 83 ms
15,276 KB
testcase_17 AC 82 ms
15,068 KB
testcase_18 AC 83 ms
15,124 KB
testcase_19 AC 84 ms
15,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:5: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

a = gets.split
b = gets.split

if a[1] == b[1]
  p -1
elsif a[1] > b[1]
  puts a[0]
else
  puts b[0]
end
0