結果

問題 No.341 沈黙の期間
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-09-13 02:01:18
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 356 bytes
コンパイル時間 2,861 ms
コンパイル使用メモリ 99,532 KB
実行使用メモリ 22,632 KB
最終ジャッジ日時 2023-09-10 21:05:44
合計ジャッジ時間 4,083 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,524 KB
testcase_01 AC 51 ms
22,536 KB
testcase_02 WA -
testcase_03 AC 50 ms
20,512 KB
testcase_04 AC 50 ms
20,552 KB
testcase_05 AC 50 ms
20,500 KB
testcase_06 AC 50 ms
20,672 KB
testcase_07 AC 51 ms
18,508 KB
testcase_08 AC 49 ms
18,552 KB
testcase_09 AC 50 ms
22,548 KB
testcase_10 AC 51 ms
20,452 KB
testcase_11 AC 50 ms
20,540 KB
testcase_12 WA -
testcase_13 AC 50 ms
20,448 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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);
    }
}
0