23805번 : 골뱅이 찍기 - 돌아간 ㄹ
링크
https://www.acmicpc.net/problem/23805
sol1) 구현
#pragma GCC target("avx,avx2,fma")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define int int64_t
using namespace std;
char DB[5][6] = {
"@@@ @",
"@ @ @",
"@ @ @",
"@ @ @",
"@ @@@",
};
int32_t main(){
fastio;
int n; cin >> n;
const int sz = 5*n;
for(int i = 0; i < sz; i++,puts(""))
for(int j = 0; j < sz; j++)putchar(DB[i/n][j/n]);
}
Author And Source
이 문제에 관하여(23805번 : 골뱅이 찍기 - 돌아간 ㄹ), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@inwooleeme/백준-알고리즘-23805번-골뱅이-찍기-돌아간-ㄹ저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)