結果

問題 No.292 芸名
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-03 15:49:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 442 bytes
コンパイル時間 3,768 ms
コンパイル使用メモリ 76,804 KB
実行使用メモリ 41,816 KB
最終ジャッジ日時 2024-04-16 23:31:10
合計ジャッジ時間 5,432 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
41,488 KB
testcase_01 AC 111 ms
41,352 KB
testcase_02 AC 120 ms
41,544 KB
testcase_03 AC 126 ms
41,308 KB
testcase_04 AC 116 ms
41,520 KB
testcase_05 AC 128 ms
41,816 KB
testcase_06 AC 125 ms
41,616 KB
testcase_07 AC 128 ms
41,636 KB
testcase_08 AC 127 ms
41,316 KB
testcase_09 AC 124 ms
41,448 KB
testcase_10 AC 129 ms
41,460 KB
testcase_11 AC 124 ms
41,684 KB
testcase_12 AC 110 ms
41,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Exercise54{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    String str = sc.next();

    int a = sc.nextInt();
    int b = sc.nextInt();

    String[] strArray = str.split("");

    strArray[a] = "";
    strArray[b] = "";

    String newStr = "";
    for (int i = 0; i < strArray.length; i++){
      newStr += strArray[i];
    }
    System.out.println(newStr);
  }
}
0