結果

問題 No.292 芸名
ユーザー Naoyk1212Naoyk1212
提出日時 2015-10-23 23:56:06
言語 Java19
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 2,236 ms
コンパイル使用メモリ 72,680 KB
実行使用メモリ 56,176 KB
最終ジャッジ日時 2023-10-11 04:47:33
合計ジャッジ時間 4,941 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
55,796 KB
testcase_01 AC 131 ms
55,632 KB
testcase_02 AC 132 ms
55,876 KB
testcase_03 AC 128 ms
55,904 KB
testcase_04 AC 131 ms
55,924 KB
testcase_05 AC 129 ms
56,176 KB
testcase_06 AC 127 ms
55,632 KB
testcase_07 AC 127 ms
56,104 KB
testcase_08 AC 129 ms
55,784 KB
testcase_09 AC 133 ms
55,908 KB
testcase_10 AC 137 ms
55,904 KB
testcase_11 AC 132 ms
55,736 KB
testcase_12 AC 132 ms
55,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		int t = sc.nextInt();
		int u = sc.nextInt();

		for(int i = 0; i < str.length(); i++){
			if(i != t && i != u){
				System.out.print(str.charAt(i));
			}
		}
		System.out.println();
	}

}
0