結果

問題 No.290 1010
ユーザー keymoonkeymoon
提出日時 2021-02-01 22:57:06
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 555 bytes
コンパイル時間 3,686 ms
コンパイル使用メモリ 104,024 KB
実行使用メモリ 26,160 KB
最終ジャッジ日時 2023-09-12 10:53:23
合計ジャッジ時間 4,773 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
22,844 KB
testcase_01 AC 54 ms
20,776 KB
testcase_02 AC 54 ms
20,708 KB
testcase_03 AC 53 ms
20,884 KB
testcase_04 AC 54 ms
22,784 KB
testcase_05 AC 53 ms
20,708 KB
testcase_06 AC 53 ms
20,876 KB
testcase_07 AC 53 ms
20,720 KB
testcase_08 AC 53 ms
22,840 KB
testcase_09 AC 53 ms
20,688 KB
testcase_10 AC 54 ms
20,776 KB
testcase_11 AC 53 ms
22,816 KB
testcase_12 AC 54 ms
20,812 KB
testcase_13 AC 54 ms
20,716 KB
testcase_14 AC 54 ms
18,688 KB
testcase_15 AC 54 ms
20,704 KB
testcase_16 AC 53 ms
20,792 KB
testcase_17 AC 53 ms
20,884 KB
testcase_18 AC 53 ms
20,688 KB
testcase_19 AC 53 ms
22,796 KB
testcase_20 AC 64 ms
24,104 KB
testcase_21 AC 62 ms
26,160 KB
testcase_22 AC 70 ms
24,152 KB
testcase_23 AC 64 ms
24,104 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;

public static class P
{
    public static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        var s = Console.ReadLine();
        if (s.Contains("11") || s.Contains("00") || 4 <= s.Length) Console.WriteLine("YES");
        else Console.WriteLine("NO");
    }
}
0