結果

問題 No.292 芸名
ユーザー Ryota EnokidoRyota Enokido
提出日時 2018-12-11 14:31:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 537 bytes
コンパイル時間 3,247 ms
コンパイル使用メモリ 74,188 KB
実行使用メモリ 57,600 KB
最終ジャッジ日時 2023-10-21 19:24:38
合計ジャッジ時間 4,924 ms
ジャッジサーバーID
(参考情報)
judge9 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
57,580 KB
testcase_01 AC 130 ms
57,428 KB
testcase_02 AC 132 ms
57,128 KB
testcase_03 AC 132 ms
57,308 KB
testcase_04 AC 127 ms
57,032 KB
testcase_05 AC 129 ms
57,464 KB
testcase_06 AC 130 ms
57,252 KB
testcase_07 AC 131 ms
57,460 KB
testcase_08 AC 128 ms
56,996 KB
testcase_09 AC 136 ms
57,600 KB
testcase_10 AC 132 ms
57,528 KB
testcase_11 AC 132 ms
57,432 KB
testcase_12 AC 132 ms
57,348 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();
            StringBuilder sb = new StringBuilder(s);
            int a = sc.nextInt();
            int b = sc.nextInt();
            
            for(int i=0; i<s.length(); i++){
                if(i==a || i==b){
                    continue;
                }
                System.out.print(sb.charAt(i));
            }
        }
    }
0