結果

問題 No.292 芸名
ユーザー yamax3232yamax3232
提出日時 2017-02-16 15:00:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 445 bytes
コンパイル時間 3,082 ms
コンパイル使用メモリ 71,936 KB
実行使用メモリ 56,476 KB
最終ジャッジ日時 2023-08-28 17:38:58
合計ジャッジ時間 5,526 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
54,140 KB
testcase_01 AC 125 ms
55,836 KB
testcase_02 AC 124 ms
56,104 KB
testcase_03 AC 124 ms
56,044 KB
testcase_04 AC 125 ms
55,880 KB
testcase_05 AC 124 ms
56,076 KB
testcase_06 AC 125 ms
56,452 KB
testcase_07 AC 124 ms
55,532 KB
testcase_08 AC 126 ms
55,744 KB
testcase_09 AC 133 ms
56,476 KB
testcase_10 AC 129 ms
55,868 KB
testcase_11 AC 126 ms
56,220 KB
testcase_12 AC 126 ms
56,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Geimei {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
Scanner kb=new Scanner(System.in);
String geimei=kb.next();
int a=kb.nextInt(),b=kb.nextInt();
char ch[]={};
ch=geimei.toCharArray();
ch[a]='\0';
ch[b]='\0';
for(int i=0;i<ch.length;i++){
	if(ch[i]!='\0'){
	System.out.printf("%c",ch[i]);
	}else{
		continue;
	}
}
System.out.println();
kb.close();
	}

}
0