Search found 34 matches

by axelblaze
Wed Oct 29, 2014 6:07 pm
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 40212

Re: 929 - Number Maze

I didn't get it...
There is no link to thread...
by axelblaze
Sun Oct 26, 2014 9:46 pm
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 40212

Re: 929 - Number Maze

Can this problem be solve using DP? I haven't learned djkstra yet but learned a little dp. So I'm trying to solve it with a dp algo I've came up with... Here's my code but its causing infinite recursion... I don't know what's wrong here... Help plz... #include<iostream> #include<climits> #include<cs...
by axelblaze
Sat Oct 11, 2014 1:35 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 39894

Re: 10013 - Super long sums

Thanks I got AC.. It was a silly mistake though.. I wasn't carefull..
Thanks again.. :)
by axelblaze
Sat Oct 11, 2014 11:40 am
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 39894

Re: 10013 - Super long sums

I getting WA... Please help me... #include<iostream> //#include<cstdio> using namespace std; int main() { //freopen("in.txt","r",stdin); int n,m,carry,j; short temp; cin>>n; for(int i=0;i<n;i++) { if(i) cout<<endl; carry=0; cin>>m; short int a[m],b[m],ans[m]; for(j=m-1;j>=0;j--) cin>>a[j]>>b[j]; for...
by axelblaze
Fri Oct 10, 2014 1:30 pm
Forum: Volume 8 (800-899)
Topic: 834 - Continued Fractions
Replies: 20
Views: 12769

Re: 834 - Continued Fractions

Thanks I got AC... :)
by axelblaze
Fri Oct 10, 2014 10:42 am
Forum: Volume 8 (800-899)
Topic: 834 - Continued Fractions
Replies: 20
Views: 12769

Re: 834 - Continued Fractions

Don't know why getting TLE...! Tested all the inputs by timo...
here's my code... plz help... :cry:

Code: Select all

Got AC...
by axelblaze
Wed Oct 08, 2014 5:51 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20520

Re: 107 - The Cat in the Hat

I'm getting time limit... don't know if it's WA or not...tested all the inputs possible... Here's my code... #include<iostream> #include<cmath> using namespace std; int main() { unsigned long long h1,nums,ans1,ans2; double level,temp; int i; bool flag; while(cin>>h1>>nums,h1||nums) { flag=false; for...
by axelblaze
Mon Sep 22, 2014 4:27 pm
Forum: Volume 123 (12300-12399)
Topic: 12342 - Tax Calculator
Replies: 33
Views: 15364

Re: 12342 - Tax Calculator

Thanks a lot.. I got ac... :) :)
by axelblaze
Sat Sep 20, 2014 1:36 pm
Forum: Volume 123 (12300-12399)
Topic: 12342 - Tax Calculator
Replies: 33
Views: 15364

Re: 12342 - Tax Calculator

I got WA. :( tested all the inputs in udebug.. I've searched for AC codes in google and there are so many ac codes with double type and ceil function like my code. Then what's wrong with my code..? Here's 2 links of AC code's: (Links are deleted after getting ac) Here's my code... plz help... Got AC...
by axelblaze
Wed Sep 03, 2014 9:06 pm
Forum: Volume 118 (11800-11899)
Topic: 11824 - A Minimum Land Price
Replies: 2
Views: 457

Re: 11824 - A Minimum Land Price

I got Ac.. Thanks... :D
by axelblaze
Thu Aug 28, 2014 12:02 am
Forum: Volume 118 (11800-11899)
Topic: 11824 - A Minimum Land Price
Replies: 2
Views: 457

11824 - A Minimum Land Price

it's a simple code but still I'm getting wrong ans. pls help..! :cry:
here's my code...

Code: Select all

Got AC
by axelblaze
Mon Aug 18, 2014 9:15 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57411

Re: 10035 - Primary Arithmetic

Thanks lighted... How silly of me...! :P
by axelblaze
Mon Aug 18, 2014 1:53 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57411

Re: 10035 - Primary Arithmetic

I've tested some critical I/Os but still getting WA.
please help...

Code: Select all

Removed after AC
by axelblaze
Sun Aug 17, 2014 9:45 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 79248

Re: 10038 - Jolly Jumpers

I'm getting WA. I don't get what's wrong with my code.. Its giving correct outputs for all critical inputs... #include<iostream> #include<cmath> using namespace std; int main() { int n,a,b,sum; while(cin>>n) { sum=((n*(n+1))/2)-n; cin>>a; b=a; for(int i=0;i<n-1;i++) { cin>>a; sum-=abs(a-b); b=a; } i...
by axelblaze
Sun Aug 17, 2014 8:18 pm
Forum: Volume 118 (11800-11899)
Topic: 11830 - Contract Revision
Replies: 20
Views: 4774

Re: Contract revision_11830

Thanks brianfry. I got ac with that... I didn't know that judge has this kind of inputs...

Go to advanced search