結果

問題 No.292 芸名
ユーザー kmtrc130kmtrc130
提出日時 2017-05-25 13:54:55
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 521 bytes
コンパイル時間 790 ms
コンパイル使用メモリ 105,864 KB
実行使用メモリ 24,056 KB
最終ジャッジ日時 2023-10-19 23:16:13
合計ジャッジ時間 1,657 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

using System;

class Program
{
    static void Main(string[] args)
    {
        string[] Stu = Console.ReadLine().Split(' ');

        string S = Stu[0];
        int B = int.Parse(Stu[1]);
        int C = int.Parse(Stu[2]);

        if (B > C)
        {
            S = S.Remove(B, 1);
            S = S.Remove(C, 1);
        }
        else if (B < C)
        {
            S = S.Remove(C, 1);
            S = S.Remove(B, 1);
        }
        else
        { S = S.Remove(B, 1); }

        Console.WriteLine(S);
    }
}
0