Search found 48 matches

by triplemzim
Thu Aug 15, 2013 12:39 am
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 24494

Re: 514 - RE

Why getting RE ??? Please help...

Code: Select all

ACCEPTED
by triplemzim
Fri Aug 02, 2013 11:37 pm
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 33277

Re: 530 woes

YUP this time it is ACCEPTED!!!!! Thanks... :)
by triplemzim
Fri Aug 02, 2013 11:24 pm
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 33277

Re: 530 woes

i don't know but believe it or not i got RE after submitting that code... :(
by triplemzim
Thu Aug 01, 2013 12:10 am
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 33277

Re: 530 woes

why getting runtime error???? please help...

Code: Select all

removed after AC
by triplemzim
Wed Jul 31, 2013 5:57 pm
Forum: Volume 6 (600-699)
Topic: 621 - Secret Research
Replies: 45
Views: 18796

Re: ACM 621

What if you have something like "12345". Thank You based on the other posts I've read, you should print a newLine for that case, since it doesn't fit into any of the description. There's no need to print a newline if the test case doesn't match the conditions... (My AC code just ignores them...)
by triplemzim
Sat Jul 27, 2013 12:48 pm
Forum: Volume 109 (10900-10999)
Topic: 10994 - Simple Addition
Replies: 41
Views: 15406

Re: #10994- Need help

i have seen the cause of compilation error and this time i got runtime error... here is my updated code: #include<stdio.h> #include<stdlib.h> #include<string.h> long dp[1000001]; long func(long n) { if(n==0) return 0; if(dp[n]!=-1) return dp[n]; if((n/10)*10==n) func(n/10); else return dp[n]=n%10; }...
by triplemzim
Sat Jul 27, 2013 12:30 pm
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 31575

Re: 10533 Digit Primes (TLE) why? please help me, please

brianfry713 wrote:Input:

Code: Select all

1
13 13
Output should be 0
thanks got AC :)
by triplemzim
Fri Jul 26, 2013 1:14 am
Forum: Volume 109 (10900-10999)
Topic: 10994 - Simple Addition
Replies: 41
Views: 15406

Re: #10994- Need help

why getting compile error??? can't understand.. please help... #include<stdio.h> #include<stdlib.h> #include<string.h> long dp[1000001]; long func(long n) { if(n==0) return 0; if(dp[n]!=-1) return dp[n]; if((n/10)*10==n) func(n/10); else return dp[n]=n%10; //return dp[n]; } int main() { int p,q; lon...
by triplemzim
Fri Jul 26, 2013 12:16 am
Forum: Volume 4 (400-499)
Topic: 438 - The Circumference of the Circle
Replies: 29
Views: 9381

Re: 438 - The Circumference of the Circle

brianfry713 wrote:Print a newline after each value.
thanks brianfry... got ac
by triplemzim
Fri Jul 26, 2013 12:05 am
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 31575

Re: 10533 Digit Primes (TLE) why? please help me, please

Why getting wrong answer??? Please help... i tried all test cases i found... :(

Code: Select all

cout<<"Accepted"<<endl;
by triplemzim
Mon May 20, 2013 12:50 am
Forum: Volume 120 (12000-12099)
Topic: 12005 - Find Solutions
Replies: 9
Views: 4687

Re: 12005 - Find Solutions

getting TLE ... please help me.... #include<iostream> #include<cstdio> using namespace std; int main() { long long int c,a,b,last=0; scanf("%lld",&c); do { int count=0; a=4*c-3; if(a%2==0) { b=4; count=2; for(;b<=a/b;b++) { if(a%b==0) count++; } if((b-1)*(b-1)==a) count=count*2-1; else count = 2*cou...
by triplemzim
Sat May 18, 2013 6:08 pm
Forum: Volume 116 (11600-11699)
Topic: 11636 - Hello World!
Replies: 30
Views: 6330

Re: 11636 Hello world WA

got ac thanks....
by triplemzim
Sat May 18, 2013 6:02 pm
Forum: Volume 4 (400-499)
Topic: 438 - The Circumference of the Circle
Replies: 29
Views: 9381

Re: 438 - The Circumference of the Circle

Here is my code... I got 7 times wa why?? Plz help.

Code: Select all

ACCEPTED

thanks brianfry.... :)
by triplemzim
Fri Apr 26, 2013 1:48 am
Forum: Volume 116 (11600-11699)
Topic: 11636 - Hello World!
Replies: 30
Views: 6330

11636 - Hello World!

here is my code... #include<iostream> using namespace std; int main() { int i=0,j=1,k=0,num; while(1) { k++; cin>>num; if(num<0) break; while(j<num) { j=j*2; i++; } cout<<"Case "<<k<<": "<<i<<endl; } } why am i getting WA??
by triplemzim
Fri Apr 26, 2013 1:42 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 181776

Re: problem no 100 Time Limit Exceeded

this same code i just converted in C++ and then got AC what's the problem in ANSI C???? :(

Go to advanced search