結果

問題 No.292 芸名
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-12 19:48:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 432 bytes
コンパイル時間 2,054 ms
コンパイル使用メモリ 72,156 KB
実行使用メモリ 56,464 KB
最終ジャッジ日時 2023-08-17 03:53:30
合計ジャッジ時間 4,668 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
55,840 KB
testcase_01 AC 130 ms
55,336 KB
testcase_02 AC 127 ms
55,944 KB
testcase_03 AC 124 ms
55,988 KB
testcase_04 AC 124 ms
55,780 KB
testcase_05 AC 124 ms
55,288 KB
testcase_06 AC 123 ms
56,464 KB
testcase_07 AC 124 ms
55,344 KB
testcase_08 AC 125 ms
55,520 KB
testcase_09 AC 131 ms
55,896 KB
testcase_10 AC 130 ms
55,772 KB
testcase_11 AC 127 ms
55,808 KB
testcase_12 AC 122 ms
55,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String [] arr = S.split("");
        int t = sc.nextInt();
        int u = sc.nextInt();
        for(int i=0; i<arr.length; i++){
            if(i!=t && i!=u){
                System.out.print(arr[i]);
            }
        }
        System.out.println();
    }
}
0