結果
問題 | No.292 芸名 |
ユーザー |
![]() |
提出日時 | 2016-01-05 13:45:28 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 121 ms / 2,000 ms |
コード長 | 603 bytes |
コンパイル時間 | 3,769 ms |
コンパイル使用メモリ | 76,164 KB |
実行使用メモリ | 54,144 KB |
最終ジャッジ日時 | 2024-09-19 11:21:36 |
合計ジャッジ時間 | 5,365 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 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();sc.close();String[] str = S.split(" ", 0);String[] st = new String[50];String S2 = "";int t = Integer.parseInt(str[1]);int u = Integer.parseInt(str[2]);for(int i = 1; i <= str[0].length(); i++){st[i-1] = str[0].substring(i-1, i);}if(t==u){st[t] = "";}else{st[t] = "";st[u] = "";}for(int i = 0; i < str[0].length(); i++){S2 += st[i];}System.out.println(S2);}}