結果

問題 No.292 芸名
ユーザー tubo28tubo28
提出日時 2015-11-13 21:30:50
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 498 bytes
コンパイル時間 2,870 ms
コンパイル使用メモリ 72,588 KB
実行使用メモリ 57,908 KB
最終ジャッジ日時 2023-10-11 15:48:31
合計ジャッジ時間 5,080 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 127 ms
55,968 KB
testcase_02 AC 128 ms
55,976 KB
testcase_03 AC 127 ms
53,748 KB
testcase_04 AC 126 ms
55,404 KB
testcase_05 AC 127 ms
56,068 KB
testcase_06 AC 128 ms
55,620 KB
testcase_07 AC 126 ms
56,100 KB
testcase_08 AC 126 ms
55,620 KB
testcase_09 AC 131 ms
55,668 KB
testcase_10 WA -
testcase_11 AC 128 ms
56,100 KB
testcase_12 AC 126 ms
56,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yk725;

import java.util.*;
import java.lang.*;

public class Main {
	public static void main(String [] args){
		cin = new Scanner(System.in);
		(new Main()).run();
	}
	static Scanner cin;
	void run() {
		char[] S = cin.next().toCharArray();
		ArrayList<Character> arr = new ArrayList<>();
		for(char c : S){
			arr.add(c);
		}
		arr.set(cin.nextInt(), ' ');
		arr.set(cin.nextInt(), ' ');
		arr.remove((Character)' ');
		for(char c : arr) System.out.print(c);
		System.out.println();
	}
}
0