結果

問題 No.486 3 Straight Win(3連勝)
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-08 17:11:58
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 110 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 11,152 KB
実行使用メモリ 15,332 KB
最終ジャッジ日時 2023-09-29 21:24:00
合計ジャッジ時間 4,383 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,004 KB
testcase_01 AC 80 ms
15,252 KB
testcase_02 AC 81 ms
15,112 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 81 ms
15,288 KB
testcase_07 WA -
testcase_08 AC 81 ms
15,012 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 80 ms
15,212 KB
testcase_14 AC 80 ms
15,228 KB
testcase_15 AC 80 ms
15,004 KB
testcase_16 WA -
testcase_17 AC 81 ms
15,012 KB
testcase_18 AC 80 ms
15,188 KB
testcase_19 AC 80 ms
15,108 KB
testcase_20 AC 80 ms
15,228 KB
testcase_21 AC 80 ms
15,312 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 80 ms
15,012 KB
testcase_25 AC 80 ms
15,208 KB
testcase_26 AC 79 ms
15,280 KB
testcase_27 AC 81 ms
15,188 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

r = gets.chomp
e = r.index("OOO")
w = r.index("XXX")
puts "East" if e
puts "West" if w
puts "NA" unless e || w
0