結果

問題 No.486 3 Straight Win(3連勝)
ユーザー yamachayamacha
提出日時 2017-04-03 12:39:44
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 11,424 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2023-09-22 11:26:41
合計ジャッジ時間 3,822 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,088 KB
testcase_01 AC 84 ms
15,088 KB
testcase_02 AC 78 ms
15,292 KB
testcase_03 AC 79 ms
15,284 KB
testcase_04 AC 80 ms
15,292 KB
testcase_05 AC 83 ms
15,084 KB
testcase_06 AC 81 ms
15,236 KB
testcase_07 WA -
testcase_08 AC 78 ms
15,124 KB
testcase_09 AC 78 ms
15,212 KB
testcase_10 AC 77 ms
15,112 KB
testcase_11 AC 77 ms
15,024 KB
testcase_12 WA -
testcase_13 AC 78 ms
15,084 KB
testcase_14 AC 80 ms
15,272 KB
testcase_15 AC 78 ms
15,112 KB
testcase_16 WA -
testcase_17 AC 79 ms
15,136 KB
testcase_18 AC 80 ms
15,100 KB
testcase_19 AC 79 ms
15,108 KB
testcase_20 AC 79 ms
15,272 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 78 ms
15,292 KB
testcase_25 AC 79 ms
15,192 KB
testcase_26 AC 78 ms
15,084 KB
testcase_27 AC 78 ms
15,180 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp
x = n.count("O")
y = n.count("X")
if (x < 3 && y < 3) || x == y
  puts "NA"
elsif x > y
  puts "East"
else
  puts "West"
end
0