結果

問題 No.292 芸名
ユーザー マサマサ
提出日時 2022-02-09 17:27:01
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 5,769 ms
コンパイル使用メモリ 71,708 KB
実行使用メモリ 56,316 KB
最終ジャッジ日時 2023-09-07 02:55:21
合計ジャッジ時間 7,192 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,948 KB
testcase_01 AC 124 ms
55,676 KB
testcase_02 WA -
testcase_03 RE -
testcase_04 AC 123 ms
55,776 KB
testcase_05 AC 125 ms
55,904 KB
testcase_06 AC 124 ms
55,772 KB
testcase_07 AC 126 ms
55,732 KB
testcase_08 AC 126 ms
55,476 KB
testcase_09 AC 127 ms
55,800 KB
testcase_10 AC 125 ms
55,968 KB
testcase_11 AC 122 ms
55,460 KB
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		int t = sc.nextInt();
		int u = sc.nextInt();
		
		StringBuilder sb = new StringBuilder(str);
		
		sb.delete(t, t+1);
		if (!(t == u)) {
			sb.delete(u-1, u);
		}
		
		System.out.println(sb.toString());
		
		sc.close();
	}
}
0