結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー しらゆきしらゆき
提出日時 2015-11-18 12:42:05
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 54 ms / 1,000 ms
コード長 406 bytes
コンパイル時間 4,670 ms
コンパイル使用メモリ 101,748 KB
実行使用メモリ 22,692 KB
最終ジャッジ日時 2023-08-11 16:01:02
合計ジャッジ時間 6,134 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
22,692 KB
testcase_01 AC 54 ms
22,580 KB
testcase_02 AC 52 ms
20,524 KB
testcase_03 AC 53 ms
22,640 KB
testcase_04 AC 53 ms
20,580 KB
testcase_05 AC 53 ms
18,636 KB
testcase_06 AC 53 ms
22,548 KB
testcase_07 AC 52 ms
20,592 KB
testcase_08 AC 53 ms
22,604 KB
testcase_09 AC 53 ms
20,608 KB
testcase_10 AC 53 ms
20,520 KB
testcase_11 AC 53 ms
22,540 KB
testcase_12 AC 53 ms
20,496 KB
testcase_13 AC 53 ms
20,444 KB
testcase_14 AC 53 ms
20,452 KB
testcase_15 AC 54 ms
20,696 KB
testcase_16 AC 54 ms
20,516 KB
testcase_17 AC 53 ms
20,552 KB
testcase_18 AC 53 ms
18,456 KB
testcase_19 AC 53 ms
22,632 KB
testcase_20 AC 53 ms
22,576 KB
testcase_21 AC 53 ms
20,556 KB
testcase_22 AC 53 ms
20,524 KB
testcase_23 AC 53 ms
20,556 KB
testcase_24 AC 54 ms
22,556 KB
testcase_25 AC 52 ms
18,540 KB
testcase_26 AC 53 ms
20,584 KB
testcase_27 AC 53 ms
20,508 KB
testcase_28 AC 53 ms
22,560 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 s = Console.ReadLine();
        string t = Console.ReadLine();

        string c = s + t;
        int cnt = 0;
        int ans = 0;

        for (int i = 0; i < 14; i++)
        {
            if (c[i] == 'o') cnt++;
            else cnt = 0;

            ans = Math.Max(cnt, ans);
        }

        Console.WriteLine(ans);
    }
}
0