結果
問題 | No.345 最小チワワ問題 |
ユーザー | ccc |
提出日時 | 2022-08-11 22:49:46 |
言語 | C# (.NET 8.0.203) |
結果 |
WA
|
実行時間 | - |
コード長 | 957 bytes |
コンパイル時間 | 12,654 ms |
コンパイル使用メモリ | 157,712 KB |
実行使用メモリ | 185,620 KB |
最終ジャッジ日時 | 2023-10-22 04:12:21 |
合計ジャッジ時間 | 19,185 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 78 ms
33,020 KB |
testcase_02 | WA | - |
testcase_03 | AC | 76 ms
33,032 KB |
testcase_04 | AC | 78 ms
33,040 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | AC | 78 ms
33,212 KB |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | WA | - |
testcase_15 | AC | 83 ms
33,212 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | AC | 74 ms
33,220 KB |
testcase_21 | RE | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | RE | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | RE | - |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (94 ms)。 MSBuild のバージョン 17.7.3+8ec440e68 (.NET) main -> /home/judge/data/code/bin/Release/net7.0/main.dll main -> /home/judge/data/code/bin/Release/net7.0/publish/
ソースコード
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main() { var inp = Console.ReadLine(); var indexC = inp.IndexOf("c"); var indexW1 = inp.IndexOf("w", indexC); var indexW2 = inp.IndexOf("w", indexW1 + 1); //Console.WriteLine(indexC); //Console.WriteLine(indexW1); //Console.WriteLine(indexW2); if (indexC == 0) { var extractionString = inp.Substring(indexC, indexW2); var ans = extractionString.Count(); Console.WriteLine(ans); } else { var extractionString = inp.Substring(indexC, indexW2 - indexC); var ans = extractionString.Count(); Console.WriteLine(ans + 1); } } public void CheckStrChiwawa(string chiwawa) { } } /* ilovechiwawa wachiwachi chiwaaaaaaamikawayadeeeeesu wcwcwcwcwcwcwcwcwcwcwc ccwwccw */