結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー | fujita |
提出日時 | 2023-05-09 11:29:05 |
言語 | C# (.NET 8.0.203) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,225 bytes |
コンパイル時間 | 9,035 ms |
コンパイル使用メモリ | 144,576 KB |
実行使用メモリ | 162,340 KB |
最終ジャッジ日時 | 2023-08-17 05:13:21 |
合計ジャッジ時間 | 12,010 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 48 ms
26,516 KB |
testcase_01 | AC | 48 ms
26,132 KB |
testcase_02 | AC | 47 ms
26,132 KB |
testcase_03 | AC | 47 ms
26,196 KB |
testcase_04 | AC | 47 ms
26,384 KB |
testcase_05 | AC | 48 ms
26,236 KB |
testcase_06 | AC | 49 ms
26,204 KB |
testcase_07 | AC | 48 ms
26,408 KB |
testcase_08 | AC | 48 ms
26,320 KB |
testcase_09 | AC | 47 ms
26,196 KB |
testcase_10 | WA | - |
testcase_11 | AC | 47 ms
28,276 KB |
testcase_12 | AC | 47 ms
26,080 KB |
testcase_13 | AC | 47 ms
26,380 KB |
testcase_14 | AC | 47 ms
26,340 KB |
testcase_15 | AC | 47 ms
26,212 KB |
testcase_16 | WA | - |
testcase_17 | AC | 47 ms
26,460 KB |
testcase_18 | AC | 47 ms
26,352 KB |
testcase_19 | AC | 48 ms
26,164 KB |
testcase_20 | AC | 49 ms
28,168 KB |
testcase_21 | AC | 48 ms
26,316 KB |
testcase_22 | AC | 47 ms
26,180 KB |
testcase_23 | AC | 48 ms
26,196 KB |
testcase_24 | AC | 48 ms
28,268 KB |
testcase_25 | AC | 47 ms
26,200 KB |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 170 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; namespace yukicoder { class Program { static void Main(string[] args) { var str = Console.ReadLine(); var str2 = Console.ReadLine(); int temp = 0; string[] strings = new string[str.Length + str.Length]; int vacation = 1, Maxvacation = 0; for(int i = 0; i < str.Length; i++) { strings[i] = str.Substring(i , 1); strings[i + 7] = str2.Substring(i, 1); } for (int j = 0; j < strings.Length - 1; j++) { if (strings[j] == "o" && strings[j + 1] == "o") { vacation++; } else { temp = vacation; if(temp > Maxvacation) { Maxvacation = temp; } vacation = 1; } } if(str == "xxxxxxx" && str2 == "xxxxxxx") { Maxvacation = 0; } Console.WriteLine(Maxvacation); } } }