結果
問題 | No.2614 Delete ABC |
ユーザー | ks2m |
提出日時 | 2024-01-26 21:22:23 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 78 ms / 2,000 ms |
コード長 | 516 bytes |
コンパイル時間 | 4,538 ms |
コンパイル使用メモリ | 74,160 KB |
実行使用メモリ | 54,356 KB |
最終ジャッジ日時 | 2024-01-26 21:22:28 |
合計ジャッジ時間 | 5,324 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
53,980 KB |
testcase_01 | AC | 62 ms
53,980 KB |
testcase_02 | AC | 78 ms
54,356 KB |
ソースコード
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); for (int i = 0; i < t; i++) { int n = Integer.parseInt(br.readLine()); StringBuilder sb = new StringBuilder("ABACBC"); for (int j = 0; j < n - 2; j++) { sb.append("ABC"); } System.out.println(sb.toString()); } br.close(); } }