結果

問題 No.292 芸名
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-07-04 00:52:08
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 544 bytes
コンパイル時間 744 ms
コンパイル使用メモリ 110,248 KB
実行使用メモリ 26,128 KB
最終ジャッジ日時 2024-07-01 02:05:45
合計ジャッジ時間 1,684 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 2 WA * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
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]);
            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