結果

問題 No.486 3 Straight Win(3連勝)
ユーザー ynyn
提出日時 2017-02-26 13:50:13
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 461 bytes
コンパイル時間 2,027 ms
コンパイル使用メモリ 101,668 KB
実行使用メモリ 22,564 KB
最終ジャッジ日時 2023-09-08 10:49:57
合計ジャッジ時間 4,544 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
18,540 KB
testcase_01 AC 49 ms
20,480 KB
testcase_02 AC 49 ms
22,544 KB
testcase_03 AC 49 ms
20,596 KB
testcase_04 AC 50 ms
18,412 KB
testcase_05 AC 49 ms
22,528 KB
testcase_06 AC 49 ms
20,480 KB
testcase_07 AC 49 ms
20,648 KB
testcase_08 AC 49 ms
22,404 KB
testcase_09 AC 49 ms
20,404 KB
testcase_10 AC 49 ms
20,480 KB
testcase_11 AC 49 ms
22,512 KB
testcase_12 AC 48 ms
20,524 KB
testcase_13 AC 50 ms
22,464 KB
testcase_14 AC 49 ms
22,460 KB
testcase_15 AC 49 ms
20,600 KB
testcase_16 AC 49 ms
20,476 KB
testcase_17 AC 51 ms
20,448 KB
testcase_18 AC 50 ms
22,456 KB
testcase_19 AC 50 ms
20,476 KB
testcase_20 AC 50 ms
22,564 KB
testcase_21 AC 50 ms
20,464 KB
testcase_22 AC 49 ms
22,524 KB
testcase_23 AC 50 ms
22,484 KB
testcase_24 AC 49 ms
20,408 KB
testcase_25 AC 49 ms
20,572 KB
testcase_26 AC 49 ms
20,528 KB
testcase_27 AC 49 ms
20,508 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace yukicoder486
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			string s;
			s = Console.ReadLine();
			string ans;
			int i;

			ans = "NA";
			if (s.Length >= 3) {
				for (i = 0; i < s.Length - 2; i ++) {
					if (s.Substring(i, 3) == "OOO"){
						ans = "East";
						break;
					}
					else if (s.Substring(i, 3) == "XXX") {
						ans = "West";
						break;
					}
				}
			}
			Console.WriteLine(ans);
		}
	}
}
0