結果

問題 No.292 芸名
ユーザー AoiroFukurouAoiroFukurou
提出日時 2016-01-05 13:45:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 603 bytes
コンパイル時間 4,141 ms
コンパイル使用メモリ 76,308 KB
実行使用メモリ 57,592 KB
最終ジャッジ日時 2023-10-19 15:14:09
合計ジャッジ時間 6,751 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
57,032 KB
testcase_01 AC 131 ms
57,492 KB
testcase_02 AC 134 ms
57,500 KB
testcase_03 AC 132 ms
57,464 KB
testcase_04 AC 133 ms
57,496 KB
testcase_05 AC 137 ms
57,360 KB
testcase_06 AC 136 ms
57,036 KB
testcase_07 AC 133 ms
57,316 KB
testcase_08 AC 134 ms
57,388 KB
testcase_09 AC 132 ms
57,592 KB
testcase_10 AC 133 ms
57,396 KB
testcase_11 AC 133 ms
57,496 KB
testcase_12 AC 135 ms
57,332 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[50];
		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