๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ

    [๋ฐฑ์ค€/c++] 11657 - ํƒ€์ž„๋จธ์‹ 

    ๋ฌธ์ œ 11657๋ฒˆ: ํƒ€์ž„๋จธ์‹  ์ฒซ์งธ ์ค„์— ๋„์‹œ์˜ ๊ฐœ์ˆ˜ N (1 ≤ N ≤ 500), ๋ฒ„์Šค ๋…ธ์„ ์˜ ๊ฐœ์ˆ˜ M (1 ≤ M ≤ 6,000)์ด ์ฃผ์–ด์ง„๋‹ค. ๋‘˜์งธ ์ค„๋ถ€ํ„ฐ M๊ฐœ์˜ ์ค„์—๋Š” ๋ฒ„์Šค ๋…ธ์„ ์˜ ์ •๋ณด A, B, C (1 ≤ A, B ≤ N, -10,000 ≤ C ≤ 10,000)๊ฐ€ ์ฃผ์–ด์ง„๋‹ค. www.acmicpc.net ํ’€์ด ๋ถ„๋ฅ˜ : ๋ฒจ๋งŒ-ํฌ๋“œ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์ตœ๋‹จ๊ฑฐ๋ฆฌ ์ฐพ๊ธฐ + ์Œ์˜ ๊ฐ€์ค‘์น˜ ์ด๋ฏ€๋กœ ๋ฒจ๋งŒํฌ๋“œ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ฝ”๋“œ(O((n^2)*m) *O((n^2)*m์ด ์•„๋‹ˆ๋ผ๋ฉด ์•Œ๋ ค์ฃผ์„ธ์š”. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค(--)(__)*

    [Git/๋งํฌ] Sourcetree crash report & remote: Permission to ์—๋Ÿฌ

    1. Sourcetree crash report ํ•ด๊ฒฐ๋ฐฉ๋ฒ• ์†Œ์ŠคํŠธ๋ฆฌ ์ปค๋ฐ‹ ์˜ค๋ฅ˜ - ํ”„๋กœ๊ทธ๋žจ ์ข…๋ฃŒ ํ˜„์ƒ(Sourcetree crash report) git์œผ๋กœ ์—ฐ๋™๋œ ์†Œ์ŠคํŠธ๋ฆฌ์—์„œ ์ปค๋ฐ‹ ๋ฒ„ํŠผ ๋ˆ„๋ฅธ ์ˆœ๊ฐ„ ํ”„๋กœ๊ทธ๋žจ์ด ์ข…๋ฃŒ ๋˜๋ฉด์„œ Report ์ฐฝ์ด ๋œจ๋Š” ํ˜„์ƒ์ด ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.. ์„ธํŒ… ํ™˜๊ฒฝ์€ GitLab ๊ณผ Sourcetree ์—ฐ๋™์ž…๋‹ˆ๋‹ค. (์†Œ์ŠคํŠธ๋ฆฌ ์„ค์ •์ด ๊ผฌ์ธ๊ฑฐ ๊ฐ™์Œ.. ์ด๊ฒƒ ๋•Œ๋ฉ” 1์‹œ.. teerjwi21.tistory.com 2. remote: Permission to ์—๋Ÿฌ ํ•ด๊ฒฐ๋ฐฉ๋ฒ• [๊นƒํ—ˆ๋ธŒ(Github)] 21. remote: Permission to ์—๋Ÿฌ remote: Permission to gitest01/gitest01.github.io.git denied to xxxx. fatal: unable to a..

    [Inspiration/๋‹คํ] ์šฐ๋ฆฌ๋Š” ์™œ ๋Œ€ํ•™์— ๊ฐ€๋Š”๊ฐ€(1,4~6)

    1๋ถ€ ์–ด๋ฉ”์ด์ง• ๋ฐ์ด *2~3๋ถ€๋Š” ์ €์ž‘๊ถŒ ๋ฌธ์ œ๋กœ ์—…๋กœ๋“œํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. 4๋ถ€ ์–ด๋ฉ”์ด์ง• ๋ฐ์ด โ…ก 5๋ถ€ ๋ง๋ฌธ์„ ํ„ฐ๋ผ 6๋ถ€ ์ƒ๊ฐ์„ ํ„ฐ๋ผ

    [ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค/์ฟผ๋ฆฌ๋ฌธ ์—ฐ์Šต] GROUP BY

    1. ๊ณ ์–‘์ด์™€ ๊ฐœ๋Š” ๋ช‡ ๋งˆ๋ฆฌ ์žˆ์„๊นŒ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์—ฐ์Šต - ๊ณ ์–‘์ด์™€ ๊ฐœ๋Š” ๋ช‡ ๋งˆ๋ฆฌ ์žˆ์„๊นŒ | ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค ANIMAL_INS ํ…Œ์ด๋ธ”์€ ๋™๋ฌผ ๋ณดํ˜ธ์†Œ์— ๋“ค์–ด์˜จ ๋™๋ฌผ์˜ ์ •๋ณด๋ฅผ ๋‹ด์€ ํ…Œ์ด๋ธ”์ž…๋‹ˆ๋‹ค. ANIMAL_INS ํ…Œ์ด๋ธ” ๊ตฌ์กฐ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์œผ๋ฉฐ, ANIMAL_ID, ANIMAL_TYPE, DATETIME, INTAKE_CONDITION, NAME, SEX_UPON_INTAKE๋Š” ๊ฐ๊ฐ ๋™๋ฌผ์˜ ์•„์ด๋””, ์ƒ๋ฌผ ์ข…, ๋ณดํ˜ธ ์‹œ์ž‘์ผ, ๋ณดํ˜ธ ์‹œ์ž‘ ์‹œ ์ƒํƒœ, ์ด๋ฆ„, ์„ฑ๋ณ„ ๋ฐ ์ค‘์„ฑํ™” ์—ฌ๋ถ€๋ฅผ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. NAME TYPE NULLABLE ANIMAL_ID VARCHAR(N) FALS programmers.co.kr [์ •๋‹ต ์ ‘์–ด๋†“์Œ] ๋”๋ณด๊ธฐ SELECT ANIMAL_TYPE, COUNT(ANIMAL_TYPE) AS 'count' FR..

    [ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค/์ฟผ๋ฆฌ๋ฌธ ์—ฐ์Šต] SUM, MAX, MIN

    1. ์ตœ๋Œ“๊ฐ’ ๊ตฌํ•˜๊ธฐ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์—ฐ์Šต - ์ตœ๋Œ“๊ฐ’ ๊ตฌํ•˜๊ธฐ | ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค ANIMAL_INS ํ…Œ์ด๋ธ”์€ ๋™๋ฌผ ๋ณดํ˜ธ์†Œ์— ๋“ค์–ด์˜จ ๋™๋ฌผ์˜ ์ •๋ณด๋ฅผ ๋‹ด์€ ํ…Œ์ด๋ธ”์ž…๋‹ˆ๋‹ค. ANIMAL_INS ํ…Œ์ด๋ธ” ๊ตฌ์กฐ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์œผ๋ฉฐ, ANIMAL_ID, ANIMAL_TYPE, DATETIME, INTAKE_CONDITION, NAME, SEX_UPON_INTAKE๋Š” ๊ฐ๊ฐ ๋™๋ฌผ์˜ ์•„์ด๋””, ์ƒ๋ฌผ ์ข…, ๋ณดํ˜ธ ์‹œ์ž‘์ผ, ๋ณดํ˜ธ ์‹œ์ž‘ ์‹œ ์ƒํƒœ, ์ด๋ฆ„, ์„ฑ๋ณ„ ๋ฐ ์ค‘์„ฑํ™” ์—ฌ๋ถ€๋ฅผ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. NAME TYPE NULLABLE ANIMAL_ID VARCHAR(N) FALS programmers.co.kr [์ •๋‹ต ์ ‘์–ด๋†“์Œ] ๋”๋ณด๊ธฐ SELECT MAX(DATETIME) AS '์‹œ๊ฐ„' FROM ANIMAL_INS LIMIT 1; ๋˜๋Š” SELECT DATETI..

    [ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค/์ฟผ๋ฆฌ๋ฌธ ์—ฐ์Šต] SELECT

    1. ๋ชจ๋“  ๋ ˆ์ฝ”๋“œ ์กฐํšŒํ•˜๊ธฐ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์—ฐ์Šต - ๋ชจ๋“  ๋ ˆ์ฝ”๋“œ ์กฐํšŒํ•˜๊ธฐ | ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค ANIMAL_INS ํ…Œ์ด๋ธ”์€ ๋™๋ฌผ ๋ณดํ˜ธ์†Œ์— ๋“ค์–ด์˜จ ๋™๋ฌผ์˜ ์ •๋ณด๋ฅผ ๋‹ด์€ ํ…Œ์ด๋ธ”์ž…๋‹ˆ๋‹ค. ANIMAL_INS ํ…Œ์ด๋ธ” ๊ตฌ์กฐ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์œผ๋ฉฐ, ANIMAL_ID, ANIMAL_TYPE, DATETIME, INTAKE_CONDITION, NAME, SEX_UPON_INTAKE๋Š” ๊ฐ๊ฐ ๋™๋ฌผ์˜ ์•„์ด๋””, ์ƒ๋ฌผ ์ข…, ๋ณดํ˜ธ ์‹œ์ž‘์ผ, ๋ณดํ˜ธ ์‹œ์ž‘ ์‹œ ์ƒํƒœ, ์ด๋ฆ„, ์„ฑ๋ณ„ ๋ฐ ์ค‘์„ฑํ™” ์—ฌ๋ถ€๋ฅผ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. NAME TYPE NULLABLE ANIMAL_ID VARCHAR(N) FALS programmers.co.kr [์ •๋‹ต ์ ‘์–ด๋†“์Œ] ๋”๋ณด๊ธฐ SELECT * from animal_ins order by animal_id; 2. ์—ญ์ˆœ ์ •๋ ฌํ•˜๊ธฐ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ..

    [๋ฐฑ์ค€/c++] 1012๋ฒˆ - ์œ ๊ธฐ๋† ๋ฐฐ์ถ”

    ๋ฌธ์ œ 1012๋ฒˆ: ์œ ๊ธฐ๋† ๋ฐฐ์ถ” ์ฐจ์„ธ๋Œ€ ์˜๋†์ธ ํ•œ๋‚˜๋Š” ๊ฐ•์›๋„ ๊ณ ๋žญ์ง€์—์„œ ์œ ๊ธฐ๋† ๋ฐฐ์ถ”๋ฅผ ์žฌ๋ฐฐํ•˜๊ธฐ๋กœ ํ•˜์˜€๋‹ค. ๋†์•ฝ์„ ์“ฐ์ง€ ์•Š๊ณ  ๋ฐฐ์ถ”๋ฅผ ์žฌ๋ฐฐํ•˜๋ ค๋ฉด ๋ฐฐ์ถ”๋ฅผ ํ•ด์ถฉ์œผ๋กœ๋ถ€ํ„ฐ ๋ณดํ˜ธํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•˜๊ธฐ ๋•Œ๋ฌธ์—, ํ•œ๋‚˜๋Š” ํ•ด์ถฉ ๋ฐฉ์ง€์— ํšจ๊ณผ์ ์ธ ๋ฐฐ์ถ”ํฐ์ง€๋ ์ด๋ฅผ ๊ตฌ์ž…ํ•˜๊ธฐ๋กœ ๊ฒฐ์‹ฌํ•œ๋‹ค. ์ด ์ง€๋ ์ด๋Š” ๋ฐฐ์ถ”๊ทผ์ฒ˜์— ์„œ์‹ํ•˜๋ฉฐ ํ•ด์ถฉ์„ ์žก์•„ ๋จน์Œ์œผ๋กœ์จ ๋ฐฐ์ถ”๋ฅผ ๋ณดํ˜ธํ•œ๋‹ค. ํŠนํžˆ, ์–ด๋–ค ๋ฐฐ์ถ”์— ๋ฐฐ์ถ”ํฐ์ง€๋ ์ด๊ฐ€ ํ•œ ๋งˆ๋ฆฌ๋ผ๋„ ์‚ด๊ณ  ์žˆ์œผ๋ฉด ์ด ์ง€๋ ์ด๋Š” ์ธ์ ‘ํ•œ ๋‹ค๋ฅธ ๋ฐฐ์ถ”๋กœ ์ด๋™ํ•  ์ˆ˜ ์žˆ์–ด, ๊ทธ ๋ฐฐ์ถ”๋“ค ์—ญ์‹œ ํ•ด์ถฉ์œผ๋กœ๋ถ€ํ„ฐ ๋ณดํ˜ธ๋ฐ›์„ ์ˆ˜ ์žˆ๋‹ค. ( www.acmicpc.net ํ’€์ด ๋ถ„๋ฅ˜ : ๊ทธ๋ž˜ํ”„, DFS 1. ๋ฐญ์„ ๋‚˜ํƒ€๋‚ผ int 2์ฐจ๋ฐฐ์—ด, ๋ฐฉ๋ฌธ์ฒดํฌํ•  bool 2์ฐจ๋ฐฐ์—ด์„ ์„ ์–ธํ•ฉ๋‹ˆ๋‹ค. 2. field[0][0] ~ field[M-1][N-1] ๊นŒ์ง€ for๋ฌธ์œผ๋กœ ๋Œ๋ฉด์„œ,..

    [๋งํฌ] HTTP ์„œ๋ฒ„ ์‘๋‹ต ์ฝ”๋“œ (Response Code) ์ •๋ฆฌ_1

    ์ถœ์ฒ˜ : https://ooz.co.kr/260 HTTP ์„œ๋ฒ„ ์‘๋‹ต ์ฝ”๋“œ (Response Code) ์ •๋ฆฌ ์˜ค๋Š˜์€ HTTP ํ†ต์‹  ์‹œ, ์„œ๋ฒ„์—์„œ ๋ณด๋‚ด์ฃผ๋Š” ์‘๋‹ต ์ฝ”๋“œ์— ๋Œ€ํ•ด ๊ฐ„๋‹จํžˆ ์ •๋ฆฌํ•ด ๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. (๊ฐœ์ธ์ ์œผ๋กœ๋„ ๊ฐ€๋” ์‰ฝ๊ฒŒ ์ฐพ์•„๋ณด๋ ค๊ณ  ์ •๋ฆฌํ•˜๋Š” ๊ฒธ ํ•ด์„œ ๊ฒŒ์‹œ๋ฌผ์„ ์ž‘์„ฑํ•˜์˜€์Šต๋‹ˆ๋‹ค.^^) ํด๋ผ์ด์–ธํŠธ(์›น ๋ธŒ๋ผ์šฐ์ €)์—์„œ ์„œ๋ฒ„.. ooz.co.kr 1. ๊ฐ Response Code ์— ๋”ฐ๋ฅธ ์‘๋‹ต Response Class Code Response Class ์˜๋ฏธ ์„ค๋ช… 1 Informational (์ •๋ณด) ๋ฆฌํ€˜์ŠคํŠธ๋ฅผ ๋ฐ›๊ณ , ์ฒ˜๋ฆฌ ์ค‘์— ์žˆ์Œ. 2 Success (์„ฑ๊ณต) ๋ฆฌํ€˜์ŠคํŠธ๋ฅผ ์ •์ƒ์ ์œผ๋กœ ์ฒ˜๋ฆฌํ•จ. 3 Redirection (๋ฆฌ๋””๋ ‰์…˜) ๋ฆฌํ€˜์ŠคํŠธ ์™„๋ฃŒ๋ฅผ ์œ„ํ•ด ์ถ”๊ฐ€ ๋™์ž‘์ด ํ•„์š”ํ•จ. 4 Client Error (ํด๋ผ์ด์–ธํŠธ ..

    [Mysql/๊ฐ•์ขŒ] SQL Full Tutorial Course using MySQL Database

    *ํ”Œ๋ ˆ์ด ๋ฆฌ์ŠคํŠธ ์ž…๋‹ˆ๋‹ค. ์šฐ์ธก ์ƒ๋‹จ์˜ ไธ‰ ์•„์ด์ฝ˜์„ ํด๋ฆญํ•˜๋ฉด ์ „์ฒด๋ชฉ๋ก์ด ๋‚˜์˜ต๋‹ˆ๋‹ค.