結果
問題 | No.341 沈黙の期間 |
ユーザー | くれちー |
提出日時 | 2016-10-02 13:48:49 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 51 ms / 5,000 ms |
コード長 | 370 bytes |
コンパイル時間 | 4,177 ms |
コンパイル使用メモリ | 99,016 KB |
実行使用メモリ | 22,660 KB |
最終ジャッジ日時 | 2023-08-13 16:50:09 |
合計ジャッジ時間 | 3,900 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 50 ms
20,592 KB |
testcase_01 | AC | 51 ms
22,660 KB |
testcase_02 | AC | 50 ms
22,588 KB |
testcase_03 | AC | 50 ms
20,552 KB |
testcase_04 | AC | 49 ms
20,460 KB |
testcase_05 | AC | 49 ms
22,624 KB |
testcase_06 | AC | 50 ms
22,580 KB |
testcase_07 | AC | 50 ms
20,404 KB |
testcase_08 | AC | 50 ms
20,564 KB |
testcase_09 | AC | 50 ms
20,652 KB |
testcase_10 | AC | 50 ms
20,408 KB |
testcase_11 | AC | 50 ms
22,436 KB |
testcase_12 | AC | 51 ms
22,520 KB |
testcase_13 | AC | 51 ms
20,532 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class Program { public static void Main() { string s = Console.ReadLine(); int cnt = 0, max = 0; foreach (char c in s) { if (c == '…') { cnt++; if (cnt > max) max = cnt; } else cnt = 0; } Console.WriteLine(max); } }