結果

問題 No.739 大事なことなので2度言います
ユーザー funakoshifunakoshi
提出日時 2019-07-01 14:11:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 774 bytes
コンパイル時間 2,709 ms
コンパイル使用メモリ 102,712 KB
実行使用メモリ 22,560 KB
最終ジャッジ日時 2023-09-23 00:09:21
合計ジャッジ時間 3,540 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,516 KB
testcase_01 AC 50 ms
20,424 KB
testcase_02 AC 49 ms
20,484 KB
testcase_03 AC 50 ms
20,592 KB
testcase_04 AC 48 ms
20,604 KB
testcase_05 AC 48 ms
18,496 KB
testcase_06 AC 49 ms
20,512 KB
testcase_07 AC 50 ms
22,512 KB
testcase_08 AC 49 ms
18,492 KB
testcase_09 AC 51 ms
20,636 KB
testcase_10 AC 50 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yukicoderTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            if(input.Length%2==1)
            {
                Console.WriteLine("NO");
            }
            else
            {
                string temp = input.Substring(0, input.Length / 2);
                input = input.Remove(0, input.Length / 2);
                if(temp==input)
                {
                    Console.WriteLine("YES");
                }
                else
                {
                    Console.WriteLine("NO");
                }
            }

        }
    }
}
0