結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー | fujita |
提出日時 | 2023-05-11 15:07:14 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 1,089 bytes |
コンパイル時間 | 12,080 ms |
コンパイル使用メモリ | 144,388 KB |
実行使用メモリ | 161,676 KB |
最終ジャッジ日時 | 2023-08-18 09:00:48 |
合計ジャッジ時間 | 10,422 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 43 ms
26,076 KB |
testcase_01 | AC | 44 ms
26,160 KB |
testcase_02 | AC | 44 ms
28,116 KB |
testcase_03 | AC | 44 ms
26,332 KB |
testcase_04 | AC | 43 ms
25,924 KB |
testcase_05 | AC | 43 ms
26,076 KB |
testcase_06 | AC | 44 ms
26,188 KB |
testcase_07 | AC | 43 ms
26,104 KB |
testcase_08 | AC | 43 ms
26,084 KB |
testcase_09 | AC | 45 ms
26,256 KB |
testcase_10 | AC | 43 ms
26,248 KB |
testcase_11 | AC | 43 ms
26,080 KB |
testcase_12 | AC | 43 ms
26,324 KB |
testcase_13 | AC | 43 ms
26,036 KB |
testcase_14 | AC | 43 ms
25,864 KB |
testcase_15 | AC | 43 ms
26,008 KB |
testcase_16 | AC | 43 ms
26,008 KB |
testcase_17 | AC | 43 ms
26,196 KB |
testcase_18 | AC | 43 ms
27,968 KB |
testcase_19 | AC | 42 ms
26,112 KB |
testcase_20 | AC | 43 ms
27,880 KB |
testcase_21 | AC | 44 ms
25,988 KB |
testcase_22 | AC | 43 ms
26,292 KB |
testcase_23 | AC | 43 ms
26,244 KB |
testcase_24 | AC | 43 ms
26,060 KB |
testcase_25 | AC | 43 ms
25,964 KB |
testcase_26 | AC | 42 ms
25,972 KB |
testcase_27 | AC | 43 ms
161,676 KB |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 131 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System.Collections.Generic; using System; using System.Drawing; namespace yukicoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); string[] str = new string[S.Length]; for (int i = 0; i < S.Length - 2; i++) { if (S.Length < 3) { Console.WriteLine("NA"); break; } str[i] = S.Substring(i, 3); if (str[i] == "OOO") { Console.WriteLine("East"); break; } else if (str[i] == "XXX") { Console.WriteLine("West"); break; } else if (i == S.Length - 3) { Console.WriteLine("NA"); break; } } if (S.Length < 3) { Console.WriteLine("NA"); } } } }