Search found 6 matches

by euleramon
Mon Sep 22, 2008 2:21 am
Forum: Volume 5 (500-599)
Topic: 579 - Clock Hands
Replies: 44
Views: 22768

Re: 579 - ClockHands

I just removed the arrays like "[NUM]", and modified my I/O to one output following one input. Then, I got AC. Although I ever kept arrays and modified my I/O to one output following one input similarly, I still got RE. I thought there is sth wrong with my array. Anyway thank everyone for skimming ...
by euleramon
Sun Sep 21, 2008 3:44 pm
Forum: Volume 5 (500-599)
Topic: 579 - Clock Hands
Replies: 44
Views: 22768

579 - ClockHands

Could anyone give me some tips about my code ? I just tested my program with others' test data without problems. But I got the RE(Runtime Error) from Uva system. Please tell me what's wrong with my program.


#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#define NUM 9999
int main ...
by euleramon
Thu Mar 02, 2006 8:41 am
Forum: Volume 4 (400-499)
Topic: 476 - Points in Figures: Rectangles
Replies: 87
Views: 18920

Why do you think there are at most 400 points? In general, if problem doesn't state bounds, assume the worst. but in this case 400000 did it. Remove the code after you get AC.

And, please use code tags (when you reply/edit you will see some buttons, one of them says "code" - press it, paste code ...
by euleramon
Wed Mar 01, 2006 12:18 pm
Forum: Volume 4 (400-499)
Topic: 476 - Points in Figures: Rectangles
Replies: 87
Views: 18920

I just followed your suggestion and got AC. You really give me a big hand. When I believed that the more outputs are correct which I tried, the more I am discouraged and couldn't find out where my wrong is. Fabulous!! You just got rid of my murkiness and inspired me to do in ACM again. I will ...
by euleramon
Wed Mar 01, 2006 7:47 am
Forum: Volume 4 (400-499)
Topic: 476 - Points in Figures: Rectangles
Replies: 87
Views: 18920

I amended my code into following. So it can skip any white space between numbers. But I still got Runtime Error. I wander if there are test samples to examine what's wrong with my program. Thank you.
---
#include <stdlib.h>
#include <stdio.h>
class Rectangle
{
public:
int id;
float x1,y1,x2,y2 ...
by euleramon
Tue Feb 28, 2006 5:45 pm
Forum: Volume 4 (400-499)
Topic: 476 - Points in Figures: Rectangles
Replies: 87
Views: 18920

476 Runtime Error

I just tested my program and got correct answers on my PC. But I got a RE when submitting ? May anybody give me a hand ?
---
#include <stdlib.h>
#include <stdio.h>
class Rectangle
{
public:
int id;
float x1,y1,x2,y2;
/*Rectangle* m_next;
Rectangle* m_last;*/

Rectangle(int i)
{
id = i ...

Go to advanced search