結果
問題 |
No.486 3 Straight Win(3連勝)
|
ユーザー |
![]() |
提出日時 | 2018-06-15 01:28:58 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 271 bytes |
コンパイル時間 | 771 ms |
コンパイル使用メモリ | 107,520 KB |
実行使用メモリ | 26,552 KB |
最終ジャッジ日時 | 2024-06-30 14:38:57 |
合計ジャッジ時間 | 2,267 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 WA * 3 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class No486{ static void Main(string[] args){ var s=Console.ReadLine(); var e=s.IndexOf("OOO"); var w=s.IndexOf("XXX"); if(e==w) Console.WriteLine("NA"); else Console.WriteLine((-1<e&&e<w)?"East":"West"); } }