結果

問題 No.292 芸名
ユーザー maru
提出日時 2016-03-23 16:34:45
言語 Java
(openjdk 23)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 468 bytes
コンパイル時間 3,384 ms
コンパイル使用メモリ 74,792 KB
実行使用メモリ 54,432 KB
最終ジャッジ日時 2024-10-01 21:32:06
合計ジャッジ時間 5,758 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class yukicoder_292 {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String s = stdIn.next();
		int t = stdIn.nextInt();
		int u = stdIn.nextInt();
		
		char[] str = new char[s.length()];
		
		for (int i = 0; i < s.length(); i++) {
			str[i] = s.charAt(i);
		}
		
		for (int i = 0; i < str.length; i++) {
			if ((i == t) || (i == u)) {
				continue;
			}
			System.out.print(str[i]);
		}
	}
}
0