結果

問題 No.292 芸名
ユーザー bluemeganebluemegane
提出日時 2018-09-25 10:56:43
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 397 bytes
コンパイル時間 1,197 ms
コンパイル使用メモリ 108,468 KB
実行使用メモリ 26,108 KB
最終ジャッジ日時 2024-04-10 11:11:12
合計ジャッジ時間 2,306 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var s = line[0].ToCharArray();
        var a = int.Parse(line[1]);
        var b = int.Parse(line[2]);
        var ans = "";
        for (int i = 0; i < s.Length; i++)
            if (i != a && i != b) ans += s[i];
        Console.WriteLine(ans);
    }
}
0