結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー AreTrashAreTrash
提出日時 2016-05-03 13:27:56
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 464 bytes
コンパイル時間 802 ms
コンパイル使用メモリ 108,476 KB
実行使用メモリ 26,060 KB
最終ジャッジ日時 2024-04-15 09:57:39
合計ジャッジ時間 2,548 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
23,732 KB
testcase_01 AC 24 ms
23,984 KB
testcase_02 AC 24 ms
23,508 KB
testcase_03 AC 24 ms
25,424 KB
testcase_04 AC 24 ms
25,416 KB
testcase_05 AC 24 ms
23,244 KB
testcase_06 AC 23 ms
21,304 KB
testcase_07 AC 24 ms
23,640 KB
testcase_08 AC 23 ms
21,816 KB
testcase_09 AC 25 ms
23,652 KB
testcase_10 WA -
testcase_11 AC 23 ms
23,368 KB
testcase_12 AC 23 ms
23,372 KB
testcase_13 AC 24 ms
23,728 KB
testcase_14 AC 23 ms
23,356 KB
testcase_15 AC 24 ms
23,984 KB
testcase_16 WA -
testcase_17 AC 24 ms
25,544 KB
testcase_18 AC 24 ms
23,520 KB
testcase_19 AC 23 ms
25,416 KB
testcase_20 AC 24 ms
23,264 KB
testcase_21 AC 24 ms
23,364 KB
testcase_22 AC 24 ms
25,688 KB
testcase_23 AC 24 ms
25,676 KB
testcase_24 AC 24 ms
23,516 KB
testcase_25 AC 24 ms
25,800 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace No203_1{
    public class Program{
        public static void Main(string[] args){
            var days = Console.ReadLine() + Console.ReadLine();
            int cnt = 0, max = 0;
            foreach(var day in days){
                if(day == 'o') cnt++;
                else{
                    max = Math.Max(max, cnt);
                    cnt = 0;
                }
            }
            Console.WriteLine(max);
        }
    }
}
0