結果

問題 No.292 芸名
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-07-04 00:45:27
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 564 bytes
コンパイル時間 1,915 ms
コンパイル使用メモリ 105,100 KB
実行使用メモリ 22,840 KB
最終ジャッジ日時 2023-09-13 17:22:54
合計ジャッジ時間 3,233 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 54 ms
20,564 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 55 ms
20,784 KB
testcase_08 AC 54 ms
18,616 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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));
            return;
        }else{
            var i=Int32.Parse(s[1]);
            var j=Int32.Parse(s[2]);
            if(i>j){
                s[0].Remove(j,1);
                s[0].Remove(i-1,1);
            }else{
                s[0].Remove(i,1);
                s[0].Remove(j-1,1);
            }
            Console.WriteLine(s[0]);
        }
    }
}
0