Programming/BaekJoon 썸네일형 리스트형 [C++] 백준 4344번 : 평균은 넘겠지 https://www.acmicpc.net/problem/4344 #include using namespace std;int main() {int n;cin >> n; int **T_c = new int*[n];int n1;for (int i = 0; i > n1;T_c[i] = new int[n1 + 1];T_c[i][0] = n1;for (int j = 1; j > T_c[i][j];}}int sum, cnt;for (int i = 0; i < n; i++) {sum = 0;cnt = 0;for (int j = 1; j 더보기 [C++] 백준 1110번 : 더하기 사이클 https://www.acmicpc.net/problem/1110 #include using namespace std;int main() {int n;cin >> n;int next = n, cnt = 0;do{cnt++;next = next % 10 * 10 + (next / 10 + next % 10) % 10;} while (n != next);cout 더보기 [C++] 백준 1085번 : 직사각형에서 탈출 https://www.acmicpc.net/problem/1085 #include using namespace std;int main(){ int x,y,w,h; cin >> x >> y >> w >> h; int dis[4]; dis[0] = x; dis[1] = h-y; dis[2] = w-x; dis[3] = y; int result = dis[0]; for(int i=0; i dis[i+1]) result = dis[i+1]; } cout 더보기 [C++] 백준 10817번 : 세 수 https://www.acmicpc.net/problem/10817 #include using namespace std; int main(){ int a,b,c; int tmp; cin >> a >> b >> c; if(a > b) { if(a > c){ if(b>c) tmp = b; else tmp = c; } else { if(a>b) tmp = a; else tmp = b; } } else { if(b > c){ if(c>a) tmp = c; else tmp = a; } else{ if(b>a) tmp = b; else tmp = a; } } cout 더보기 [C++] 백준 2839번 : 설탕 배달 https://www.acmicpc.net/problem/2839 #include using namespace std;int main() {int in_kg, cnt = 0;int kg5, kg3; cin >> in_kg;kg5 = (in_kg - in_kg % 5) / 5;while (kg5 >= 0) {if (((in_kg - kg5 * 5) % 3) == 0) {kg3 = (in_kg - kg5 * 5) / 3;cnt = kg5 + kg3;kg5 = 0;}kg5--;} if (cnt == 0)cout 더보기 [C++] 백준 2741번 : N 찍기 https://www.acmicpc.net/problem/2741 #include using namespace std; int main(){ int n,k=1; cin >> n; while(n>=k){ cout 더보기 [C++] 백준 2292번 : 벌집 https://www.acmicpc.net/problem/2292 #include using namespace std;int main() {int n, k = 1;cin >> n;while (3 * k*k - 3 * k + 1 < n) {k++;}cout 더보기 [C++] 백준 1924번 : 2007년 https://www.acmicpc.net/problem/1924 #include using namespace std; int main(){ int x,y; int num; cin >> x >> y; switch(x){ case 1: num = 0; break; case 2: num = 31; break; case 3: num = 31+28; break; case 4: num = 31+28+31; break; case 5: num = 31+28+31+30; break; case 6: num = 31+28+31+30+31; break; case 7: num = 31+28+31+30+31+30; break; case 8: num = 31+28+31+30+31+30+31; break; case 9: num =.. 더보기 이전 1 ··· 7 8 9 10 11 다음