結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-12-07 20:55:38 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 5,000 ms |
| コード長 | 245 bytes |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-06-11 17:07:17 |
| 合計ジャッジ時間 | 1,816 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
Syntax OK
ソースコード
sente = gets.chomp
if sente == "oda"
gote = "yukiko"
else
gote = "oda"
end
count = 0
8.times do
gets.each_char do |ch|
if ch == "."
count += 1
end
end
end
if count.even?
puts sente
else
puts gote
end