Search found 27 matches

by amd-RS
Thu Nov 13, 2003 10:05 pm
Forum: Volume 105 (10500-10599)
Topic: 10566 - Crossed Ladders
Replies: 39
Views: 15489

10566

Ok, you got me :D !!!

Should I treat it as a special case ???

Bye, Aur
by amd-RS
Thu Nov 06, 2003 4:37 pm
Forum: Volume 105 (10500-10599)
Topic: 10566 - Crossed Ladders
Replies: 39
Views: 15489

10566

Maarten, you're right. I removed that lines, and change fabs(ft) by fabs(a - b) > 1e-15 and now I get Wrong Answer ... Here some sample input/output for my program ... Input: 30 40 10 12.619429 8.163332 3 10 10 3 10 10 1 300 400 100 126.19429 81.63332 30 100 100 30 100 100 10 3000 4000 1000 1261.942...
by amd-RS
Wed Nov 05, 2003 10:54 pm
Forum: Volume 105 (10500-10599)
Topic: 10566 - Crossed Ladders
Replies: 39
Views: 15489

10566 - TLE

Hi !!!

fa and fb stores the value of the function, applied to the limits a and b ...

The root is inside this limits.
by amd-RS
Tue Nov 04, 2003 6:26 pm
Forum: Volume 105 (10500-10599)
Topic: 10566 - Crossed Ladders
Replies: 39
Views: 15489

10566 - TLE

Hello, can you help me with my code ? I
by amd-RS
Wed Sep 10, 2003 4:23 am
Forum: Volume 100 (10000-10099)
Topic: 10071 - Back to High School Physics
Replies: 49
Views: 13101

10071

Hello,

Is there a way to optimize this problem, it's very simple, but I get 0.094 sec.

Thanks, Aur
by amd-RS
Thu Jul 17, 2003 9:15 pm
Forum: Other words
Topic: Online Judge
Replies: 4
Views: 1559

Online Judge

Is it off ? The last submission from http://acm.uva.es/cgi-bin/OnlineJudge?Status:Valladolid is yesterday ... I've tried to submit, but I can't.

Thanks, Aur
by amd-RS
Mon Mar 31, 2003 7:46 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 63605

10062

Hi,

First of all, I think you should do ascii check conditon ...

Good luck , Aur
by amd-RS
Tue Mar 25, 2003 3:41 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 63605

Please help me !!!

Hi all, I don't understand why I get WA on my code: [c] #include <stdio.h> void main () { int i, j, c = 0, vetor[256], vetor1[256], temp1; char str[1000], temp; while (gets(str) != NULL) { for (i = 0; i < 256; i++) { vetor = vetor1 = 0; } temp1 = 0; str[1000]='\0'; for (i = 1; str != '\0'; i++) { fo...
by amd-RS
Sat Feb 15, 2003 2:12 am
Forum: Volume 104 (10400-10499)
Topic: 10452 - Marcus
Replies: 21
Views: 12862

Here is my code: [c]#include <stdio.h> #include <string.h> int main() { int cases,m,n,i,j,mcopy,flag_right,flag_left; char cobble[100000][10]; scanf("%d",&cases); while(cases) { scanf("%d %d",&m,&n); for(i=0;i<=m;i++) cobble [0] = '\0'; mcopy = m; while(mcopy) { scanf...
by amd-RS
Wed Feb 12, 2003 8:07 pm
Forum: Volume 104 (10400-10499)
Topic: 10452 - Marcus
Replies: 21
Views: 12862

Are you getting WA ??? I've tried your code and for the input:

Code: Select all

PST#T
BTJAS
TYCVM
YEHOF
XIBKU
N@RJB
it gives me:

Code: Select all

forth forth right right forth forth forth left
instead of:

Code: Select all

forth forth right right forth forth forth
My problem is worst, I'm getting TLE, don't know why !!!
by amd-RS
Tue Feb 11, 2003 11:54 pm
Forum: Volume 104 (10400-10499)
Topic: 10452 - Marcus
Replies: 21
Views: 12862

10452 - Marcus

Is there something special about this problem ? I think it's not difficult, and besides there is only one path, right ?? But I don't know why I get TLE !!!

Thanks for any reply !!!
by amd-RS
Tue Feb 04, 2003 1:37 pm
Forum: Volume 104 (10400-10499)
Topic: 10432 - Polygon Inside A Circle
Replies: 62
Views: 26831

Thanks a lot, I've follow the suggestions and get accepted now :D

But I have a question ! Why ACM judge doesn't define M_PI ? I tried it and get compiler error !

Aur
by amd-RS
Mon Feb 03, 2003 3:14 pm
Forum: Volume 104 (10400-10499)
Topic: 10432 - Polygon Inside A Circle
Replies: 62
Views: 26831

10432 - Polygon Inside A Circle

What's wrong with my code ? [c] #include <stdio.h> #include <math.h> #define Pi 3.1415926535897932384626433832795029L int main() { long double ang; int r, n; while(scanf("%d %d",&r,&n)==2) { ang = 180 - ((double)180*(n-2)/n); printf("%.3lf\n",(sin(Pi/180*ang)*r*r*n)/2); }...
by amd-RS
Thu Jan 30, 2003 2:25 am
Forum: Volume 101 (10100-10199)
Topic: 10197 - Learning Portuguese
Replies: 45
Views: 20748

10197 - Learning Portuguese

Hi all,

Could you give me some test cases, I don know why I get wrong answer :cry:

Thanks, Aur
by amd-RS
Tue Jan 28, 2003 1:13 am
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 36298

I didn't understand this problem ... should I only count the number of operations ??? And for the sample input the output shouldn't be 15 ???

Thanks, Aur

Go to advanced search