Tính tổng 03

View as PDF

Points: 100 Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Cho một tháp số gồm \(n (1 \le n \le 10^9)\) tầng, tầng thứ \(i\) gồm \(i\) số tự nhiên từ \(1\) tới \(i\). Hãy tính tổng giá trị các số trong tháp, đem chia lấy dư cho \(2004010501\)

1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
...

Comments

There are no comments at the moment.