結果
問題 | No.2614 Delete ABC |
ユーザー | lloyz |
提出日時 | 2024-01-26 21:30:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 49 ms / 2,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 81,572 KB |
実行使用メモリ | 61,580 KB |
最終ジャッジ日時 | 2024-01-26 21:30:07 |
合計ジャッジ時間 | 855 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 39 ms
53,332 KB |
testcase_01 | AC | 49 ms
59,460 KB |
testcase_02 | AC | 45 ms
61,580 KB |
ソースコード
S = ["AB", "AC"] C = ["B", "C"] for _ in range(int(input())): n = int(input()) ANS = [] for i in range(n): ANS.append(S[i % 2]) f = n % 2 for i in range(n): ANS.append(C[(f + i) % 2]) print(''.join(ANS))