Notice
Recent Posts
Recent Comments
Link
반응형
변명은 만개 결과는 한개
[백준 8393] 합 본문
728x90
반응형
https://www.acmicpc.net/problem/8393
< 내 코드 >
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int n, total = 0;
cin >> n;
for (int i = 1; i < n+1; i++) {
total += i;
}
printf("%d", total);
return 0;
}
<코멘트>
시간이읍서..
728x90
반응형
'공부 > Problem Solving' 카테고리의 다른 글
[백준 11721] 열 개씩 끊어 출력하기 (0) | 2019.05.18 |
---|---|
[백준 11720] 숫자의 합 (0) | 2019.05.16 |
[백준 1924] 2007년 (0) | 2019.05.14 |
[백준 2441] 별 찍기 - 4 (0) | 2019.05.14 |
[백준 2440] 별 찍기 - 3 (0) | 2019.05.14 |