結果
問題 |
No.292 芸名
|
ユーザー |
|
提出日時 | 2022-02-09 17:27:01 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 2,773 ms |
コンパイル使用メモリ | 74,464 KB |
実行使用メモリ | 41,652 KB |
最終ジャッジ日時 | 2024-06-24 21:36:41 |
合計ジャッジ時間 | 5,365 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 8 RE * 2 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); int t = sc.nextInt(); int u = sc.nextInt(); StringBuilder sb = new StringBuilder(str); sb.delete(t, t+1); if (!(t == u)) { sb.delete(u-1, u); } System.out.println(sb.toString()); sc.close(); } }