Search found 10 matches

by Itachi-Forsaken
Fri Jul 20, 2007 4:18 am
Forum: Volume 3 (300-399)
Topic: 300 - Maya Calendar
Replies: 69
Views: 16293

Hi I've been getting WA on this problem and it's really annoying
Can someone tell me if my algorithm is wrong or is there any other problems?
Thanks

Code: Select all

removed
edit: nvm, I got it
by Itachi-Forsaken
Thu Jun 28, 2007 1:49 pm
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 51572

I have a question regarding the output
Since the output is tabbed, I assume you have to use printf (for C/C++)
So what is the symbol after % for long long? Like 'd' is for integer

Also is there a way to properly convert a float to an integer? Or do you have to use a string and analyze it..

Thanks ...
by Itachi-Forsaken
Sun Jun 24, 2007 4:58 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 68490

Thank you so much it finally worked
But why does it make a difference whether it's a function or not?
by Itachi-Forsaken
Sat Jun 23, 2007 1:41 am
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 68490

I changed it into a global variable, but I still get the same error
I wonder if there is another mistake?
Here is my new code:

Code: Select all

removed
by Itachi-Forsaken
Fri Jun 22, 2007 5:22 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 68490

Hi I've been getting Runtime Error (Signal 11) for this problem I was wondering if anyone can tell me what's wrong with my code plz

Code: Select all

removed
by Itachi-Forsaken
Mon Jun 04, 2007 4:20 am
Forum: Volume 2 (200-299)
Topic: 254 - Towers of Hanoi
Replies: 39
Views: 20579

Hi
I was just wonder do you have to make your own class to hold the 2^100-1? Or is there already a data type that can do that..
I'm pretty sure my algorithm works but then I don't know how to hold such large numbers..

Thanks for the help
by Itachi-Forsaken
Wed May 23, 2007 11:29 pm
Forum: Volume 103 (10300-10399)
Topic: 10310 - Dog and Gopher
Replies: 47
Views: 23125

Hi I'm trying to do this problem since the algorithm is straight forward but I can't AC for some reason so I was wondering if someone could kindly help me find the bugs in code =)

Here it is..hope someone can tell me what's wrong with it

#include<iostream>
#include<stdio.h>
using namespace std ...
by Itachi-Forsaken
Tue May 22, 2007 12:32 am
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 45764

Hi

I attempted this problem by using bfs, and check that if two nodes on the same level had an edge to each other, it would be impossible

Can someone tell me if there is something wrong with my algorithm?

Thanks

Here is my code
#include<iostream>

#define MAXV 200
#define MAXD 200

using ...
by Itachi-Forsaken
Sat May 12, 2007 7:04 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320772

Thanks, but it always says received instead of accepted for some reason =S
What is it suppose to mean?

edit: nvm, it works now =D thanks a lot
by Itachi-Forsaken
Sat May 12, 2007 5:40 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320772

Hey to all of you programming pros out there can someone plz tell me what is wrong with my program I always get Compiler Error for some reason and I have no idea what is wrong with this because it works fine on my computer GRR

#include<iostream>

#define MAXSIZE 100000
using namespace std;

int ...

Go to advanced search