24 hour archive: Problem
1049 - Sum 1049 - Suma 1049 - Sum
Statistics | Sub: 53041 | AC: 8431 | AC%: 15,90 | Score: 0,03 |
Created by | 2000/2001 ACM Northeastern European Regional Programming Contest (test tour) |
Added by | ejaltuna (2011-10-13) |
Limits |
Total Time: 4000 MS
|
Test Time:
2000 MS
|Memory: 62 MB | Output: 64 MB | Size:
30 KB
|
Enabled languages | |
Available in |
![]() ![]() |
Description
Your task is to find the sum of all integer numbers lying between 1 and N inclusive.
La tarea es encontrar la suma de todos los números enteros comprendidos entre 1 y N (incluyéndolos).
Your task is to find the sum of all integer numbers lying between 1 and N inclusive.
Input specification
The input consists of a single integer N that is not greater than 10^4 by it's absolute value.
La entrada consiste en una sola línea con un entero N que no es mayor que 10^4 por su valor absoluto.
The input consists of a single integer N that is not greater than 10^4 by it's absolute value.
Output specification
Write to the output a single integer number that is the sum of all integer numbers lying between 1 and N inclusive.
Escribir en la salida un número entero que es la suma de todos los números enteros comprendidos entre 1 y N (incluyéndolos).
The input consists of a single integer N that is not greater than 10^4 by it's absolute value.
Sample input
3
Sample output
6
Hint(s)
http://coj.uci.cu/24h/
http://coj.uci.cu/24h/