結果

問題 No.292 芸名
ユーザー FVRChanFVRChan
提出日時 2017-10-03 09:50:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 1,949 ms
コンパイル使用メモリ 74,732 KB
実行使用メモリ 54,220 KB
最終ジャッジ日時 2024-04-27 22:37:03
合計ジャッジ時間 4,296 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
53,884 KB
testcase_01 AC 108 ms
52,932 KB
testcase_02 AC 106 ms
53,052 KB
testcase_03 AC 118 ms
54,172 KB
testcase_04 AC 107 ms
52,980 KB
testcase_05 AC 113 ms
53,856 KB
testcase_06 AC 117 ms
52,840 KB
testcase_07 AC 117 ms
53,888 KB
testcase_08 AC 101 ms
52,964 KB
testcase_09 AC 115 ms
53,884 KB
testcase_10 AC 114 ms
52,988 KB
testcase_11 AC 117 ms
54,220 KB
testcase_12 AC 114 ms
53,148 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