結果

問題 No.2614 Delete ABC
コンテスト
ユーザー Navier_Boltzmann
提出日時 2024-01-27 20:25:52
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 83 ms / 2,000 ms
+ 620µs
コード長 378 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 228 ms
コンパイル使用メモリ 95,948 KB
実行使用メモリ 84,012 KB
最終ジャッジ日時 2026-09-05 15:26:11
合計ジャッジ時間 1,406 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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