結果

問題 No.292 芸名
ユーザー shinwisteriashinwisteria
提出日時 2018-02-16 23:24:32
言語 Java19
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 480 bytes
コンパイル時間 5,146 ms
コンパイル使用メモリ 75,544 KB
実行使用メモリ 56,300 KB
最終ジャッジ日時 2023-09-05 10:26:21
合計ジャッジ時間 6,494 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
53,924 KB
testcase_01 AC 120 ms
56,192 KB
testcase_02 AC 119 ms
55,980 KB
testcase_03 AC 118 ms
55,932 KB
testcase_04 AC 117 ms
55,904 KB
testcase_05 AC 118 ms
55,764 KB
testcase_06 AC 120 ms
56,300 KB
testcase_07 AC 117 ms
55,976 KB
testcase_08 AC 117 ms
55,852 KB
testcase_09 AC 118 ms
55,532 KB
testcase_10 AC 118 ms
56,128 KB
testcase_11 AC 117 ms
56,104 KB
testcase_12 AC 118 ms
55,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con292 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner s = new Scanner(System.in);
		String str = s.next();
		int t = s.nextInt() , u = s.nextInt();
		s.close();
		int p = Math.max(t, u) , q = Math.min(t, u);

		str = str.substring(0, p) + str.substring(p+1);
		if(p != q){
			str = str.substring(0, q) + str.substring(q+1);
		}
		System.out.println(str);
	}

}
0