結果

問題 No.292 芸名
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-07-04 00:58:01
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 565 bytes
コンパイル時間 1,852 ms
コンパイル使用メモリ 101,292 KB
実行使用メモリ 22,816 KB
最終ジャッジ日時 2023-09-13 17:23:31
合計ジャッジ時間 3,285 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,804 KB
testcase_01 AC 55 ms
20,832 KB
testcase_02 AC 54 ms
22,696 KB
testcase_03 AC 53 ms
20,752 KB
testcase_04 AC 54 ms
22,816 KB
testcase_05 AC 53 ms
20,672 KB
testcase_06 AC 54 ms
20,648 KB
testcase_07 AC 54 ms
20,644 KB
testcase_08 AC 54 ms
20,728 KB
testcase_09 AC 54 ms
20,740 KB
testcase_10 AC 54 ms
22,704 KB
testcase_11 AC 54 ms
20,740 KB
testcase_12 AC 53 ms
20,732 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 No292{
    static void Main(){
        var s=Console.ReadLine().Split(' ');
        if(s[1]==s[2]){
            var i=Int32.Parse(s[1]);
            Console.WriteLine(s[0].Remove(i,1));
        }else{
            var i=Int32.Parse(s[1]);
            var j=Int32.Parse(s[2]);
            string a;
            if(i>j){
                a=s[0].Remove(j,1);
                a=a.Remove(i-1,1);
            }else{
                a=s[0].Remove(i,1);
                a=a.Remove(j-1,1);
            }
            Console.WriteLine(a);
        }
    }
}
0