結果

問題 No.292 芸名
ユーザー dazydazy
提出日時 2017-03-16 05:00:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 502 bytes
コンパイル時間 3,184 ms
コンパイル使用メモリ 72,548 KB
実行使用メモリ 56,428 KB
最終ジャッジ日時 2023-09-17 04:08:13
合計ジャッジ時間 5,667 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
55,708 KB
testcase_01 AC 111 ms
55,692 KB
testcase_02 AC 110 ms
56,428 KB
testcase_03 AC 110 ms
55,960 KB
testcase_04 AC 111 ms
56,064 KB
testcase_05 AC 109 ms
56,412 KB
testcase_06 AC 106 ms
55,744 KB
testcase_07 AC 111 ms
56,080 KB
testcase_08 AC 113 ms
55,748 KB
testcase_09 AC 118 ms
55,460 KB
testcase_10 AC 121 ms
55,808 KB
testcase_11 AC 116 ms
55,912 KB
testcase_12 AC 111 ms
55,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        String ans;
        String[] S = scan.next().split("");
        int t = scan.nextInt();
        int u = scan.nextInt();

        if (t!=u) {
            S[Math.max(t, u)] = "";
            S[Math.min(t, u)] = "";
        } else {
            S[t] = "";
        }
        for (int i = 0; i < S.length; i++) {
            System.out.printf(S[i]);
        }
    }
}
0