結果

問題 No.292 芸名
ユーザー takeya_okinotakeya_okino
提出日時 2017-06-20 11:59:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 374 bytes
コンパイル時間 2,082 ms
コンパイル使用メモリ 76,884 KB
実行使用メモリ 54,304 KB
最終ジャッジ日時 2024-04-10 02:26:05
合計ジャッジ時間 4,420 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
54,304 KB
testcase_01 AC 125 ms
54,128 KB
testcase_02 AC 121 ms
54,068 KB
testcase_03 AC 124 ms
53,952 KB
testcase_04 AC 112 ms
52,976 KB
testcase_05 AC 128 ms
54,084 KB
testcase_06 AC 111 ms
52,952 KB
testcase_07 AC 130 ms
54,116 KB
testcase_08 AC 124 ms
54,276 KB
testcase_09 AC 122 ms
54,008 KB
testcase_10 AC 126 ms
54,124 KB
testcase_11 AC 127 ms
54,300 KB
testcase_12 AC 124 ms
53,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int t = sc.nextInt();
    int u = sc.nextInt();
    String ans = "";
    for(int i = 0; i < s.length(); i++) {
      if((i != t) && (i != u)) ans += String.valueOf(s.charAt(i));
    }
    System.out.println(ans);
  }
}
0