codeforces-scrape

Codeforces scraped problems and editorials
git clone git://git.laack.co/codeforces-scrape.git
Log | Files | Refs | README

130C.md (682B)


      1 Source: https://codeforces.com/problemset/problem/130/C
      2 
      3 C. Decimal sum
      4 
      5 time limit per test
      6 
      7 2 seconds
      8 
      9 memory limit per test
     10 
     11 64 megabytes
     12 
     13 input
     14 
     15 stdin
     16 
     17 output
     18 
     19 stdout
     20 
     21 You are given an array of integer numbers. Calculate the sum of its elements.
     22 
     23 Input
     24 
     25 The first line of the input contains an integer *n* (1 ≤ *n* ≤ 100) — the size of the array. Next *n* lines contain the elements of the array, one per line. Each element is an integer between 1 and 100, inclusive.
     26 
     27 Output
     28 
     29 Output the sum of the elements of the array.
     30 
     31 Examples
     32 
     33 Input
     34 
     35 ```
     36 5  
     37 1  
     38 2  
     39 3  
     40 4  
     41 5
     42 ```
     43 
     44 Output
     45 
     46 ```
     47 15
     48 ```
     49 
     50 Input
     51 
     52 ```
     53 7  
     54 100  
     55 5  
     56 45  
     57 86  
     58 14  
     59 20  
     60 30
     61 ```
     62 
     63 Output
     64 
     65 ```
     66 300
     67 ```