結果

問題 No.292 芸名
ユーザー spaciaspacia
提出日時 2016-01-03 15:43:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 556 bytes
コンパイル時間 2,338 ms
コンパイル使用メモリ 75,680 KB
実行使用メモリ 56,012 KB
最終ジャッジ日時 2023-10-19 14:37:54
合計ジャッジ時間 4,455 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
55,568 KB
testcase_01 AC 99 ms
54,844 KB
testcase_02 AC 105 ms
54,676 KB
testcase_03 AC 97 ms
54,752 KB
testcase_04 AC 109 ms
56,012 KB
testcase_05 AC 95 ms
54,552 KB
testcase_06 AC 95 ms
54,424 KB
testcase_07 AC 105 ms
54,020 KB
testcase_08 AC 98 ms
54,564 KB
testcase_09 AC 112 ms
56,012 KB
testcase_10 AC 100 ms
54,416 KB
testcase_11 AC 95 ms
54,744 KB
testcase_12 AC 106 ms
55,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main {
	
	public static void out (Object o) {
		System.out.println(o);
	}
		
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		char[] c = line[0].toCharArray();
		int t = Integer.parseInt(line[1]);
		int u = Integer.parseInt(line[2]);
		
		String ans = "";
		for (int i = 0; i < c.length; i++) {
			if (i == t || i == u) continue;
			ans += c[i];
		}
		
		out(ans);
	}
}
0