Search found 11 matches

by jaredjohnson
Thu Apr 28, 2005 8:09 pm
Forum: Volume 100 (10000-10099)
Topic: 10088 - Trees on My Island
Replies: 11
Views: 6046

ok

It looks like abs() is breaking your program when you call it on a 64 bit integer. You need to define your own abs() for a 64 bit integer, or have your area2() function return only positive numbers. (You don't need 64 bit integers for the boundary calculation--so don't worry about abs() breaking ...
by jaredjohnson
Wed Apr 20, 2005 12:34 am
Forum: Volume 106 (10600-10699)
Topic: 10636 - Stretching Geometry
Replies: 10
Views: 8107

Well I am having the same problem you were having (to Per)

How did you solve it?

For the input you gave, I get the two different solutions as well.
What was the problem?
by jaredjohnson
Tue Apr 19, 2005 10:49 pm
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 45254

Thank You

You kick ass. Saved me a lot of time.

Thank You,
-Jared
by jaredjohnson
Mon Apr 18, 2005 7:42 am
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 45254

anybody? anybody? n/t

Still can't find the error....
by jaredjohnson
Mon Apr 18, 2005 7:41 am
Forum: Volume 106 (10600-10699)
Topic: 10695 - Find the Point
Replies: 16
Views: 12168

This problem is bugging me

I have a solution that works for all of the input I have seen, but I don't think it works if any of the three angles == 180 degrees, does this work on any of your A/C programs?
by jaredjohnson
Fri Apr 15, 2005 12:40 am
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 45254

10004

Can anyone give me a test this fails on?
It seems like an easy problem, but can't get A/C.

//Jared Johnson
//Bicoloring - 110901/10004

#include<iostream>
using namespace std;

//3 is not colored yet
bool graph[200][200];
int color[200];
int num_edges, num_vertices;

bool dfs(int v,int c) {
color ...
by jaredjohnson
Wed Mar 30, 2005 1:24 am
Forum: Volume 100 (10000-10099)
Topic: 10032 - Tug of War
Replies: 91
Views: 43608

Try this input:

1

11
10
3
3
3
3
3
1
1
1
1
1

Should give:

15 15
by jaredjohnson
Wed Feb 09, 2005 12:26 am
Forum: Volume 8 (800-899)
Topic: 850 - Crypt Kicker II
Replies: 77
Views: 49925

I solved my problem

(I am typing this because it is annoying when people solve their problems and then let us all know their program was accepted, without enlightening us to what the problem was)

A fellow classmate tested my program for me and found a case that it doesn't work on.

I was treating the space as a ...
by jaredjohnson
Fri Feb 04, 2005 1:54 am
Forum: Volume 8 (800-899)
Topic: 850 - Crypt Kicker II
Replies: 77
Views: 49925

I've got every test i've seen working

I just can't get the judge to accept it. I'm going a little crazy....

#include<iostream>
#include<string>
#include<fstream>
using namespace std;

char phrase[44]="the quick brown fox jumps over the lazy dog";
char phraseReversed[44]="god yzal eht revo spmuj xof nworb kciuq eht";

char decode(char ...
by jaredjohnson
Wed Feb 02, 2005 1:47 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 317984

thanks

I fixed it.
by jaredjohnson
Sun Jan 30, 2005 10:24 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 317984

Restricted Function error #100 3n+1

I'm just trying to get going on these online programming contest deals. At the programming-challenges.com website I get a restricted function error for the following code. on the Online-judge.uva.es I just get a wrong answer error.

Can anyone help me out here?


#include <iostream>
using namespace ...

Go to advanced search