Search found 3 matches

by wasifhossain
Tue Jan 03, 2012 7:47 pm
Forum: Volume 106 (10600-10699)
Topic: 10696 - f91
Replies: 21
Views: 9879

Re: 10696 - f91

I am getting TLE in this problem.But I don't know why.Can anyone please help me? #include<iostream> using namespace std; int f91(int n) { if(n<=100) { return f91(f91(n+11)); } else if(n>=101) return n-10; } int main(void) { int n; while(cin>>n) { if(n==0) return 0; cout<<"f91("<<n<<") = "<<f91(n)<<...
by wasifhossain
Tue Dec 27, 2011 7:45 pm
Forum: Algorithms
Topic: V = 2^i * 3^j * 5^k, how 2 work out the problem efficiently?
Replies: 7
Views: 6135

Re:

sohel, thank u very much, u enlightened me:) I use bisearch to find the first one in a1-an which larger than an/2, supposing it's ai which larger than an/3, supposing it's aj which larger than an/5, supposing it's ak then an+1 is min{2*ai, 3*aj, 5*ak} I give thanks to lotoren and recursively to Soh...
by wasifhossain
Tue Sep 29, 2009 3:55 am
Forum: Volume 101 (10100-10199)
Topic: 10127 - Ones
Replies: 32
Views: 12539

Re: 10127 - Ones

"Bhagsash upopado" means nothing but "Remainder Theorem"

Go to advanced search