結果

問題 No.292 芸名
ユーザー jimanojimano
提出日時 2018-01-20 13:12:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 615 bytes
コンパイル時間 3,180 ms
コンパイル使用メモリ 71,388 KB
実行使用メモリ 50,304 KB
最終ジャッジ日時 2023-08-26 08:49:07
合計ジャッジ時間 4,718 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
49,664 KB
testcase_01 AC 47 ms
49,900 KB
testcase_02 AC 47 ms
49,756 KB
testcase_03 AC 48 ms
49,848 KB
testcase_04 AC 47 ms
50,148 KB
testcase_05 AC 46 ms
49,812 KB
testcase_06 AC 46 ms
50,000 KB
testcase_07 AC 46 ms
49,660 KB
testcase_08 AC 46 ms
49,580 KB
testcase_09 AC 47 ms
49,812 KB
testcase_10 AC 46 ms
49,828 KB
testcase_11 AC 45 ms
50,304 KB
testcase_12 AC 45 ms
49,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No0292 {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) {
			String[] str = br.readLine().split(" ");
			int t = Integer.parseInt(str[1]);
			int u = Integer.parseInt(str[2]);
			char[] array = str[0].toCharArray();
			array[t] = ' ';
			array[u] = ' ';
			String name = String.valueOf(array).replaceAll(" ", "");

			System.out.println(name);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0