結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー |
![]() |
提出日時 | 2018-06-15 01:37:00 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 748 ms |
コンパイル使用メモリ | 109,872 KB |
実行使用メモリ | 26,452 KB |
最終ジャッジ日時 | 2024-06-30 14:39:21 |
合計ジャッジ時間 | 2,405 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 |
コンパイルメッセージ
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"); string a; if(e==w) a="NA"; else if(e==-1||w==-1) a=(w==-1)?"East":"West"; else a=(e<w)?"East":"West"; Console.WriteLine(a); } }