250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 코테 준비
- MySQL
- 원서
- SQL
- 알고리즘
- 원서읽자
- nightroutine
- 프로그래머스
- 백준
- the midnight library
- dfs
- 쉬운 알고리즘 문제
- englishbook
- 원서읽기
- BFS
- PyQt
- 완전탐색
- swexpertacademy
- STUDYENGLISH
- sw expert
- 코테 대비
- 알고리즘 문제
- D4
- English
- 삼성
- 직무면접
- 코테
- sw expert academy
- 코딩테스트
- readingbook
Archives
- Today
- Total
시나브로
[D3] 5431. 민석이의 과제 체크하기 본문
728x90
#include <iostream>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
using namespace std;
int main(void) {
int test_case = 0;
scanf("%d", &test_case);
for (int i = 0; i < test_case; i++) {
int all_student = 0;
int submit_student = 0;
int submit[1000] = { 0 };
scanf("%d %d", &all_student, &submit_student);
for (int j = 0; j < submit_student; j++) {
int k = 0;
scanf("%d", &k);
submit[k - 1] = 1;
}
printf("#%d ", i + 1);
for (int j = 0; j < all_student; j++) {
if (submit[j] == 0)
printf("%d ", j + 1);
}
printf("\n");
}
return 0;
}
728x90
'알고리즘 > SW Expert Academy' 카테고리의 다른 글
[D4] 5432. 쇠막대기 자르기 (0) | 2019.10.06 |
---|---|
[D3] 5356. 의석이의 세로로 말해요 (0) | 2019.10.06 |
[D3] 7087. 문제 제목 붙이기 (0) | 2019.10.06 |
[D4] 6719. 성수의 프로그래밍 강좌 시청 (0) | 2019.10.06 |
[D3] 6913. 동철이의 프로그래밍 대회 (0) | 2019.10.06 |