結果

問題 No.292 芸名
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-12 19:48:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 432 bytes
コンパイル時間 1,929 ms
コンパイル使用メモリ 73,912 KB
実行使用メモリ 41,576 KB
最終ジャッジ日時 2024-05-04 11:02:43
合計ジャッジ時間 4,285 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
41,172 KB
testcase_01 AC 126 ms
41,296 KB
testcase_02 AC 115 ms
41,172 KB
testcase_03 AC 116 ms
39,976 KB
testcase_04 AC 107 ms
41,332 KB
testcase_05 AC 116 ms
41,576 KB
testcase_06 AC 117 ms
41,160 KB
testcase_07 AC 126 ms
41,036 KB
testcase_08 AC 116 ms
39,916 KB
testcase_09 AC 108 ms
41,332 KB
testcase_10 AC 105 ms
41,292 KB
testcase_11 AC 113 ms
41,208 KB
testcase_12 AC 116 ms
41,492 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