結果
| 問題 | No.201 yukicoderじゃんけん |
| コンテスト | |
| ユーザー |
nonokai10
|
| 提出日時 | 2018-03-25 11:51:40 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 5,000 ms |
| + 913µs | |
| コード長 | 290 bytes |
| 記録 | |
| コンパイル時間 | 9 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,592 KB |
| 最終ジャッジ日時 | 2026-07-29 16:09:20 |
| 合計ジャッジ時間 | 2,402 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
コンパイルメッセージ
Main.rb:17: warning: ambiguous first argument; put parentheses or a space even after `-` operator Main.rb:1: warning: assigned but unused variable - c Main.rb:2: warning: assigned but unused variable - f Syntax OK
ソースコード
a, b, c = gets.split
d, e, f = gets.split
case b.size <=> e.size
when -1
puts d
when 0
(0...b.size).each do |i|
case b[i] <=> e[i]
when -1
puts d
break
when 1
puts a
break
end
if i == b.size - 1
puts -1
end
end
when 1
puts a
end
nonokai10