結果

問題 No.341 沈黙の期間
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-09-13 02:03:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 52 ms / 5,000 ms
コード長 329 bytes
コンパイル時間 1,946 ms
コンパイル使用メモリ 99,552 KB
実行使用メモリ 22,624 KB
最終ジャッジ日時 2023-09-10 21:09:14
合計ジャッジ時間 3,951 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
22,428 KB
testcase_01 AC 52 ms
22,620 KB
testcase_02 AC 52 ms
22,512 KB
testcase_03 AC 52 ms
22,624 KB
testcase_04 AC 51 ms
20,452 KB
testcase_05 AC 51 ms
18,420 KB
testcase_06 AC 51 ms
20,600 KB
testcase_07 AC 51 ms
18,480 KB
testcase_08 AC 51 ms
20,516 KB
testcase_09 AC 51 ms
20,604 KB
testcase_10 AC 51 ms
20,724 KB
testcase_11 AC 51 ms
22,552 KB
testcase_12 AC 51 ms
22,576 KB
testcase_13 AC 50 ms
20,564 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 count=0;
            if(max<count)max=count;
        }
        Console.WriteLine(max);
    }
}
0