๐ญ(๏ฝกโขฬแด-)โง

baekjoon 1259

int main(void) { int n;}

2023๋ 3์ 17์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 2501

int main(void) { int n, k; }

2023๋ 3์ 12์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 1009

Overflow๋ฅผ ์๋ฐฉํ๊ธฐ ์ํด ์ฐ์ฐ์ ํ  ๋๋ง๋ค 10์ผ๋ก ๋๋ ๋๋จธ์ง(์ผ์ ์๋ฆฌ)๋ฅผ ๋ณ์์ ์ ์ฅํด์ผ ๊ฐ์ด ์ปค์ง๋ ๊ฒ์ ๋ง์ ์ ์๋ค. int main(void) { int t; int a, b;}

2023๋ 3์ 10์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

How to get counted candles since start?

}//+------------------------------------------------------------------+

2023๋ 3์ 10์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 11050

binomial coefficient formulainput --- n, k || ( 1 &lt;= n &lt;= 10, 0 &lt;= k &lt;= n )n! / (k! (n - k)!)Factorialhttps&#x3A;//en.wikipedia.org/wiki

2023๋ 3์ 7์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 1934

eulidean algorithmhttps&#x3A;//en.wikipedia.org/wiki/Euclidean_algorithm// Euclidean-algorithmint gcd(int a, int b) { int r;}int main(void) { int t; i

2023๋ 3์ 6์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

How to get a highest candle within the last 10 candles in mql5?

ArraySetAsSeries The function sets the AS_SERIES flag to a selected object of a dynamic array, and elements will be indexed like in timeseries. > ## CopyHigh The function gets into high_array the h...

2023๋ 3์ 3์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 9012

