結果
| 問題 | No.201 yukicoderじゃんけん |
| コンテスト | |
| ユーザー |
nonokai10
|
| 提出日時 | 2018-03-25 11:51:40 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 5,000 ms |
| コード長 | 290 bytes |
| 記録 | |
| コンパイル時間 | 125 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 15,104 KB |
| 最終ジャッジ日時 | 2026-03-11 11:12:30 |
| 合計ジャッジ時間 | 2,147 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_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