結果

問題 No.88 次はどっちだ
ユーザー らっしー(raccy)らっしー(raccy)
提出日時 2014-12-07 20:55:38
言語 Ruby
(3.3.0)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 245 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 11,448 KB
実行使用メモリ 15,364 KB
最終ジャッジ日時 2023-09-02 10:25:49
合計ジャッジ時間 1,857 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,092 KB
testcase_01 AC 79 ms
15,364 KB
testcase_02 AC 78 ms
15,176 KB
testcase_03 AC 81 ms
15,168 KB
testcase_04 AC 80 ms
15,168 KB
testcase_05 AC 80 ms
15,132 KB
testcase_06 AC 80 ms
15,152 KB
testcase_07 AC 80 ms
15,128 KB
testcase_08 AC 81 ms
15,268 KB
testcase_09 AC 82 ms
15,172 KB
testcase_10 AC 81 ms
15,252 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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
0