[6190] : ์ ๊ณค์ด์ ๋จ์กฐ ์ฆ๊ฐํ๋ ์ ์ ๋ ฅ : N๊ฐ์ ์ ์ → ๊ฐ๋ฅํ ๊ณฑ์ ์กฐํฉ์ ์์๋ณด๋๊น ๊ณ์ ๋ ์ธ๋ฑ์ฑ์ด ํ์ํ๋ฏ๋ก ๋ฒกํฐ๋ณด๋ค๋ ๋ฐฐ์ด์ด ๋ ์ ํฉ ์ถ๋ ฅ : ๋จ์กฐ์ฆ๊ฐ ์ ์ค ๊ฐ์ฅ ํฐ ๊ณฑ์ ์กฐํฉ (์์ผ๋ฉด -1) ์ ๋ต ๋จ์กฐ ์ฆ๊ฐํ๋ ์ ํ๋ณ ๋ฒ : 10์ผ๋ก ๋๋์ด๋ณด์์ ๋ ์ง์ ๋๋จธ์ง๊ฐ ํ์ฌ ๋๋จธ์ง๋ณด๋ค ์ปค์ผ ํจ 10๋ณด๋ค ์์ ์๋ ๋จ์กฐ ์ฆ๊ฐ๋ก ํ๋จํ๋ฏ๋ก do-while ์ฌ์ฉ #include using namespace std; bool isItIncreasingNum(int); int main(void){ int testCase; cin >> testCase; for(int tc = 1; tc > N; int *numArr = new int[..
[6730] : ์ฅ์ ๋ฌผ ๊ฒฝ์ฃผ ๋์ด๋ ์ ๋ ฅ : ๋ธ๋ก์ ๋์ด๋ค → ๊ณ ์ ๋ ๊ฐ์ด๊ณ , ์ฝ์ ์ญ์ ๊ฐ ์ผ์ด๋์ง ์์ ์์ ์ด๋ฏ๋ก ๋ฐฐ์ด(: blocks)์ ์ฌ์ฉ ์ถ๋ ฅ : 1) ์ฌ๋ผ๊ฐ ๋ ๊ฐ์ฅ ์ฌํ ๋์ด ๋ณํ 2) ๋ด๋ ค๊ฐ ๋ ๊ฐ์ฅ ์ฌํ ๋์ด ๋ณํ ์ ๋ต blocks[i - 1]๊ณผ blocks[i]๋ฅผ ๋น๊ตํด์ up์ธ์ง down์ธ์ง ํ๋ณ ๋ฐฉ๊ธ ๋น๊ตํ up / down์ด maxUp / maxDown ๋ณด๋ค ํฐ์ง ํ๋ณํด์ ์ ๋ฐ์ดํธ #include using namespace std; int main(void){ int testCase; cin >> testCase; for(int t = 0; t > blockCount; // blo..
[1970] : ์ฌ์ด ๊ฑฐ์ค๋ฆ๋ #include using namespace std; void getChange(int); int main(void){ int testCase; cin >> testCase; for(int test = 0; test > changeM; getChange(changeM); } return 0; } void getChange(int money){ int mType[8]{0,}; int static trial = 1; while(money > 9){ if(money >= 50000){ mType[0] += 1; money -= 50000; } else if(money >= 10000){ mType[1] += 1..
[1859] : ๋ฐฑ๋ง ์ฅ์ ํ๋ก์ ํธ #include using namespace std; int main(void) { int testCase; int day; cin >> testCase; long * ans = new long[testCase]; for (int i = 0; i > day; long * price = new long[day]; long total = 0; for (int j = 0; j > price[j]; long max = price[day - 1]; for (int j = day - 2; j > -1; j--) if (price[j] < max) total += (max - price[j]); else ma..
[1986] : ์ง๊ทธ์ฌ๊ทธ ์ซ์ #include #include #include using namespace std; vector answer; void printAnswer(int); int main(void){ int testCase; cin >> testCase; for(int test = 0; test > num; for(int n = 1; n < num + 1; n++){ if(n % 2 == 0) sum -= n; else sum += n; } answer.push_back(sum); } printAnswer(testCase); return 0; } void printAnswer(int testCase){ for(in..
[2046] : ์คํฌํ ์ฐ๊ธฐ #include using namespace std; int main(void){ int N; cin >> N; for(int i = 0; i input; int i = 0, c; while((c = input[i])){ putchar(toupper(c)); i++; } } [2050] : ์ํ๋ฒณ์ ์ซ์๋ก ๋ณํ #include #include using namespace std; int main(void){ string input; cin >> input; int size = input.length(); for(int i = 0; i < size; i++) cout N; string dates[N], ans[N]; for(int i = 0; i ..
[2063] : ์ค๊ฐ ๊ฐ ์ฐพ๊ธฐ #include using namespace std; int main(void){ int N, mid; cin >> N; mid = N / 2; int arr[N]; for(int i = 0; i > arr[i]; for (int i = 0; i < N - 1; i++){ int min = i; for(int j = i + 1; j < N; j++) if(arr[j] < arr[min]) min = j; int tmp = arr[min]; arr[min] = arr[i]; arr[i] = tmp; } cout testCase; for (int i = 0; i < testCase; i++) { int big = -1; for (int j = 0; j..
- Total
- Today
- Yesterday
- ์ด์์ฒด์
- ํ๋ก๊ทธ๋๋จธ์ค
- RxSwift
- ์ปดํจํฐ๊ณตํ
- ๋ถ์คํธ์บ ํ
- ๋ถ์บ
- ๋ฐ์ดํฐ๋ถ์
- ios
- firebase
- ๊ฐ๋ฐ์์ธํด
- ์ปด๊ณผ์กธ์
- ์กธ์ ์ํ
- ์ฝํ
- ์ํํธ์จ์ด์์นด๋ฐ๋ฏธ
- ์ผ์ฑ์ํํธ์จ์ด์์นด๋ฐ๋ฏธ
- ์ปด๊ณต์กธ์
- ์ธํด
- ์ํํธ์จ์ด์ญ๋์ํ
- ์ปค๋ฅํธ์ฌ๋จ
- SWIFT
- ๋ณด์
- OS
- swacademy
- ์ผ์ฑ
- nosql
- TableView
- ์ฝ๋ฉํ ์คํธ
- C++
- ๋ถ์คํธ์บ ํ2020
- ์๊ณ ๋ฆฌ์ฆ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |