結果

問題 No.292 芸名
ユーザー cande398cande398
提出日時 2017-10-10 17:23:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 360 bytes
コンパイル時間 1,948 ms
コンパイル使用メモリ 74,264 KB
実行使用メモリ 54,216 KB
最終ジャッジ日時 2024-04-28 15:28:05
合計ジャッジ時間 4,198 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
54,044 KB
testcase_01 AC 112 ms
52,668 KB
testcase_02 AC 129 ms
54,216 KB
testcase_03 AC 122 ms
54,080 KB
testcase_04 AC 110 ms
52,684 KB
testcase_05 AC 119 ms
53,856 KB
testcase_06 AC 121 ms
54,000 KB
testcase_07 AC 120 ms
54,064 KB
testcase_08 AC 124 ms
54,004 KB
testcase_09 AC 127 ms
53,932 KB
testcase_10 AC 130 ms
53,820 KB
testcase_11 AC 117 ms
53,896 KB
testcase_12 AC 127 ms
53,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String line = sc.next();
    int a = sc.nextInt();
    int b = sc.nextInt();
    for(int i=0;i<line.length();i++){
      if(i!=a && i!=b)System.out.print(line.charAt(i));
      if(i==line.length()-1)System.out.println();
    }
  }
}
0