Search found 11 matches

by turingcomplete
Tue Nov 05, 2002 5:30 am
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 47474

To the problem setter: thanks for wasting an hour of time. If you want to make up some function then don't call it factorial, as it's really confusing to those of us who know that factorial is only defined for 0+.

:x
by turingcomplete
Wed Oct 30, 2002 8:31 pm
Forum: Volume 7 (700-799)
Topic: 733 - Follow the Folding Dot
Replies: 7
Views: 2960

[cpp]
// Accepted

#include <iostream>
#include <cmath>
using namespace std;

int refreshPos(double dimX, double dimY, double x, double y, char InitialPos){
double half_dimX=dimX/2;
double half_dimY=dimY/2;
if(x<half_dimX && y<half_dimY && InitialPos=='T')
return 1;
if(x>half_dimX && y<half_dimY ...
by turingcomplete
Wed Oct 30, 2002 8:29 pm
Forum: Volume 7 (700-799)
Topic: 733 - Follow the Folding Dot
Replies: 7
Views: 2960

[cpp]
///////////////////////////////////////////////////////////////////////////////
// solution to http://acm.uva.es/p/v7/733.html
// problem 733
// Wrong Answer
///////////////////////////////////////////////////////////////////////////////

// @BEGIN_OF_SOURCE_CODE
// @JUDGE_ID: xxxxxx 733 C ...
by turingcomplete
Wed Oct 30, 2002 8:28 pm
Forum: Volume 7 (700-799)
Topic: 733 - Follow the Folding Dot
Replies: 7
Views: 2960

As far as I can tell the following two programs are producing the exact same output, however one is accepted while the other one is WA. How can this be? I'm really at a loss as to why this is the case.
:x :x :x
by turingcomplete
Wed Oct 30, 2002 8:01 pm
Forum: Volume 7 (700-799)
Topic: 733 - Follow the Folding Dot
Replies: 7
Views: 2960

You are missing a colon in the first print statement. That fixes it. Check the requirements.
by turingcomplete
Thu Oct 24, 2002 3:56 am
Forum: Volume 7 (700-799)
Topic: 733 - Follow the Folding Dot
Replies: 7
Views: 2960

[cpp]
///////////////////////////////////////////////////////////////////////////////
// solution to http://acm.uva.es/p/v7/733.html
// problem 733
// Wrong Answer
///////////////////////////////////////////////////////////////////////////////

// @BEGIN_OF_SOURCE_CODE
// @JUDGE_ID: xxxxxx 733 C ...
by turingcomplete
Thu Oct 24, 2002 3:49 am
Forum: Volume 7 (700-799)
Topic: 733 - Follow the Folding Dot
Replies: 7
Views: 2960

733 - what am i missing?

I can't tell why with my test cases but the judge gives "WA" for my solution. Can you give me a case where my program gives the wrong answer? What am I missing here?
by turingcomplete
Wed Oct 23, 2002 3:59 am
Forum: Volume 7 (700-799)
Topic: 715 - Substitution Cipher
Replies: 9
Views: 6203

thanks that was it

had to think about the problem more.
by turingcomplete
Fri Oct 18, 2002 3:59 am
Forum: Volume 7 (700-799)
Topic: 715 - Substitution Cipher
Replies: 9
Views: 6203

///////////////////////////////////////////////////////////////////////////////
// solution to http://acm.uva.es/p/v7/715.html
// problem 715
// "Wrong Answer"
///////////////////////////////////////////////////////////////////////////////

// @BEGIN_OF_SOURCE_CODE
// @JUDGE_ID: xxxxxx 715 C ...
by turingcomplete
Fri Oct 18, 2002 3:53 am
Forum: Volume 7 (700-799)
Topic: 715 - Substitution Cipher
Replies: 9
Views: 6203

715 - Substitution Cipher

I can't figure out what was wrong with my submission, but the judge gives "Wrong Answer". Frustrated and suspicious that the judge was broken I found a solution posted for the 1998 European Contest (C - the exact same question). The judge gave a "Wrong Answer" for that as well.

http://contest.mff ...
by turingcomplete
Wed Oct 09, 2002 7:34 pm
Forum: Volume 7 (700-799)
Topic: 701 - The Archeologists' Dilemma
Replies: 43
Views: 35511

701 - how far to go?

My solution works for exponents up to 1024 (the max long double). I am getting "Wrong Answer". Is it because I need to check exponents higher then that? At what point should you stop? The question doesn't say.

Maybe there is some forumla rather then a brute force method that will give you an ...

Go to advanced search