結果

問題 No.201 yukicoderじゃんけん
ユーザー koyumeishikoyumeishi
提出日時 2015-03-21 00:24:09
言語 Ruby
(3.3.0)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 136 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 11,300 KB
実行使用メモリ 15,612 KB
最終ジャッジ日時 2023-09-11 09:07:22
合計ジャッジ時間 3,596 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,132 KB
testcase_01 AC 80 ms
15,024 KB
testcase_02 AC 79 ms
15,076 KB
testcase_03 AC 80 ms
15,304 KB
testcase_04 AC 81 ms
15,348 KB
testcase_05 AC 80 ms
15,424 KB
testcase_06 AC 80 ms
15,396 KB
testcase_07 AC 81 ms
15,160 KB
testcase_08 AC 81 ms
15,396 KB
testcase_09 AC 81 ms
15,224 KB
testcase_10 AC 81 ms
15,312 KB
testcase_11 AC 81 ms
15,212 KB
testcase_12 AC 80 ms
15,420 KB
testcase_13 AC 80 ms
15,208 KB
testcase_14 AC 79 ms
15,100 KB
testcase_15 AC 81 ms
15,496 KB
testcase_16 AC 81 ms
15,516 KB
testcase_17 AC 81 ms
15,572 KB
testcase_18 AC 82 ms
15,508 KB
testcase_19 AC 81 ms
15,612 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a = gets.split
b = gets.split

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