All about problems in Volume 9. If there is a thread about your problem, please use it. If not, create one with its number in the subject.
Moderator: Board moderators
- New poster
- Posts: 8
- Joined: Fri Oct 05, 2012 1:35 pm
- Location: Chittagong
Code: Select all
using namespace std;
long long int n,i,a;
It show time limit exceded please help me ...
Last edited by brianfry713
on Mon Nov 24, 2014 10:55 pm, edited 1 time in total.
Reason: Added code blocks
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Precompute the results for n=1 through 50.
Check input and AC output for thousands of problems on uDebug