結果
問題 |
No.341 沈黙の期間
|
ユーザー |
![]() |
提出日時 | 2018-09-13 02:01:18 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 356 bytes |
コンパイル時間 | 2,511 ms |
コンパイル使用メモリ | 108,560 KB |
実行使用メモリ | 27,712 KB |
最終ジャッジ日時 | 2024-06-28 12:10:50 |
合計ジャッジ時間 | 3,448 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 10 WA * 1 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; class No341 { static void Main(){ var str = Console.ReadLine(); var max = 0; var count = 0; foreach(var c in str){ if(c=='…')count++; else{ if(max<count)max=count; count=0; } } Console.WriteLine(max); } }