반응형
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 | 31 |
Tags
- 심화1
- greedy
- 입문
- 설명
- C 언어
- C
- C Programming
- 그리디
- 구현
- 알고리즘
- 친절한 설명
- 코드엔진
- 파이썬
- Baekjoon
- Python
- 초보
- 문제풀이
- Beakjoon
- 10926
- c언어
- CSS
- implement
- Implemention
- 꾸준히
- VS
- 백준
- 문자열
- 10807
- HTML
- 정리
Archives
- Today
- Total
목록3052 (1)
안경잡이 구루루

https://www.acmicpc.net/problem/3052 나: #include int main() { int cnt = 0; int num[10]; for (int i = 0; i < 10; i++) { scanf_s("%d", &num[i]); num[i] = num[i] % 42; } for (int j = 0; j < 10; j++) { for (int k = j + 1; k < 10; k++) { if (num[j] == -1)break; if (num[j] == num[k]) num[k] = -1; } } for (int i = 0; i < 10; i++) { if (num[i] != -1) cnt++; } printf("%d", cnt); } 완성된 코드는 위와 같다. #include..
C언어(C programming)/문제풀이(백준,BaekJoon)
2020. 6. 30. 19:51