The code. The problem is codeforces.com/contest/1/problem/B 1B - Spreadsheet https://ideone.com/m35mQq
Runtime Error while giving large inputs (n>1000)
The code. The problem is codeforces.com/contest/1/problem/B 1B - Spreadsheet https://ideone.com/m35mQq