結果

問題 No.290 1010
ユーザー bluemeganebluemegane
提出日時 2021-04-22 07:36:07
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 735 ms
コンパイル使用メモリ 67,324 KB
実行使用メモリ 24,588 KB
最終ジャッジ日時 2023-09-17 09:54:52
合計ジャッジ時間 3,545 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
21,320 KB
testcase_01 AC 72 ms
19,324 KB
testcase_02 AC 68 ms
21,192 KB
testcase_03 AC 68 ms
21,088 KB
testcase_04 AC 67 ms
21,132 KB
testcase_05 AC 67 ms
21,068 KB
testcase_06 AC 68 ms
21,312 KB
testcase_07 AC 68 ms
23,072 KB
testcase_08 AC 68 ms
21,120 KB
testcase_09 AC 68 ms
23,128 KB
testcase_10 AC 68 ms
23,188 KB
testcase_11 AC 68 ms
21,252 KB
testcase_12 AC 68 ms
23,184 KB
testcase_13 AC 68 ms
21,196 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 67 ms
23,156 KB
testcase_17 AC 68 ms
21,092 KB
testcase_18 AC 67 ms
21,176 KB
testcase_19 AC 69 ms
21,076 KB
testcase_20 AC 76 ms
24,588 KB
testcase_21 AC 86 ms
24,536 KB
testcase_22 WA -
testcase_23 AC 77 ms
24,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        Console.ReadLine();
        var s = Console.ReadLine().Trim();
        getAns(s);
    }
    static bool calc(string s, string t) => s.IndexOf(t) != -1;
    static void getAns(string s)
    {
        if (calc(s, "00")) { Console.WriteLine("YES"); return; }
        if (calc(s, "11")) { Console.WriteLine("YES"); return; }
        Console.WriteLine("NO");
    }
}
0