끄적끄적 코딩
article thumbnail
[C++] 백준 2441번 별 찍기 - 4
알고리즘 2019. 3. 5. 02:04

2중 for문을 이용해서 문제를 풀었습니다. #include using namespace std; int main(int argc, char *argv[]) { int n; cin >> n; for (int i = 0; i = i) { cout

article thumbnail
[C++] 백준 2440번 별 찍기 - 3
알고리즘 2019. 3. 5. 02:04

2중 for문을 이용해서 문제를 풀었습니다. #include using namespace std; int main(int argc, char *argv[]) { int n; cin >> n; for (int i = 0; i i; j--) { cout

article thumbnail
[C++] 백준 2439번 별 찍기 - 2
알고리즘 2019. 3. 5. 02:02

for문을 이용해서 문제를 풀었습니다. #include using namespace std; int main(int argc, char *argv[]) { int n; cin >> n; for (int i = 2; i 0; j--) { if (j < i) { cout

article thumbnail
[C++] 백준 2438번 별 찍기 - 1
알고리즘 2019. 3. 5. 01:55

for문을 이용해서 문제를 풀었습니다. #include using namespace std; int main(int argc, char *argv[]) { int n; cin >> n; for(int i=1; i

article thumbnail
[C++] 백준 2739번 구구단
알고리즘 2019. 3. 5. 01:44

for문을 이용해서 문제를 풀었습니다. #include using namespace std; int main(int argc, char *argv[]) { int n; cin >> n; for(int i=0; i

article thumbnail
[C++] 백준 2742번 기찍 N
알고리즘 2019. 3. 5. 01:42

for문을 이용해서 풀었습니다. #include using namespace std; int main(int argc, char *argv[]) { int n; cin >> n; for(int i=0; i

article thumbnail
[C++] 백준 2741번 N 찍기
알고리즘 2019. 3. 5. 01:21

for문을 사용하여 풀었습니다. #include using namespace std; int main(int argc, char *argv[]) { int n; cin >> n; for(int i=0; i

article thumbnail
[C++] 백준 2558번 A+B - 2
알고리즘 2019. 3. 5. 01:08

단순한 덧셈 문제입니다. #include using namespace std; int main(int argc, char *argv[]) { int a, b; cin >> a; cin >> b; cout

검색 태그