結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー | fujita |
提出日時 | 2023-05-09 11:41:34 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 49 ms / 1,000 ms |
コード長 | 1,415 bytes |
コンパイル時間 | 6,408 ms |
コンパイル使用メモリ | 167,164 KB |
実行使用メモリ | 179,876 KB |
最終ジャッジ日時 | 2024-05-04 12:18:01 |
合計ジャッジ時間 | 8,524 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 40 ms
26,880 KB |
testcase_01 | AC | 40 ms
27,136 KB |
testcase_02 | AC | 42 ms
27,136 KB |
testcase_03 | AC | 42 ms
26,880 KB |
testcase_04 | AC | 44 ms
27,136 KB |
testcase_05 | AC | 42 ms
27,136 KB |
testcase_06 | AC | 42 ms
26,880 KB |
testcase_07 | AC | 49 ms
27,136 KB |
testcase_08 | AC | 40 ms
27,128 KB |
testcase_09 | AC | 43 ms
27,136 KB |
testcase_10 | AC | 42 ms
26,880 KB |
testcase_11 | AC | 43 ms
26,880 KB |
testcase_12 | AC | 43 ms
26,624 KB |
testcase_13 | AC | 41 ms
26,880 KB |
testcase_14 | AC | 43 ms
27,120 KB |
testcase_15 | AC | 39 ms
27,264 KB |
testcase_16 | AC | 38 ms
26,880 KB |
testcase_17 | AC | 39 ms
27,136 KB |
testcase_18 | AC | 40 ms
27,008 KB |
testcase_19 | AC | 40 ms
26,752 KB |
testcase_20 | AC | 41 ms
26,752 KB |
testcase_21 | AC | 44 ms
27,128 KB |
testcase_22 | AC | 44 ms
26,624 KB |
testcase_23 | AC | 43 ms
26,752 KB |
testcase_24 | AC | 43 ms
27,136 KB |
testcase_25 | AC | 41 ms
26,880 KB |
testcase_26 | AC | 43 ms
27,136 KB |
testcase_27 | AC | 42 ms
27,136 KB |
testcase_28 | AC | 41 ms
179,876 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (83 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.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 > Maxvacation && j == 12) { vacation++; if (vacation > Maxvacation && j == 12) { Maxvacation = vacation; } } else { temp = vacation; if(temp > Maxvacation ) { Maxvacation = temp; } vacation = 1; } } if(str == "xxxxxxx" && str2 == "xxxxxxx") { Maxvacation = 0; } Console.WriteLine(Maxvacation); } } }