結果

問題 No.292 芸名
ユーザー bell
提出日時 2021-02-20 21:10:12
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 2,234 ms
コンパイル使用メモリ 75,200 KB
実行使用メモリ 54,212 KB
最終ジャッジ日時 2024-09-18 21:31:23
合計ジャッジ時間 4,726 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 8 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

	import java.util.*;

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

			System.out.println(sb);
		}
	}
0