結果
問題 | No.292 芸名 |
ユーザー |
![]() |
提出日時 | 2016-01-03 15:43:19 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 103 ms / 2,000 ms |
コード長 | 556 bytes |
コンパイル時間 | 2,558 ms |
コンパイル使用メモリ | 76,184 KB |
実行使用メモリ | 40,076 KB |
最終ジャッジ日時 | 2024-09-19 10:46:44 |
合計ジャッジ時間 | 4,454 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import java.io.*; import java.util.*; class Main { public static void out (Object o) { System.out.println(o); } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] line = br.readLine().split(" "); char[] c = line[0].toCharArray(); int t = Integer.parseInt(line[1]); int u = Integer.parseInt(line[2]); String ans = ""; for (int i = 0; i < c.length; i++) { if (i == t || i == u) continue; ans += c[i]; } out(ans); } }