Search found 10 matches

by amir2099
Sat Jun 21, 2003 3:34 pm
Forum: Volume 100 (10000-10099)
Topic: 10009 - All Roads Lead Where?
Replies: 60
Views: 25130

thanks a lot

Thanks a lot. I had yellow and blue confused. I got AC :)
by amir2099
Fri Jun 20, 2003 4:14 am
Forum: Volume 100 (10000-10099)
Topic: 10009 - All Roads Lead Where?
Replies: 60
Views: 25130

no one seems to reply

well, no one seems to want to reply to my message so i'll get to a more practical issue at hand:

how am i supposed to handle the case where c1 == c2 ? what am i to output.

I'm also curious as to why this program may have different answers, i.e. why is the checkmark blue? i did a little sketching ...
by amir2099
Wed Jun 18, 2003 3:51 pm
Forum: Volume 100 (10000-10099)
Topic: 10009 - All Roads Lead Where?
Replies: 60
Views: 25130

10009

Ok.
The problem clearly states this:


A city will never be paired with itself in a query.


So I wrote a little program to see if the judge abides by this rule:

[cpp]
#include <iostream>
#include <string>

using namespace std;

bool connect[50][50];

int main()
{
int M,N;
cin >> M >> N ...
by amir2099
Tue Jun 10, 2003 12:23 am
Forum: Volume 1 (100-199)
Topic: 124 - Following Orders
Replies: 49
Views: 12918

hmmm... couldn't your teacher possibly stumble upon this board?

anyhow, if it's an assignment, I doubt anyone will help you.
If you have to do any three problems, browse through them and try to find the easiest ones. I mean, you have a month to do this. :roll:

Hell, you might even find some ...
by amir2099
Sat Jun 07, 2003 2:57 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 55277


(1+N)^x=a
N^x=b

where a and b are the input and N has the meaning as described in the problem statement.


Thanks for the reply,
I've already derived those equations and my program uses the property.
I've also handled every special case i could think of (i.e. N=1, etc.)

I was wondering if ...
by amir2099
Fri Jun 06, 2003 9:46 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 55277

please

someone please help, this program is driving me absolutely nuts. I've spent so many hours on it.... :-?
by amir2099
Fri Jun 06, 2003 5:00 am
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 30526

thank you for your reply, i found my problem already :)

btw, can you take a look at my post for 107 now ? lol
by amir2099
Fri Jun 06, 2003 4:42 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 55277

[107] Why WA? I took care of everything... i think

Hi
I'm a beginner and it would be greatly appreciated if someone could tell me what the mistake in the following program is:

[cpp]

#include <iostream>
#include <cmath>

using namespace std;

typedef unsigned long long u64;
typedef long double ld;

ld round(ld number)
{
return (fmod(number, 1 ...
by amir2099
Fri Jun 06, 2003 4:04 am
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 30526

found my problem.
by amir2099
Thu Jun 05, 2003 10:26 pm
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 30526

Trouble with 106

Hi, i believe that my algorithm works.
however, I was wondering if someone could tell me how many pythagorean triples there are between 1 and 25 (inclusive).

ie. my program says the following:

3 4 5
8 6 10
8 15 17
5 12 13
12 16 20
7 24 25

which seems reasonable. but, there are only 15 distinct ...

Go to advanced search