結果

問題 No.292 芸名
ユーザー kaoetayakaoetaya
提出日時 2016-11-29 20:08:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 373 bytes
コンパイル時間 4,833 ms
コンパイル使用メモリ 73,320 KB
実行使用メモリ 56,372 KB
最終ジャッジ日時 2023-08-18 09:53:10
合計ジャッジ時間 5,768 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,252 KB
testcase_01 AC 120 ms
55,820 KB
testcase_02 AC 121 ms
55,756 KB
testcase_03 AC 119 ms
55,732 KB
testcase_04 AC 121 ms
55,472 KB
testcase_05 AC 122 ms
55,948 KB
testcase_06 AC 120 ms
56,328 KB
testcase_07 AC 120 ms
55,724 KB
testcase_08 AC 118 ms
55,672 KB
testcase_09 AC 124 ms
55,740 KB
testcase_10 AC 124 ms
55,440 KB
testcase_11 AC 122 ms
56,080 KB
testcase_12 AC 120 ms
56,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;

public class pre {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
		String str = s.next();
		int a = s.nextInt();
		int b = s.nextInt();
		
		for(int i=0;i<str.length();i++){
			if(i==a || i==b){
			}
			else{
				System.out.print(str.charAt(i));
			}
		}
		
		System.out.println();
    }
}
0