結果

問題 No.739 大事なことなので2度言います
ユーザー funakoshifunakoshi
提出日時 2019-07-01 13:57:55
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 741 bytes
コンパイル時間 4,558 ms
コンパイル使用メモリ 102,100 KB
実行使用メモリ 23,436 KB
最終ジャッジ日時 2023-09-22 23:50:09
合計ジャッジ時間 3,445 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
19,228 KB
testcase_01 AC 68 ms
23,280 KB
testcase_02 AC 66 ms
21,068 KB
testcase_03 AC 69 ms
21,196 KB
testcase_04 AC 69 ms
23,352 KB
testcase_05 WA -
testcase_06 AC 69 ms
21,120 KB
testcase_07 AC 72 ms
23,436 KB
testcase_08 AC 68 ms
21,292 KB
testcase_09 AC 67 ms
21,192 KB
testcase_10 AC 69 ms
23,368 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();
            int index = 0;

            string temp = input.Substring(0, 2);
            index = input.IndexOf(temp, 2);
            if (index != -1)
            {
                temp = input.Substring(0, index);
                input = input.Replace(temp, "");
            }
            if(input=="")
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}
0