結果
問題 | No.292 芸名 |
ユーザー |
![]() |
提出日時 | 2016-02-21 10:50:54 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 135 ms / 2,000 ms |
コード長 | 881 bytes |
コンパイル時間 | 2,249 ms |
コンパイル使用メモリ | 74,432 KB |
実行使用メモリ | 54,320 KB |
最終ジャッジ日時 | 2024-09-22 12:33:28 |
合計ジャッジ時間 | 4,648 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import java.util.Scanner;class Main {public static void main(String[] args) throws Exception {Scanner in = new Scanner(System.in);String s = in.next();int t = in.nextInt();int u = in.nextInt();char[] ans = s.toCharArray();if(t == u) {for(int i=0; i<s.length(); i++) {if(i == t) {continue;} else {System.out.print(ans[i]);}}System.out.println();} else {for(int i=0; i<s.length(); i++) {if(i == t) {continue;} else if(i == u) {continue;} else {System.out.print(ans[i]);}}System.out.println();}}}