AR2SUM - Nhap Mang Va Tinh Tong
Allow the user to enter the size of the array n × m, then enter the value of each element. Calculate and print the sum of the values.
Input
n m
pt00 pt01 ....
pt10 pt11 ....
Output
print the sum of the array elements.
Example
Input: 2 3
1 2 3
4 5 6 Output: 21
Added by: | khanhvh |
Date: | 2020-11-17 |
Time limit: | 1s-5s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |