結果

問題 No.292 芸名
ユーザー cande398cande398
提出日時 2017-10-10 17:23:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 360 bytes
コンパイル時間 1,822 ms
コンパイル使用メモリ 72,200 KB
実行使用メモリ 56,304 KB
最終ジャッジ日時 2023-08-10 22:28:28
合計ジャッジ時間 4,287 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,796 KB
testcase_01 AC 123 ms
55,472 KB
testcase_02 AC 124 ms
56,304 KB
testcase_03 AC 112 ms
55,800 KB
testcase_04 AC 112 ms
55,600 KB
testcase_05 AC 119 ms
55,948 KB
testcase_06 AC 123 ms
55,484 KB
testcase_07 AC 113 ms
56,148 KB
testcase_08 AC 116 ms
55,484 KB
testcase_09 AC 124 ms
56,288 KB
testcase_10 AC 118 ms
55,908 KB
testcase_11 AC 115 ms
55,488 KB
testcase_12 AC 126 ms
55,692 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