提出 #63250302


ソースコード 拡げる

#include<bits/stdc++.h>
using namespace std;
const int N=1e6+5,M=55; 
long long n,m,a[N];
char po[M][M];
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>n;
	for(int i=1;i<=n;++i)
	{
		for(int j=i;j<=n-i+1;++j)
			for(int z=i;z<=n-i+1;++z)
				if(i%2==1)
					po[j][z]='#';
				else
					po[j][z]='.';
	}
	for(int i=1;i<=n;++i)
	{
		for(int j=1;j<=n;++j)
			cout<<po[i][j];
		cout<<'\n';
	}
	return 0; 
} 

提出情報

提出日時
問題 B - Make Target
ユーザ billsans_sky
言語 C++ 20 (gcc 12.2)
得点 200
コード長 459 Byte
結果 AC
実行時間 1 ms
メモリ 3528 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 4
AC × 20
セット名 テストケース
Sample 00-sample-001.txt, 00-sample-002.txt, 00-sample-003.txt, 00-sample-004.txt
All 00-sample-001.txt, 00-sample-002.txt, 00-sample-003.txt, 00-sample-004.txt, 01-random-001.txt, 01-random-002.txt, 01-random-003.txt, 01-random-004.txt, 01-random-005.txt, 01-random-006.txt, 01-random-007.txt, 01-random-008.txt, 01-random-009.txt, 01-random-010.txt, 01-random-011.txt, 01-random-012.txt, 01-random-013.txt, 01-random-014.txt, 01-random-015.txt, 01-random-016.txt
ケース名 結果 実行時間 メモリ
00-sample-001.txt AC 1 ms 3396 KiB
00-sample-002.txt AC 1 ms 3524 KiB
00-sample-003.txt AC 1 ms 3448 KiB
00-sample-004.txt AC 1 ms 3328 KiB
01-random-001.txt AC 1 ms 3472 KiB
01-random-002.txt AC 1 ms 3460 KiB
01-random-003.txt AC 1 ms 3528 KiB
01-random-004.txt AC 1 ms 3524 KiB
01-random-005.txt AC 1 ms 3416 KiB
01-random-006.txt AC 1 ms 3392 KiB
01-random-007.txt AC 1 ms 3468 KiB
01-random-008.txt AC 1 ms 3448 KiB
01-random-009.txt AC 1 ms 3448 KiB
01-random-010.txt AC 1 ms 3464 KiB
01-random-011.txt AC 1 ms 3400 KiB
01-random-012.txt AC 1 ms 3392 KiB
01-random-013.txt AC 1 ms 3468 KiB
01-random-014.txt AC 1 ms 3396 KiB
01-random-015.txt AC 1 ms 3412 KiB
01-random-016.txt AC 1 ms 3392 KiB