알고리즘/백준 (70) 썸네일형 리스트형 2920번 음계 1234567891011121314151617181920212223242526#include #include using namespace std; #define DESCENDING 0#define ASCENDING 1#define MIXED -1 int main() { int temp, n; scanf("%d", &n); int result; for(int i = 0; i 2908번 상수 12345678910111213141516171819202122232425262728293031323334#include using namespace std; int main(){ int a, b; scanf("%d %d", &a, &b); int newA = 0, newB = 0; while (a >= 1) { newA += a % 10; a /= 10; if (a >= 1) newA *= 10; } while (b >= 1) { newB += b % 10; b /= 10; if (b >= 1) newB *= 10; } if (newA > newB) cout 2675번 문자열 반복 12345678910111213141516171819202122232425262728293031#include #include #include #include using namespace std; int main(){ int numcases; cin >> numcases; while (numcases--) { int n; cin >> n; string s; string result = ""; cin >> s; for(int i = 0; i 2448번 별찍기 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950#include #include using namespace std; char arr[3072][6144]; void star(int n, int x, int y) { if(n == 3) { arr[y][x] = '*'; arr[y + 1][x - 1] = '*'; arr[y + 1][x + 1] = '*'; arr[y + 2][x - 2] = '*'; arr[y + 2][x - 1] = '*'; arr[y + 2][x] = '*'; arr[y + 2][x + 1] = '*'; arr[y + 2][x + 2] = '*'; return; } st.. 1157번 단어공부 123456789101112131415161718192021222324252627282930313233343536373839404142434445#include #include using namespace std; int main(){ string s; cin >> s; int alpa[27] = { 0, }; for (int i = 0; i 1152번 단어의 개수 1234567891011121314151617181920212223#include #include #include #include #include using namespace std; int main() { string s; getline(cin, s); stringstream ss(s); string str; int count = 0; while(ss >> str) { count++; } cout 이전 1 ··· 6 7 8 9 다음