結果

問題 No.292 芸名
ユーザー kenji_shioya
提出日時 2016-06-03 15:49:45
言語 Java
(openjdk 23)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 442 bytes
コンパイル時間 3,164 ms
コンパイル使用メモリ 85,760 KB
実行使用メモリ 41,136 KB
最終ジャッジ日時 2024-10-08 06:18:48
合計ジャッジ時間 5,418 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

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