結果

問題 No.292 芸名
ユーザー FVRChanFVRChan
提出日時 2017-10-03 09:50:03
言語 Java19
(openjdk 21)
結果
AC  
実行時間 110 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 4,966 ms
コンパイル使用メモリ 71,612 KB
実行使用メモリ 39,656 KB
最終ジャッジ日時 2023-08-10 05:17:47
合計ジャッジ時間 6,256 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
39,140 KB
testcase_01 AC 104 ms
39,524 KB
testcase_02 AC 105 ms
38,984 KB
testcase_03 AC 110 ms
39,204 KB
testcase_04 AC 108 ms
39,108 KB
testcase_05 AC 110 ms
39,208 KB
testcase_06 AC 110 ms
39,224 KB
testcase_07 AC 106 ms
39,152 KB
testcase_08 AC 104 ms
39,288 KB
testcase_09 AC 108 ms
39,108 KB
testcase_10 AC 103 ms
39,364 KB
testcase_11 AC 106 ms
39,656 KB
testcase_12 AC 109 ms
39,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		char c[]=sc.next().toCharArray();
		int t=sc.nextInt();
		int u=sc.nextInt();
		c[t]=c[u]='#';
		System.out.println(String.valueOf(c).replaceAll("#",""));
	}
}
0