์ด๊ฑด ๋ญ....์ฌ๋ ๊ดํธ์ผ ๋ cnt++, ๋ซ๋ ๊ดํธ์ผ ๋ cnt-- ๋ฅผ ํด์ค๋ค.ํ์ง๋ง ๋ณ์ cnt๊ฐ ์์๋ก ๋์ด๊ฐ๋ ์๊ฐ ๊ทธ ๋ฌธ์์ด์ ์ฌ๋ ๊ดํธ ์์ด ๋ซ๋ ๊ดํธ๊ฐ ์๊ธด ๊ฒ.๊ทธ ๋ NO๋ฅผ ์ถ๋ ฅํด์ฃผ๋ฉด ๋๋ค.int main(void) { int T; int length =

2023๋ 2์ 4์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 1010

์งํฉ๋ก ์ผ๋ก ๋ถ๋ฅ๋์ด ์์ง๋ง ์ฌ์ค์ Dynamic programming ๋ฌธ์ ์ํ๋ฅผ ๊ทธ๋ ค์ ๊ท์น์ ์ฐพ์ผ๋ฉด ์ฝ๊ฒ ๋ต์ ์์ฑํ  ์ ์๋ค.int main(void) { int T; int n, m; long long int result32 = { 0, };}

2023๋ 2์ 4์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 10828

> ## Code

2022๋ 11์ 27์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

[Linux] Command - diff, cmp

๋ ๊ฐ์ ํ์ผ์ ํ ๋จ์๋ก ๋น๊ตํ์ฌ ์ฐจ์ด์ ์ ์ถ๋ ฅํด์ฃผ๋ ๋ช๋ น์ด์ ๋ถ๋ถ์ ์๋ณธ, ๋ท ๋ถ๋ถ์ ์๋ก์ด ํ์ผ์ ๋๊ณ  ๋น๊ตํจ์ฆ ๋ ๋ฒ์งธ ํ์ผ์ด ๊ธฐ์ค์ด ๋๋๋ฐ, ์ฒซ ๋ฒ์งธ ํ์ผ์ ์ด๋ป๊ฒ ์์ ํด์ผ ๋ ๋ฒ์งธ ํ์ผ๊ณผ ๊ฐ์์ง๋์ง๋ฅผ ๋ํ๋\-i : ๋์๋ฌธ์๋ฅผ ๊ตฌ๋ถํ์ง ์์ (--ignore

2022๋ 10์ 15์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

[Linux] Command - grep, wc, sort, cut, split, tr

ํน์  ํจํด ์ฐพ์์ ์ถ๋ ฅ\-b : ์ผ์นํ๋ ํจํด์ด ์๋ ์ค์ ์์์ ์ ์ถ๋ ฅ\-c : ์ผ์นํ๋ ํจํด์ด ์๋ ์ค์ ๊ฐ์ ์ถ๋ ฅ\-h : ์ฌ๋ฌ ๊ฐ์ ํ์ผ ๊ฒ์ ์ ์ถ๋ ฅํ๋ ํ์ผ ์ด๋ฆ์ด ๋ถ๋ ๊ฒ์ ๋ฐฉ์งํจ\-i : ๊ฒ์ํ  ๋ ๋์๋ฌธ์ ๊ตฌ๋ถ X\-n : ์ผ์นํ๋ ํจํด ์๋ ์ค์ ๋ฒํธ

2022๋ 10์ 14์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

[Linux] Command - cat, head, tail, more, less

ํ์ค ์๋ ฅ์ผ๋ก ๋ฐ๋ ๊ฐ์ ํ์ค ์ถ๋ ฅ์ผ๋ก ์ด์ด์ฃผ๋ ๋ช๋ น..์ด๋ผ๋๋ฐ ๊ทธ๋ฅ ํ์ผ ํ์คํธ๋ฅผ ํฐ๋ฏธ๋๋ก ๋ณด์ฌ์ค~ ๋ผ๊ณ  ์๊ฐํ๋ฉด ๋๋ค.์ ์ผ ๋ง๋งํ /etc/passwd ์ ์๋ ๊ฐ์ ๋ฝ์๋ณด์\-b : ํ ๋ฒํธ๋ฅผ ๋ถ์ฌ์ฃผ๋๋ฐ ๊ณต๋ฐฑ ์ ์ธ\-n : ํ ๋ฒํธ๋ฅผ ๋ถ์ฌ์ฃผ๋๋ฐ ๊ณต๋ฐฑ ํฌํจ\-E :

2022๋ 10์ 14์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

[Data Structure] Stack in C

ํ ๋ง๋๋ก ์ ๋ฆฌํ๋ฉด ์ ์ํ์ถ(first in last out)ํํ์ ์๋ฃ๊ตฌ์กฐ์ด๋ค.์คํ์ด๋ ๋ฐ์ดํฐ๊ฐ ์์ฌ์ง ๋๋ฏธ๋ฅผ ๋งํ๋๋ฐ, C์ธ์ด๋ ์ฐ๊ธฐ ํธ๋ฆฌํ ํจ์๊ฐ ์์ผ๋ฏ๋ก ํ๋๋ถํฐ ์ด๊น์ง ๊ตฌํ์ ํด์ผํ๋ค. ํ์ํ ๊ฒ๋ค๋ก๋1\. ๋ธ๋ ๊ตฌ์กฐ์ฒด2\. ์ฐ๊ฒฐ๋ฆฌ์คํธ3\. ์คํ ๊ป๋ฐ๊ธฐ์ฐ์  ๋ธ

2022๋ 10์ 9์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 1085

๋ต์ ๋ค ๊ฐ๊ฐ ๋์ฌ ์ ์๋ค. x, (w - x), y, (h - y)์ต์๊ฐ ๊ตฌํ๋ฉด ๋ต์ด ๋์จ๋ค.int main(void) { int x, y, w, h;}

2022๋ 9์ 14์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 18870

https&#x3A;//www.acmicpc.net/problem/18870์ฐ์  ์ขํ์์ถ์ด๋ ๋ง์ ์ ๋๋ก ์ดํดํด์ผ ํ๋ค. ์ฐธ๊ณ  : https&#x3A;//medium.com/algorithms-digest/coordinate-compression-2fff95326fb๋

2022๋ 7์ 19์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 10814

https&#x3A;//www.acmicpc.net/problem/10814๊ฐ์ํ ์์๋๋ก ์ซ์๋ฅผ ์๋ ฅํด์ฃผ๊ณ  ๋น๊ตํ๋ฉฐ qsort๋ฅผ ์จ์ฃผ๋ฉด ๋จ.qsort์งฑ์งฑ๋งจtypedef struct \_Person { char name101; int idx; int age;}Perso

2022๋ 7์ 19์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 1181

https&#x3A;//www.acmicpc.net/problem/1181,,typedef struct \_Arr { char str51; int len;}Arr;int compare(const void a, const void b);int main(void) { in

2022๋ 7์ 19์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 11650

https&#x3A;//www.acmicpc.net/problem/116502์ฐจ์ ๋ฐฐ์ด์ qsort๋ฅผ ๋ชป ์ฐ๋ ์ค ์๊ณ  ํผ์ ๋ฒ๋ธ์ ๋ ฌ, ์ ํ์ ๋ ฌ ๋ฑ ์ด๊ฒ์ ๊ฒ ๋ค ํด๋ดค๋ค.์๋ง์ ์คํจ์ ํ์ ๋ค ใใ2์ฐจ์ ๋ฐฐ์ด ์ ๋ ฌ ์๊ฐ์ด๊ณผ๋ฅผ ๊ตฌ๊ธ๋ง ํด ๋ณด๋ค๊ฐ ๊ตฌ์กฐ์ฒด๋ฅผ ์จ์ ์ ๋ ฌ์ ํ๋ผ๋ค?

2022๋ 7์ 16์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท

baekjoon 1427

https&#x3A;//www.acmicpc.net/problem/1427์๊ฐ์ด ๋ฌด๋ ค 0ms ๋ฏธ๋ง์ผ๋ก ๋์จ ๊น๋ํ ๋ฌธ์ . Counting Sort ์๊ณ ๋ฆฌ์ฆ์ ์ฌ์ฉํ๋ค. ํ ๋ฒ ๋ฐฐ์๋์ผ๋ ์ ์ฉํ๊ฒ ์ ์ฐ์ด๋ ์ ๋ ฌ ์๊ณ ๋ฆฌ์ฆ์ธ ๊ฒ ๊ฐ๋ค^^\*int main(void) { i

2022๋ 7์ 15์ผ
ยท
0๊ฐ์ ๋๊ธ
ยท