
์ ๋ ฅ์์ 1 5 KimSooJin 010-1234-5678 ParkGilDong 010-2468-2468 ChungSangChul 010-1230-4567 LeeYoungHee 010-1357-2468 ChoiMyungHee 010-3458-1267 2468 ์ถ๋ ฅ์์ 1 2 LeeYoungHee 010-1357-2468 3 ParkGilDong 010-2468-2468 ์ฝ๋: #include #include #include struct customer { char id[5]; char* name; char* phone; }; int main() { struct customer* ct; int n, cnt = 0; char tmp1[51], tmp2[51]; int len1 = 0, len2 = 0; ch..

์ ๋ ฅ์์ 1 5 KimSooJin 010-1234-5678 ParkGilDong 010-2468-2468 ChungSangChul 010-1230-4567 LeeYoungHee 010-1357-2468 ChoiMyungHee 010-3458-1267 2468 ์ถ๋ ฅ์์1 2 ParkGilDong 010-2468-2468 4 LeeYoungHee 010-1357-2468 #include #include #include struct customer { char id[5]; char* name; char* phone; }; int main() { struct customer *ct; int n, cnt = 0; char tmp1[51], tmp2[51]; int len1 = 0, len2 = 0; char nu..

์ ๋ ฅ ์์ 1 ์ถ๋ ฅ ์์ 1 marriott 4 12.5 hyatt 5 7.4 ibis 2 5.6 novotel 3 2.7 renaissance 3 4.8 hyatt 5 7.4 bestwestern 2 3.8 0 3 7.5 #include #include #include struct hotel_info { char name[31]; int g; double d; }; int in_hotel_info(struct hotel_info* p); void out_hotel_info(struct hotel_info* p, int N, int G, double D); int main() { struct hotel_info ht[100]; int N = 0; int G; double D; N = in_hotel_in..

์ ๋ ฅ ์์ 1 ์ถ๋ ฅ ์์ 1 red orange yellow green orange red 1 orange 2 yellow 1 green 1 ์ ๋ ฅ ์์ 2 ์ถ๋ ฅ ์์ 2 yellow pink red yellow pink yellow yellow 3 pink 2 red 1 #include #include #include int main() { int i = 0, t = 1; char A[101], str[20][51], str2[20][51]; int cnt[20]; gets(A); int k = 0, s = 0; while (A[i] != '\0') { if (A[i] != ' ' && A[i]!='\0') { str[k][s] = A[i]; s++; } else { str[k][s] = '\0'; k+..

