일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 동적 계획법
- 포맷스트링버그
- 이진 탐색
- heap
- 문자열 처리
- 연결리스트
- tcache
- ROP
- 이진트리
- OOB
- 수학
- fsb
- off by one
- DFS
- 큐
- 분할 정복
- 스택
- 스위핑 알고리즘
- BFS
- House of Orange
- syscall
- 에라토스테네스의 체
- RTL
- 백트래킹
- 이분 탐색
- 완전 탐색
- BOF
- 투 포인터
- 다이나믹 프로그래밍
- 브루트 포스
Archives
- Today
- Total
SDJ( 수돈재 아님 ㅎ )
[C] 13240 - Chessboard 본문
https://www.acmicpc.net/problem/13240
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(void)
{
int n, m;
scanf("%d %d", &n, &m);
for(int i = 0; i < n; ++i)
{
for(int j = 0;j < m; ++j)
{
if((i^j)&1) printf(".");
else printf("*");
}
printf("\n");
}
return 0;
}
|
'알고리즘 > Backjoon' 카테고리의 다른 글
[C] 3085 - 사탕 게임 (0) | 2019.12.04 |
---|---|
[C++] 2748 - 피보나치 수 2 (0) | 2019.12.04 |
[C] 13241 - 최소공배수 (0) | 2019.12.03 |
[C++] 1065 - 한수 (0) | 2019.11.24 |
[C] 17952 - 과제는 끝나지 않아! (0) | 2019.11.23 |
Comments