結果

問題 No.292 芸名
ユーザー yagi2yagi2
提出日時 2017-04-20 15:35:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 493 bytes
コンパイル時間 1,905 ms
コンパイル使用メモリ 71,840 KB
実行使用メモリ 56,608 KB
最終ジャッジ日時 2023-09-27 03:35:17
合計ジャッジ時間 4,309 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
56,308 KB
testcase_01 AC 112 ms
55,608 KB
testcase_02 AC 111 ms
56,136 KB
testcase_03 AC 112 ms
56,328 KB
testcase_04 AC 112 ms
56,608 KB
testcase_05 AC 112 ms
55,944 KB
testcase_06 AC 113 ms
56,312 KB
testcase_07 AC 113 ms
56,092 KB
testcase_08 AC 113 ms
56,080 KB
testcase_09 AC 113 ms
55,772 KB
testcase_10 AC 115 ms
56,068 KB
testcase_11 AC 114 ms
55,928 KB
testcase_12 AC 113 ms
55,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String S = sc.next();
        int i = Integer.parseInt(sc.next());
        int u = Integer.parseInt(sc.next());

        StringBuilder R = new StringBuilder();
        for (int j = 0; j < S.length(); j++) {
            if (j != i && j != u) {
                R.append(S.charAt(j));
            }
        }

        System.out.println(R);
    }
}
0