Points:
100
Time limit:
1.0s
Memory limit:
256M
Input:
stdin
Output:
stdout
- Cho số nguyên dương \(n\). Tính tổng \(S=\sum\limits_{i=1}^{n} i=1+2+...+n\)
Input
- Một dòng duy nhất chứa số nguyên dương \(n(1\le n\le 100)\)
Output
- In ra \(S\) cần tìm
Example
Test 1
Input
4
Output
10
Note
Giải thích: \(S=1+2+3+4=10\)
Comments