結果

問題 No.2614 Delete ABC
ユーザー pengin_2000
提出日時 2024-01-26 23:18:47
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 503 ms
コンパイル使用メモリ 28,416 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-28 09:04:54
合計ジャッジ時間 636 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
void solve()
{
	int n;
	scanf("%d", &n);
	for (; n > 3; n -= 2)
		printf("ABACBC");
	if (n == 3)
		printf("ABACABCBC\n");
	else
		printf("ABACBC\n");
	return;
}
int main()
{
	int t;
	scanf("%d", &t);
	for (; t > 0; t--)
		solve();
	return 0;
}
0