結果

問題 No.292 芸名
ユーザー nCk_cvnCk_cv
提出日時 2015-10-27 19:17:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 409 bytes
コンパイル時間 2,157 ms
コンパイル使用メモリ 72,580 KB
実行使用メモリ 58,252 KB
最終ジャッジ日時 2023-10-11 04:41:16
合計ジャッジ時間 4,832 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,100 KB
testcase_01 AC 121 ms
56,440 KB
testcase_02 AC 122 ms
56,256 KB
testcase_03 AC 121 ms
56,180 KB
testcase_04 AC 122 ms
56,180 KB
testcase_05 AC 123 ms
55,948 KB
testcase_06 AC 123 ms
55,912 KB
testcase_07 AC 121 ms
58,252 KB
testcase_08 AC 121 ms
56,008 KB
testcase_09 AC 127 ms
55,828 KB
testcase_10 AC 124 ms
54,008 KB
testcase_11 AC 120 ms
55,876 KB
testcase_12 AC 123 ms
56,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;
import java.awt.geom.*;
import java.io.*;
    
    
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String in = sc.next();
		int a = sc.nextInt();
		int b = sc.nextInt();
		for(int i = 0; i < in.length(); i++) {
			if(i != a && i != b) {
				System.out.print(in.charAt(i));
			}
		}
		System.out.println();
	}
	
}
0