結果

問題 No.292 芸名
ユーザー fal_rndfal_rnd
提出日時 2017-07-18 23:44:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 2,037 ms
コンパイル使用メモリ 76,612 KB
実行使用メモリ 41,740 KB
最終ジャッジ日時 2024-04-17 02:04:38
合計ジャッジ時間 4,244 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
41,092 KB
testcase_01 AC 110 ms
41,328 KB
testcase_02 AC 111 ms
41,468 KB
testcase_03 AC 114 ms
41,556 KB
testcase_04 AC 110 ms
41,264 KB
testcase_05 AC 104 ms
41,268 KB
testcase_06 AC 114 ms
41,612 KB
testcase_07 AC 123 ms
41,548 KB
testcase_08 AC 121 ms
41,576 KB
testcase_09 AC 112 ms
41,416 KB
testcase_10 AC 113 ms
41,396 KB
testcase_11 AC 118 ms
41,740 KB
testcase_12 AC 115 ms
41,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class C{
	public static void main(String[]$){
		Scanner s=new Scanner(System.in);
		String v=s.next();
		int t=s.nextInt(),u=s.nextInt();
		v=v.substring(0,t)+v.substring(t+1,v.length());
		
		if(u<t)
			v=v.substring(0,u)+v.substring(u+1,v.length());
		if(u>t)
			v=v.substring(0,u-1)+v.substring(u,v.length());
		System.out.println(v);
	}
}
0