분류 전체보기 (2337) 썸네일형 리스트형 C++(씨쁠쁠)(cplusplus)-백준(baekjoon)(BaekJoon)코딩 11720번:숫자의 합 답 1234567891011121314151617181920#include #include using namespace std;int main() { int sum = 0, num; string k; cin >> num; cin >> k; for (int i = 0; i C++(씨쁠쁠)(cplusplus)-백준(baekjoon)(BaekJoon)코딩 2576번:홀수 답 12345678910111213141516171819202122232425#include using namespace std;int main() { int num, small = 101, sum = 0, cnt = 0; for (int i = 0; i > num; if (num % 2 == 1)//홀수일때 { cnt++; sum += num; if (small > num) { small = num; } } } if (cnt == 0) { cout C++(씨쁠쁠)(cplusplus)-백준(baekjoon)(BaekJoon)코딩 10718번:We love Krill 답 12345#include using namespace std;int main() { cout C++(씨쁠쁠)(cplusplus)-백준(baekjoon)(BaekJoon)코딩 11721번:열 개씩 끊어 출력하기 답 123456789101112131415#include #include using namespace std;int main() { string word; getline(cin, word); for (int i = 0; i C++(씨쁠쁠)(cplusplus)-백준(baekjoon)(BaekJoon)코딩 10818번:최소,최대 답 1234567891011121314151617181920#include using namespace std;int main() { int num,num2, small = 1000001, big = 0; cin >> num; for (int i = 0; i > num2; if (num2 big) { big = num2; } } cout C(씨)-백준(baekjoon)(BaekJoon)코딩 9653번:스타워즈 로고 답 1234567891011121314#include int main() { printf("%s\n", " 8888888888 888 88888"); printf("%s\n", " 88 88 88 88 88 88"); printf("%s\n", " 8888 88 88 88 88888"); printf("%s\n", " 88 88 888888888 88 88"); printf("%s\n", "88888888 88 88 88 88 888888"); printf("\n"); printf("%s\n", "88 88 88 888 88888 888888"); printf("%s\n", "88 88 88 88 88 88 88 88"); printf("%s\n", "88 8888 88 88 88 88888 8888"); .. C++(씨쁠쁠)(cplusplus)-백준(baekjoon)(BaekJoon)코딩 10808번:알파벳 개수 답 12345678910111213141516171819202122232425#include #include using namespace std;int main() { int ary[26]; string k; getline(cin, k); for (int i = 0; i (C) - 백준(BOJ) 10039 : 평균점수 #include int main() { int num, sum = 0; for (int i = 0; i < 5; i++) { scanf("%d", &num); if (num < 40) { sum += 40; } else sum += num; } printf("%d\n", sum / 5); } 이전 1 ··· 279 280 281 282 283 284 285 ··· 293 다음