結果

問題 No.201 yukicoderじゃんけん
ユーザー char134217728char134217728
提出日時 2017-08-29 20:49:40
言語 Ruby
(3.3.0)
結果
AC  
実行時間 86 ms / 5,000 ms
コード長 114 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 11,576 KB
実行使用メモリ 15,680 KB
最終ジャッジ日時 2023-08-06 06:44:50
合計ジャッジ時間 3,002 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,140 KB
testcase_01 AC 80 ms
15,124 KB
testcase_02 AC 79 ms
15,272 KB
testcase_03 AC 82 ms
15,400 KB
testcase_04 AC 79 ms
15,428 KB
testcase_05 AC 83 ms
15,220 KB
testcase_06 AC 80 ms
15,352 KB
testcase_07 AC 79 ms
15,128 KB
testcase_08 AC 80 ms
15,308 KB
testcase_09 AC 81 ms
15,364 KB
testcase_10 AC 82 ms
15,380 KB
testcase_11 AC 80 ms
15,212 KB
testcase_12 AC 80 ms
15,412 KB
testcase_13 AC 80 ms
15,312 KB
testcase_14 AC 80 ms
15,124 KB
testcase_15 AC 82 ms
15,356 KB
testcase_16 AC 82 ms
15,504 KB
testcase_17 AC 79 ms
15,640 KB
testcase_18 AC 80 ms
15,484 KB
testcase_19 AC 81 ms
15,680 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:5: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

s1, p1 = gets.split
s2, p2 = gets.split
case p1.to_i <=> p2.to_i
when 0
  p -1
when 1
  puts s1
else
  puts s2
end
0