結果
| 問題 |
No.2614 Delete ABC
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-27 20:25:52 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 2,000 ms |
| コード長 | 378 bytes |
| コンパイル時間 | 279 ms |
| コンパイル使用メモリ | 81,848 KB |
| 実行使用メモリ | 56,532 KB |
| 最終ジャッジ日時 | 2024-09-28 09:48:39 |
| 合計ジャッジ時間 | 947 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 |
ソースコード
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
def answer():
N = int(input())
if N%2==0:
n = N//2
print("ABACBC"*n)
return
else:
n = N//2
print('ABACBACBC'+"ABACBC"*(n-1))
return
for _ in range(int(input())):
answer()