結果

問題 No.341 沈黙の期間
ユーザー takahiro-serikawatakahiro-serikawa
提出日時 2019-05-03 17:02:14
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 410 bytes
コンパイル時間 5,082 ms
コンパイル使用メモリ 103,056 KB
実行使用メモリ 22,664 KB
最終ジャッジ日時 2023-08-30 05:47:40
合計ジャッジ時間 3,580 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
20,552 KB
testcase_01 AC 54 ms
22,652 KB
testcase_02 AC 53 ms
20,820 KB
testcase_03 AC 53 ms
20,700 KB
testcase_04 AC 54 ms
20,608 KB
testcase_05 AC 54 ms
20,636 KB
testcase_06 AC 54 ms
22,648 KB
testcase_07 AC 53 ms
22,664 KB
testcase_08 AC 53 ms
20,528 KB
testcase_09 AC 54 ms
20,708 KB
testcase_10 AC 54 ms
20,592 KB
testcase_11 AC 54 ms
22,632 KB
testcase_12 AC 54 ms
20,764 KB
testcase_13 AC 53 ms
18,676 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    static void Main(string[] args)
    {
        var S = Console.ReadLine();
        int l = 0, m = 0;
        foreach (var c in S)
            if (c == '…') {
                l++;
            } else {
                if (m < l)
                    m = l;
                l = 0;
            }
        if (m < l)
            m = l;
        Console.WriteLine("{0}", m);
    }
}
0