์ ๋ ฅ ์์ 1 ์ถ๋ ฅ ์์ 1 red orange yellow green orange orange โฆ ๋ฌธ์์ด์์ ์ค๋ณต๋ ๋จ์ด๋ orange์ด๋ค. ์ ๋ ฅ ์์ 2 ์ถ๋ ฅ ์์ 2 pink red yellow black yellow purple yellow #include #include #include int main() { int i = 0, cnt = 0, t = 0; char A[101], str[20][101]; gets(A); int k = 0, s = 0; while (A[i] != '\0') { if (A[i] != ' ' && A[i]!='\0') { str[k][s] = A[i]; s++; } else { str[k][s] = '\0'; k++; s = 0; } i++; } str[k][s] =..
[ ๋ฌธ์ 2-2 ] (100์ ) ๊ณต๋ฐฑ์ด ํฌํจ ๋ N๊ฐ์ ๋ฌธ์์ด์ ์ ๋ ฅ๋ฐ์, ๊ฐ ๋ฌธ์์ด์ M1๋ฒ์งธ ๋ฌธ์๋ถํฐ M2๋ฒ์งธ ๋ฌธ์๊น์ง์ ๋ฌธ์๋ค ์ค์ ์์ด๋๋ฌธ์๊ฐ ๋ช ๊ฐ ํฌํจ๋๋์ง ์ธ์ด (M1๋ฒ์งธ ๋ฌธ์์ M2๋ฒ์งธ ๋ฌธ์ ํฌํจ), ์์ด ๋๋ฌธ์๋ฅผ ๊ฐ์ฅ ์ ๊ฒ ํฌํจํ๋ ๋ฌธ์์ด์ ์ถ๋ ฅํ๋ ํ๋ก๊ทธ๋จ์ ์๋์ check_u ํจ ์๋ฅผ ์ฌ์ฉํ์ฌ ์์ฑํ์์ค. ๋จ, ๋ฌธ์์ด์ ์ต๋ ๊ธธ์ด๋ 100์ด๊ณ , ์์ด๋๋ฌธ์๋ฅผ ํ๋๋ ํฌํจํ์ง ์ ์ ๋ฌธ์์ด์ ์ถ๋ ฅ์์ ์ ์ธํ๋ค. (N์ ์ต๋ 20 ์ด๋ค. ๋์ ํ ๋น๋ฌธ์ ๊ฐ ์๋. 2์ฐจ์ ๋ฐฐ์ด์ด ํ์ ์ ๋ ๋ฌธ์ ์ด๋ค) - ์ ์ N๊ณผ M1, M2๋ฅผ ์ ๋ ฅ๋ฐ๊ณ , ๊ณต๋ฐฑ์ด ํฌํจ๋ N๊ฐ์ ๋ฌธ์์ด์ ์ ๋ ฅ ๋ฐ๋๋ค. - M1๊ณผ M2๋ 0๋ถํฐ ํ์๋์ด ๋ฌธ์์ด๋ด์ ๊ฐ ๋ฌธ์์ ์์น๋ฅผ ๋ํ๋ธ๋ค. M1 ๊ฐ์ด ๋ฌธ์์ด์ ๊ธธ์ด ๋ณด๋ค ํฐ ๊ฒฝ์ฐ..
[ ๋ฌธ์ 3-1 ] (50์ ) ๋์ ํ ๋น ๋ฌธ์ ๊ฐ ์๋๊ณ ๋ฌธ์์ด ๋ฌธ์ ์ด๋ค. (1) ์ฒซ ๋ฒ์งธ ์ค์์, N๊ฐ์ ๋จ์ด๋ฅผ ํฌํจํ๋ ๋ฌธ์์ด A๋ฅผ ์ ๋ ฅ๋ฐ๊ณ (2) ๋ ๋ฒ์งธ ์ค์์, M๊ฐ์ ๋จ์ด๋ฅผ ํฌํจํ๋ ๋ฌธ์์ด B๋ฅผ ์ ๋ ฅ๋ฐ์ (3) ๋ ๋ฌธ์์ด ๋ชจ๋์ ํฌํจ๋ ๋จ์ด์ ์๋ฅผ ํ๋ฉด์ ์ถ๋ ฅํ๊ณ , (4) ๋ ๋ฌธ์์ด ๋ชจ๋์ ํฌํจ๋ ๋จ์ด ์ค ๊ฐ์ฅ ๊ธธ์ด๊ฐ ๊ธด ๋จ์ด๋ฅผ ํ๋ฉด์ ์ถ๋ ฅํ์์ค. ๋ง์ฝ, ๋ ๋ฌธ์์ด ๋ชจ๋์ ํฌํจ๋ ๋จ์ด ์ค ๊ฐ์ฅ ๊ธธ์ด๊ฐ ๊ธด ๋จ์ด๊ฐ ๋ ๊ฐ ์ด์ ์กด์ฌํ๋ฉด, ์ฌ์ ์์ ์ ์์ ๋จ์ด๋ฅผ ์ถ๋ ฅํ๋ค. (์์ฝ) ๋ ๋ฌธ์์ด ๋ชจ๋์ ํฌํจ๋ ๋จ์ด ์ค --- ๊ฐ์ฅ ๊ธธ์ด๊ฐ ๊ธด ๋จ์ด --- ์ฌ์ ์์ ์ ์์ ๋จ์ด - ๋ฌธ์์ด A์ B์ ์ต๋ ๊ธธ์ด๋ 100์ด๊ณ , N๊ณผ M์ 20๋ณด๋ค ํฌ์ง ์๋ค. - ๋จ์ด๋ ์ํ๋ฒณ ์๋ฌธ์๋ก๋ง ๊ตฌ์ฑ๋๋ฉฐ, ๋ฌธ์์ซ์..
[ ๋ฌธ์ 1-2 ] (100์ ) N๋ช ํ์์ ์ด๋ฆ๊ณผ 1์ฐจ, 2์ฐจ ์ํ ์ ์๋ฅผ ์ ๋ ฅ ๋ฐ์ ์ธ์ฆ์ํ ์ ์ฒด ํ๊ท ์ ์์ ํ๊ท ์ ์ ์ดํ์ธ ํ์์ ์๋ฅผ ์ถ๋ ฅ ํ ํ, ํ๊ท ์ ์ ์ดํ์ธ ํ์์ ์ด๋ฆ๊ณผ ์ ์๋ฅผ ์ ๋ ฅ๋ ์์๋ก ์ถ๋ ฅํ๋ ํ๋ก๊ทธ๋จ์ ์๋์ ํจ์๋ฅผ ์ฌ์ฉํ์ฌ ์์ฑํ์์ค. ๋จ, N≤100์ด๊ณ , ๊ฐ ํ์ ์ ์ํ ํ๊ท ์ ์๋ 1์ฐจ ์ํ ์ ์์ 40%์ 2์ฐจ ์ํ ์ ์์ 60%์ ํฉ์ผ๋ก ๊ณ์ฐ ํ๋ค. - insertData ํจ์ โฆ ํจ์์ํ : void insertData(struct student_info *s, int N) โฆ N๋ช ํ์์ ์ด๋ฆ๊ณผ ํ์ ๋น ๋ ๋ฒ์ ์ํ ์ ์๋ฅผ ์ ๋ ฅ ๋ฐ๊ณ , ํ์์ ์ํ ํ๊ท ์ ์๋ฅผ ๊ณ์ฐํ์ฌ ๊ตฌ์กฐ์ฒด ๋ฐฐ์ด์ ์ ์ฅํ๋ค. โฆ ํ์์ ์ด๋ฆ์ ๊ณต๋ฐฑ์ ํฌํจํ์ง ์๋ ์ต๋ 10๊ฐ ์์ด ๋ฌธ์์ด๋ค...
๋ฌธ์ : 2์ฐจ ๋ฐฉ์ ์์ ๊ฐ์ n๊ณผ ๊ฐ ๋ฐฉ์ ์์ ์ ์ ๊ณ์ a, b, c๋ฅผ ์ ๋ ฅํ๋ฉด ๋ฐฉ์ ์์ ํด๋ฅผ ํ๋ณํ์ฌ๋ผ. ์กฐ๊ฑด: ๋ค๋ฅด๋ฉด single, ์ค๊ทผ์ด๋ฉด double, ์ค๊ทผ์ด ์์ผ๋ฉด none ์ถ๋ ฅ ์ฝ๋: #include #include struct equation { int a; // 2์ฐจ ํญ์ ์ ์ ๊ณ์ int b; // 1์ฐจ ํญ์ ์ ์ ๊ณ์ int c; // ์์ ํญ์ ์ ์ char det[7]; // ํ๋ณ๊ฒฐ๊ณผ }; // 2์ฐจ ๋ฐฉ์ ์ ax2 + bx + c = 0 void root(struct equation* p); int main() { struct equation eq[100]; struct equation* p = &eq[100]; int n; scanf("%d", &n); for (int i = 0;..
๋ฌธ์ : ๋ ๊ฐ์ ๋ณต์์๋ฅผ ์ ๋ ฅ ๋ฐ๊ณ , ๋ ๋ณต์์๋ฅผ ๋ํ ๊ฒฐ๊ณผ๊ฐ์ ์ถ๋ ฅํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค. ์กฐ๊ฑด: ๊ตฌ์กฐ์ฒด ์ ์, add ํจ์ ์ ์, main ํจ์์์ ์ ๋ ฅ ๋ฐ ์ถ๋ ฅ ์ฝ๋: #include #include #include struct complex { //๋ณต์์ ๊ตฌ์กฐ์ฒด ์ ์ double sil, huh; //๋ณต์์์ ์ค์๋ถ์ ํ์๋ถ }; struct complex add(struct complex a, struct complex b); //ํจ์ ์ํ ์ ์ธ, ๊ตฌ์กฐ์ฒด ํจ์๋ก ์ค์ ํ๊ธฐ ์ฃผ์** int main() { struct complex a, b, c; scanf("%lf %lf", &a.sil, &a.huh); scanf("%lf %lf", &b.sil, &b.huh); c = add(a, b); ..
- Total
- Today
- Yesterday
- Gaussian Splatting
- dreambooth
- AI์ปจํผ๋ฐ์ค
- CLOVAX
- ๋๋ฆผ๋ถ์ค
- SKTECHSUMMIT
- ์ปดํจํฐ๋น์
- SQL
- lgaimers
- MYSQL
- ํ ํฌ์๋ฐ
- AIRUSH2023
- 3d-gs
- 2d-gs
- gan
- ์ฝํ ์ค๋น
- ์ฝ๋ฉ์๋ฌ
- ๋ ผ๋ฌธ์ฝ๊ธฐ
- ํ์ด์ฌ
- Paper review
- ๋ ผ๋ฌธ
- gs๋ ผ๋ฌธ
- ํ์ด์ฌ์ฝํ
- C์ธ์ด
- ์ฝ๋ฉ๊ณต๋ถ
- AIRUSH
- ํ๋ก๊ทธ๋๋จธ์ค
- ๋ ผ๋ฌธ๋ฆฌ๋ทฐ
- ์คํ ์ด๋ธ๋ํจ์
- Aimers
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |