結果

問題 No.292 芸名
ユーザー curryudon08curryudon08
提出日時 2020-02-17 22:23:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 614 bytes
コンパイル時間 2,915 ms
コンパイル使用メモリ 112,068 KB
実行使用メモリ 27,652 KB
最終ジャッジ日時 2024-04-16 03:59:51
合計ジャッジ時間 3,622 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
25,324 KB
testcase_01 AC 25 ms
24,872 KB
testcase_02 AC 31 ms
25,380 KB
testcase_03 AC 32 ms
27,552 KB
testcase_04 AC 32 ms
25,252 KB
testcase_05 AC 32 ms
27,508 KB
testcase_06 AC 32 ms
25,256 KB
testcase_07 AC 25 ms
24,868 KB
testcase_08 AC 26 ms
26,952 KB
testcase_09 AC 32 ms
25,388 KB
testcase_10 AC 33 ms
27,652 KB
testcase_11 AC 31 ms
25,336 KB
testcase_12 AC 31 ms
25,452 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.Linq;
using System.Text;

namespace _0292
{
    class Program
    {
        static void Main(string[] args)
        {
            var input = Console.ReadLine().Split();
            var s = input[0];
            var t = int.Parse(input[1]);
            var v = int.Parse(input[2]);

            if(t == v){
                Console.WriteLine(s.Remove(t, 1));
            }else{
                var output = Enumerable.Range(0, s.Length).Where(i => (i != t && i != v)).Select(i => s[i]).ToArray();
                Console.WriteLine(string.Join("",output));
            }
        }
    }
}
0