結果

問題 No.292 芸名
ユーザー marumaru
提出日時 2016-03-23 16:34:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 468 bytes
コンパイル時間 3,614 ms
コンパイル使用メモリ 77,748 KB
実行使用メモリ 54,372 KB
最終ジャッジ日時 2024-04-09 21:06:01
合計ジャッジ時間 5,011 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
53,980 KB
testcase_01 AC 109 ms
54,372 KB
testcase_02 AC 108 ms
54,244 KB
testcase_03 AC 97 ms
52,976 KB
testcase_04 AC 106 ms
53,908 KB
testcase_05 AC 107 ms
54,032 KB
testcase_06 AC 107 ms
53,832 KB
testcase_07 AC 114 ms
54,232 KB
testcase_08 AC 104 ms
53,136 KB
testcase_09 AC 104 ms
53,132 KB
testcase_10 AC 110 ms
53,888 KB
testcase_11 AC 107 ms
54,128 KB
testcase_12 AC 95 ms
52,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class yukicoder_292 {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String s = stdIn.next();
		int t = stdIn.nextInt();
		int u = stdIn.nextInt();
		
		char[] str = new char[s.length()];
		
		for (int i = 0; i < s.length(); i++) {
			str[i] = s.charAt(i);
		}
		
		for (int i = 0; i < str.length; i++) {
			if ((i == t) || (i == u)) {
				continue;
			}
			System.out.print(str[i]);
		}
	}
}
0