結果

問題 No.292 芸名
ユーザー AoiroFukurouAoiroFukurou
提出日時 2016-01-04 20:41:37
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 529 bytes
コンパイル時間 5,332 ms
コンパイル使用メモリ 76,404 KB
実行使用メモリ 57,788 KB
最終ジャッジ日時 2023-10-19 15:07:40
合計ジャッジ時間 6,605 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

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();
		int t = sc.nextInt();
		int u = sc.nextInt();
		sc.close();
		String[] st = new String[50];
		String S2 = "";
		for(int i = 1; i <= S.length(); i++){
			st[i-1] = S.substring(i-1, i);
		}
		if(t==u){
			st[t] = "";
		}else{
			st[t] = "";
			st[u] = "";
		}
		for(int i = 0; i < S.length(); i++){
			S2 += st[i];
		}
		System.out.println(S2);
	}
}
0