結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー | ototonari |
提出日時 | 2017-03-18 18:53:42 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 51 ms / 2,000 ms |
コード長 | 798 bytes |
コンパイル時間 | 2,394 ms |
コンパイル使用メモリ | 99,368 KB |
実行使用メモリ | 22,604 KB |
最終ジャッジ日時 | 2023-09-08 11:00:39 |
合計ジャッジ時間 | 4,414 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 48 ms
22,504 KB |
testcase_01 | AC | 48 ms
20,476 KB |
testcase_02 | AC | 48 ms
20,456 KB |
testcase_03 | AC | 48 ms
22,520 KB |
testcase_04 | AC | 48 ms
18,620 KB |
testcase_05 | AC | 48 ms
18,488 KB |
testcase_06 | AC | 49 ms
20,532 KB |
testcase_07 | AC | 49 ms
20,444 KB |
testcase_08 | AC | 48 ms
20,456 KB |
testcase_09 | AC | 48 ms
20,528 KB |
testcase_10 | AC | 48 ms
20,528 KB |
testcase_11 | AC | 48 ms
20,468 KB |
testcase_12 | AC | 48 ms
20,536 KB |
testcase_13 | AC | 48 ms
22,604 KB |
testcase_14 | AC | 48 ms
20,512 KB |
testcase_15 | AC | 48 ms
20,444 KB |
testcase_16 | AC | 48 ms
20,496 KB |
testcase_17 | AC | 48 ms
20,476 KB |
testcase_18 | AC | 47 ms
20,468 KB |
testcase_19 | AC | 48 ms
20,452 KB |
testcase_20 | AC | 48 ms
20,536 KB |
testcase_21 | AC | 49 ms
20,468 KB |
testcase_22 | AC | 49 ms
20,504 KB |
testcase_23 | AC | 49 ms
22,488 KB |
testcase_24 | AC | 49 ms
20,436 KB |
testcase_25 | AC | 51 ms
20,536 KB |
testcase_26 | AC | 49 ms
22,536 KB |
testcase_27 | AC | 49 ms
20,592 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.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoder { class Program { static void Main(string[] args) { string s = Console.ReadLine(); for(int i = 0;i < s.Length - 2; i++) { string x = s.Substring(i, 3); if (x == "XXX") { Console.WriteLine("West"); return; }else if(x == "OOO") { Console.WriteLine("East"); return; } } Console.WriteLine("NA"); Console.ReadLine(); } } }