
Search found 10 matches
- 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 

- 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 ...
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 ...
- 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 ...
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 ...
- Tue Jun 10, 2003 12:23 am
- Forum: Volume 1 (100-199)
- Topic: 124 - Following Orders
- Replies: 49
- Views: 12918
- Sat Jun 07, 2003 2:57 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55277
- 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.... 

- Fri Jun 06, 2003 5:00 am
- Forum: Volume 1 (100-199)
- Topic: 106 - Fermat vs. Pythagoras
- Replies: 138
- Views: 30526
- 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 ...
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 ...
- Fri Jun 06, 2003 4:04 am
- Forum: Volume 1 (100-199)
- Topic: 106 - Fermat vs. Pythagoras
- Replies: 138
- Views: 30526
- 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 ...
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 ...