結果

問題 No.201 yukicoderじゃんけん
ユーザー TANIGUCHI KousukeTANIGUCHI Kousuke
提出日時 2019-12-04 19:30:07
言語 Ruby
(3.2.2)
結果
AC  
実行時間 86 ms / 5,000 ms
コード長 128 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 11,516 KB
実行使用メモリ 15,672 KB
最終ジャッジ日時 2023-08-21 00:20:37
合計ジャッジ時間 3,100 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,128 KB
testcase_01 AC 81 ms
15,296 KB
testcase_02 AC 81 ms
15,160 KB
testcase_03 AC 84 ms
15,372 KB
testcase_04 AC 83 ms
15,304 KB
testcase_05 AC 81 ms
15,348 KB
testcase_06 AC 82 ms
15,328 KB
testcase_07 AC 81 ms
15,044 KB
testcase_08 AC 80 ms
15,456 KB
testcase_09 AC 82 ms
15,312 KB
testcase_10 AC 82 ms
15,444 KB
testcase_11 AC 81 ms
15,376 KB
testcase_12 AC 82 ms
15,384 KB
testcase_13 AC 82 ms
15,396 KB
testcase_14 AC 83 ms
15,220 KB
testcase_15 AC 86 ms
15,672 KB
testcase_16 AC 84 ms
15,520 KB
testcase_17 AC 83 ms
15,388 KB
testcase_18 AC 85 ms
15,496 KB
testcase_19 AC 83 ms
15,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:8: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Main.rb:1: warning: assigned but unused variable - ah
Main.rb:2: warning: assigned but unused variable - bh
Syntax OK

ソースコード

diff #

an,ay,ah = gets.split
bn,by,bh = gets.split
if ay.to_i > by.to_i
  puts an
elsif ay.to_i < by.to_i
  puts bn
else
  puts -1
end
0