結果

問題 No.2614 Delete ABC
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2024-01-27 20:25:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 378 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 55,604 KB
最終ジャッジ日時 2024-01-27 20:25:54
合計ジャッジ時間 1,252 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
55,604 KB
testcase_01 AC 46 ms
55,604 KB
testcase_02 AC 44 ms
55,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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()
0