結果

問題 No.341 沈黙の期間
ユーザー mencottonmencotton
提出日時 2018-02-19 16:21:35
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 49 ms / 5,000 ms
コード長 428 bytes
コンパイル時間 4,404 ms
コンパイル使用メモリ 103,392 KB
実行使用メモリ 22,660 KB
最終ジャッジ日時 2023-09-22 09:02:26
合計ジャッジ時間 4,260 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
22,660 KB
testcase_01 AC 48 ms
18,472 KB
testcase_02 AC 49 ms
20,608 KB
testcase_03 AC 48 ms
20,604 KB
testcase_04 AC 49 ms
20,516 KB
testcase_05 AC 49 ms
22,572 KB
testcase_06 AC 48 ms
18,480 KB
testcase_07 AC 49 ms
22,564 KB
testcase_08 AC 49 ms
20,724 KB
testcase_09 AC 49 ms
20,492 KB
testcase_10 AC 49 ms
22,500 KB
testcase_11 AC 49 ms
22,608 KB
testcase_12 AC 48 ms
18,572 KB
testcase_13 AC 48 ms
20,508 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace _341
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            int max = 0; int now = 0;
            for (int i = 0; i < s.Length; i++)
            {
                if (s[i] == '…') now++;
                else now = 0;
                max = Math.Max(max,now);
            }
            Console.WriteLine(max);
        }
    }
}
0