結果
問題 |
No.341 沈黙の期間
|
ユーザー |
![]() |
提出日時 | 2025-04-01 10:03:00 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 46 ms / 5,000 ms |
コード長 | 692 bytes |
コンパイル時間 | 11,722 ms |
コンパイル使用メモリ | 170,756 KB |
実行使用メモリ | 185,364 KB |
最終ジャッジ日時 | 2025-04-01 10:03:13 |
合計ジャッジ時間 | 8,613 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (119 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program { static void Main(string[] args) { string str = Console.ReadLine(); int count = 0; int max = 0; for (int i = 0; i < str.Length; i++) { if (str[i] == '…') { count++; } else { if(count > max) { max = count; } count = 0; } } if (count > max) { max = count; } Console.WriteLine(max); } }