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

https://www.acmicpc.net/problem/25314 25314번: 코딩은 체육과목 입니다 오늘은 혜아의 면접 날이다. 면접 준비를 열심히 해서 앞선 질문들을 잘 대답한 혜아는 이제 마지막으로 칠판에 직접 코딩하는 문제를 받았다. 혜아가 받은 문제는 두 수를 더하는 문제였다. C++ www.acmicpc.net 나: #define _CRT_SECURE_NO_WARNINGS #include int main() { int n,i; char a[6] = "long "; scanf("%d", &n); for (i = 0; i < n / 4; i++) { printf("%s",a); } printf("%s", "int"); return 0; } 완성된 코드는 위와 같다. 우선 VS의 scanf() ..

https://www.acmicpc.net/problem/25304 25304번: 영수증 준원이는 저번 주에 살면서 처음으로 코스트코를 가 봤다. 정말 멋졌다. 그런데, 몇 개 담지도 않았는데 수상하게 높은 금액이 나오는 것이다! 준원이는 영수증을 보면서 정확하게 계산된 것 www.acmicpc.net 나: #define _CRT_SECURE_NO_WARNINGS #include int main() { int sum, n, i, totall =0; int a[1000000], b[10]; scanf("%d", &sum); scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d %d", &a[i], &b[i]); totall += a[i] * b[i]; } if (t..

https://www.acmicpc.net/problem/2490 2490번: 윷놀이 우리나라 고유의 윷놀이는 네 개의 윷짝을 던져서 배(0)와 등(1)이 나오는 숫자를 세어 도, 개, 걸, 윷, 모를 결정한다. 네 개 윷짝을 던져서 나온 각 윷짝의 배 혹은 등 정보가 주어질 때 도(배 한 www.acmicpc.net 나: for i in range(3): bars = list(map(int,input().split())) if bars.count(1) == 4: print("E") elif bars.count(0) == 4: print("D") elif bars.count(0) == 3: print("C") elif bars.count(0) == 2: print("B") elif bars.count(0..

https://www.acmicpc.net/problem/15881 15881번: Pen Pineapple Apple Pen 여러 개의 사과, 파인애플, 그리고 펜이 일렬로 세워져 있다. 이 물건들의 순서를 바꾸지 않고 옆에 있는 물건끼리 연결했을 때, 펜-파인애플-애플-펜을 몇 개나 만들 수 있을지 세어보자. 단, 펜, www.acmicpc.net 나: order = 'pPAp' count =0 i = 0 n = int(input()) words = input() while i != n: if words[i:i+4] == order: count +=1 i = i +4 else: i +=1 print(count) 완성된 코드는 위와 같다. (1) order = 'pPAp' count =0 i = 0 n ..