結果
| 問題 | No.292 芸名 |
| コンテスト | |
| ユーザー |
AoiroFukurou
|
| 提出日時 | 2016-01-04 20:41:37 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 529 bytes |
| 記録 | |
| コンパイル時間 | 3,666 ms |
| コンパイル使用メモリ | 85,580 KB |
| 実行使用メモリ | 41,644 KB |
| 最終ジャッジ日時 | 2024-09-19 11:15:52 |
| 合計ジャッジ時間 | 5,421 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 10 |
ソースコード
package yuki_coder;
import java.util.Scanner;
public class No_292 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String S = sc.nextLine();
int t = sc.nextInt();
int u = sc.nextInt();
sc.close();
String[] st = new String[50];
String S2 = "";
for(int i = 1; i <= S.length(); i++){
st[i-1] = S.substring(i-1, i);
}
if(t==u){
st[t] = "";
}else{
st[t] = "";
st[u] = "";
}
for(int i = 0; i < S.length(); i++){
S2 += st[i];
}
System.out.println(S2);
}
}
AoiroFukurou