티스토리 뷰
1. 문제
https://www.acmicpc.net/problem/3003
2. 풀이
#include <stdio.h>
int main(void) {
// int king, queen, rook, bishop, knight, pawn;
int correct[6] = { 1, 1, 2, 2, 2, 8 };
int current[6] = { 0, };
int result[6] = { 0, };
for(int i = 0; i < sizeof(current) / sizeof(int); i++){
scanf("%d", ¤t[i]);
result[i] = correct[i] - current[i];
}
for(int i = 0; i < sizeof(result) / sizeof(int); i++){
printf("%d ", result[i]);
}
}
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 배수와약수
- 과제안내신분
- 25304
- 직사각형
- 삼각형과세변
- 다음소수
- 백준
- 베라의 패션
- 브라우저뜻
- 점근적표기
- C99
- 배수
- SWLIfeCycle
- 붙임성 좋은 총총이
- C언어
- 피보나치수5
- 약수들의합
- 데이터추상화
- 27323
- SW생명주기
- 칸토어 집합
- 약수
- 개발계발
- 브라우저
- 파이썬
- python
- 26069
- 25314
- 4779
- 알고리즘
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함