結果

問題 No.292 芸名
ユーザー funakoshifunakoshi
提出日時 2019-06-27 14:00:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 936 bytes
コンパイル時間 2,948 ms
コンパイル使用メモリ 102,448 KB
実行使用メモリ 22,792 KB
最終ジャッジ日時 2023-09-10 05:38:52
合計ジャッジ時間 4,518 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,648 KB
testcase_01 AC 56 ms
18,772 KB
testcase_02 AC 56 ms
20,864 KB
testcase_03 AC 56 ms
20,804 KB
testcase_04 AC 56 ms
22,652 KB
testcase_05 AC 55 ms
18,680 KB
testcase_06 AC 57 ms
22,716 KB
testcase_07 AC 57 ms
22,752 KB
testcase_08 AC 57 ms
22,792 KB
testcase_09 AC 57 ms
18,724 KB
testcase_10 AC 56 ms
20,724 KB
testcase_11 AC 56 ms
20,820 KB
testcase_12 AC 54 ms
20,728 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().Split(' ');
            string[] name = new string[input[0].Length];
            string newname = "";
            for (int i=0;i<input[0].Length;i++)
            {
                name[i] = input[0].Substring(i, 1);
            }
            int b = int.Parse(input[1]);
            int c = int.Parse(input[2]);
            if(b==c)
            {
                name[b] = "";
            }
            else
            {
                name[b] = "";
                name[c] = "";
            }
            for(int i=0;i<name.Length;i++)
            {
                newname = newname + name[i];
            }
            Console.WriteLine(newname);
        }

    }
}
0