結果

問題 No.292 芸名
ユーザー Tsukasa_Type
提出日時 2018-02-10 14:54:07
言語 Java
(openjdk 23)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 364 bytes
コンパイル時間 2,386 ms
コンパイル使用メモリ 75,708 KB
実行使用メモリ 42,484 KB
最終ジャッジ日時 2024-10-13 11:34:15
合計ジャッジ時間 5,064 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		String s = sc.next();
		int b = sc.nextInt();
		int c = sc.nextInt();
		String ans = "";
		for (int i=0; i<s.length(); i++) {
			char ch = s.charAt(i);
			if (i==b || i==c) {continue;}
			ans += ch;
		}
		System.out.println(ans);
	}
}
0