結果

問題 No.292 芸名
ユーザー samplelpmassamplelpmas
提出日時 2016-12-19 09:47:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 455 bytes
コンパイル時間 3,157 ms
コンパイル使用メモリ 71,484 KB
実行使用メモリ 56,128 KB
最終ジャッジ日時 2023-08-21 01:08:44
合計ジャッジ時間 5,689 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,080 KB
testcase_01 AC 120 ms
56,108 KB
testcase_02 AC 121 ms
56,068 KB
testcase_03 AC 121 ms
55,716 KB
testcase_04 AC 121 ms
55,808 KB
testcase_05 AC 123 ms
56,108 KB
testcase_06 AC 120 ms
56,116 KB
testcase_07 AC 121 ms
55,824 KB
testcase_08 AC 122 ms
53,740 KB
testcase_09 AC 126 ms
55,872 KB
testcase_10 AC 123 ms
56,076 KB
testcase_11 AC 124 ms
55,952 KB
testcase_12 AC 121 ms
56,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        char[] stageName = sc.next().toCharArray();

        int masterA = sc.nextInt();
        int masterB = sc.nextInt();

        for (int i = 0; i < stageName.length; i++) {

            if ((i != masterA) && (i != masterB)) {
                System.out.print(stageName[i]);
            }

        }

    }

}
0