結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー | phspls |
提出日時 | 2020-03-28 14:33:27 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 73 ms / 2,000 ms |
コード長 | 462 bytes |
コンパイル時間 | 3,125 ms |
コンパイル使用メモリ | 96,356 KB |
実行使用メモリ | 25,208 KB |
最終ジャッジ日時 | 2023-08-30 17:41:43 |
合計ジャッジ時間 | 5,564 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 68 ms
21,072 KB |
testcase_01 | AC | 68 ms
21,108 KB |
testcase_02 | AC | 68 ms
21,172 KB |
testcase_03 | AC | 68 ms
23,100 KB |
testcase_04 | AC | 68 ms
21,168 KB |
testcase_05 | AC | 68 ms
21,144 KB |
testcase_06 | AC | 67 ms
20,996 KB |
testcase_07 | AC | 67 ms
21,032 KB |
testcase_08 | AC | 68 ms
21,164 KB |
testcase_09 | AC | 67 ms
21,176 KB |
testcase_10 | AC | 68 ms
21,100 KB |
testcase_11 | AC | 68 ms
23,156 KB |
testcase_12 | AC | 68 ms
23,100 KB |
testcase_13 | AC | 67 ms
21,240 KB |
testcase_14 | AC | 72 ms
21,360 KB |
testcase_15 | AC | 67 ms
21,168 KB |
testcase_16 | AC | 68 ms
25,208 KB |
testcase_17 | AC | 67 ms
21,116 KB |
testcase_18 | AC | 72 ms
21,296 KB |
testcase_19 | AC | 67 ms
21,296 KB |
testcase_20 | AC | 67 ms
21,176 KB |
testcase_21 | AC | 68 ms
21,340 KB |
testcase_22 | AC | 68 ms
19,124 KB |
testcase_23 | AC | 68 ms
23,180 KB |
testcase_24 | AC | 68 ms
19,120 KB |
testcase_25 | AC | 72 ms
19,360 KB |
testcase_26 | AC | 73 ms
23,388 KB |
testcase_27 | AC | 72 ms
21,340 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; public class P0486 { public static void Main() { var s = Console.ReadLine().Trim(); var e = s.IndexOf("OOO"); var w = s.IndexOf("XXX"); e = e < 0 ? s.Length : e; w = w < 0 ? s.Length : w; if(e < w) { Console.WriteLine("East"); } else if(e > w) { Console.WriteLine("West"); } else { Console.WriteLine("NA"); } } }