結果

問題 No.739 大事なことなので2度言います
ユーザー bluemeganebluemegane
提出日時 2018-10-05 22:14:01
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 396 bytes
コンパイル時間 3,068 ms
コンパイル使用メモリ 99,444 KB
実行使用メモリ 22,500 KB
最終ジャッジ日時 2023-08-12 23:37:10
合計ジャッジ時間 4,458 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
20,524 KB
testcase_01 AC 48 ms
18,488 KB
testcase_02 AC 48 ms
22,500 KB
testcase_03 AC 49 ms
20,432 KB
testcase_04 AC 49 ms
20,432 KB
testcase_05 AC 48 ms
18,480 KB
testcase_06 AC 48 ms
20,576 KB
testcase_07 AC 50 ms
20,560 KB
testcase_08 AC 49 ms
20,552 KB
testcase_09 AC 49 ms
20,524 KB
testcase_10 AC 49 ms
20,552 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        var s = Console.ReadLine().Trim();
        Console.WriteLine(check(s) ? "YES" : "NO");
    }
    public static bool check(string s)
    {
        var sL = s.Length;
        if (sL % 2 == 1) return false;
        var s1 = s.Substring(0, sL / 2);
        var s2 = s.Substring(sL / 2);
        return s1 == s2;
    }
}
0