結果

問題 No.292 芸名
ユーザー ぴろずぴろず
提出日時 2015-10-23 22:21:52
言語 Java19
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 405 bytes
コンパイル時間 2,015 ms
コンパイル使用メモリ 72,440 KB
実行使用メモリ 56,404 KB
最終ジャッジ日時 2023-09-29 17:45:51
合計ジャッジ時間 4,546 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,796 KB
testcase_01 AC 123 ms
55,924 KB
testcase_02 AC 118 ms
55,740 KB
testcase_03 AC 120 ms
55,612 KB
testcase_04 AC 117 ms
56,084 KB
testcase_05 AC 118 ms
55,920 KB
testcase_06 AC 117 ms
55,952 KB
testcase_07 AC 117 ms
55,484 KB
testcase_08 AC 119 ms
55,632 KB
testcase_09 AC 118 ms
55,664 KB
testcase_10 AC 118 ms
56,404 KB
testcase_11 AC 119 ms
56,236 KB
testcase_12 AC 118 ms
55,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no292;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		int t = sc.nextInt();
		int u = sc.nextInt();
		StringBuilder sb = new StringBuilder();
		for(int i=0;i<s.length;i++) {
			if (i != t && i != u) {
				sb.append(s[i]);
			}
		}
		System.out.println(sb.toString());
	}

}
0