結果

問題 No.341 沈黙の期間
ユーザー takahiro-serikawatakahiro-serikawa
提出日時 2019-05-03 16:59:49
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 372 bytes
コンパイル時間 2,019 ms
コンパイル使用メモリ 102,240 KB
実行使用メモリ 22,796 KB
最終ジャッジ日時 2023-08-30 05:47:20
合計ジャッジ時間 4,428 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,712 KB
testcase_01 AC 55 ms
20,724 KB
testcase_02 WA -
testcase_03 AC 53 ms
20,756 KB
testcase_04 AC 54 ms
20,724 KB
testcase_05 AC 53 ms
20,692 KB
testcase_06 AC 53 ms
20,776 KB
testcase_07 AC 54 ms
20,656 KB
testcase_08 AC 54 ms
22,616 KB
testcase_09 AC 53 ms
20,772 KB
testcase_10 AC 54 ms
22,756 KB
testcase_11 AC 53 ms
20,636 KB
testcase_12 WA -
testcase_13 AC 54 ms
22,692 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;
            }
        Console.WriteLine("{0}", m);
    }
}
0