結果

問題 No.292 芸名
ユーザー AoiroFukurouAoiroFukurou
提出日時 2016-01-05 13:47:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 616 bytes
コンパイル時間 4,348 ms
コンパイル使用メモリ 77,124 KB
実行使用メモリ 57,624 KB
最終ジャッジ日時 2023-10-19 15:14:21
合計ジャッジ時間 5,976 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
57,496 KB
testcase_01 AC 132 ms
57,508 KB
testcase_02 AC 129 ms
57,496 KB
testcase_03 AC 133 ms
57,504 KB
testcase_04 AC 132 ms
57,456 KB
testcase_05 AC 133 ms
57,528 KB
testcase_06 AC 129 ms
57,520 KB
testcase_07 AC 128 ms
57,468 KB
testcase_08 AC 131 ms
57,440 KB
testcase_09 AC 130 ms
57,212 KB
testcase_10 AC 132 ms
57,500 KB
testcase_11 AC 130 ms
57,624 KB
testcase_12 AC 131 ms
57,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yuki_coder;

import java.util.Scanner;

public class No_292 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		sc.close();
		String[] str = S.split(" ", 0);
		String[] st = new String[str[0].length()];
		String S2 = "";
		int t = Integer.parseInt(str[1]);
		int u = Integer.parseInt(str[2]);
		for(int i = 1; i <= str[0].length(); i++){
			st[i-1] = str[0].substring(i-1, i);
		}
		if(t==u){
			st[t] = "";
		}else{
			st[t] = "";
			st[u] = "";
		}
		for(int i = 0; i < str[0].length(); i++){
			S2 += st[i];
		}
		System.out.println(S2);
	}
	}
0