Search found 98 matches

by jpfarias
Sat Oct 12, 2002 4:24 pm
Forum: Volume 103 (10300-10399)
Topic: 10371 - Time Zones
Replies: 12
Views: 5361

10371 - Time Zones

Hi! Can anyone see any case where my code fails? I've got WA! /* Time Zones */ #include <stdio.h> #include <string.h> char abrev[][10] = { "UTC", "GMT", "BST", "IST", "WET", "WEST", "CET", "CEST", "EET", "EEST", "MSK", "MSD", "AST", "ADT", "NST", "NDT", "EST", "EDT", "CST", "CDT", "MST", "MDT", "PST...
by jpfarias
Tue Sep 17, 2002 7:37 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20431

107 help, plz...

My code is getting Time Limit Exceed, and I don't know why... Can u send some input that it would hang forever? Here it is: #include <stdio.h> #include <math.h> int pot(int a, int b) { int p=1; for (int i=0;i<b;++i) { p *= a; } return p; } int main() { int h, w; for (;;) { scanf("%d %d",&h, &w); if ...
by jpfarias
Fri Jun 28, 2002 3:43 pm
Forum: Volume 8 (800-899)
Topic: 815 - Flooded!
Replies: 20
Views: 9985

815 - Flooded!

Hi, anyone knows any trick input? i think my solution is ok but I'm getting WA!!!



Any help will be thankful received!!



Thanks,



Jo
by jpfarias
Wed Jun 26, 2002 4:12 am
Forum: Volume 3 (300-399)
Topic: 361 - Cops and Robbers
Replies: 50
Views: 14440

Still getting WA

Now I've made the lower limit = 3 but still got WA...

When it says match it wanna say x == x && y == y?

Someone had wrote in a previous topic that if a citizen is at the same place of a cop it is not safe.... Is this true?

Thanx
by jpfarias
Wed Jun 26, 2002 12:00 am
Forum: Volume 3 (300-399)
Topic: 361 - Cops and Robbers
Replies: 50
Views: 14440

361 - Cops and Robbers

Hi! I'm still having trouble with this one!!! I've fixed my convex hull algorithm (solved problem 681!!!) but I'm still getting WA in this problem. My approach is as follows: If I have 2 or more cops (robbers), I try out to find the convex hull with it's coordinates so I check to see if each citizen...
by jpfarias
Tue Jun 25, 2002 3:19 pm
Forum: Volume 6 (600-699)
Topic: 681 - Convex Hull Finding
Replies: 60
Views: 20566

GOT AC!!!!!!!!!!!!!!!!!!!!

Hey! Finally I've got AC!!!!

Really n is > 512!! Fucking description!!!!!

This was the only change in my code...


Thanx!!!

Jo
by jpfarias
Mon Jun 24, 2002 11:21 pm
Forum: Volume 6 (600-699)
Topic: 681 - Convex Hull Finding
Replies: 60
Views: 20566

681 again (the previous one was getting too big)

Hi, again!!! I've implemented Jarvin's march to solve this problem and I'm still getting WA!!! (I had implemented Graham Scan also!) I'm asking to someone who solved this problem (got AC) to send your solution again to the judge to see if the input/output of the judge got messed.... (if you could se...
by jpfarias
Mon Jun 17, 2002 9:42 pm
Forum: Volume 6 (600-699)
Topic: 681 - Convex Hull Finding
Replies: 60
Views: 20566

Yet getting WA

Hi, again... My algorithm solved the ncpc data set and wyvmak's input too, but I'm still getting WA! So, if someone here did solved this problem and got AC with graham scan, I will be glad to see how u did implemented it. If u can send me just the part of the code wich compute the graham scan of the...
by jpfarias
Mon Jun 17, 2002 3:56 am
Forum: Volume 6 (600-699)
Topic: 681 - Convex Hull Finding
Replies: 60
Views: 20566

Can figure out what is wrong....

Hi! I'm just trying to solve this problem for a few days and I can't figure out what's wrong with my solution.... I'm using graham scan and when it finishes I go on on the resulting polygon to find out if there exists any colinear points, if they exist I eliminate the one in the center, i.e. I leave...
by jpfarias
Thu Jun 13, 2002 10:07 pm
Forum: Volume 3 (300-399)
Topic: 361 - Cops and Robbers
Replies: 50
Views: 14440

Is your output ok?

Hi! Had you read the fix? It says that if you are between two cops (or robbers) you're safe (or robbed). And also if you're over the cop (or the robber). Did u solved this problem? If u had solved could u analyse my code or send me yours? [cpp] #include <iostream.h> #include <stdlib.h> #include <str...
by jpfarias
Wed Jun 12, 2002 1:01 am
Forum: Volume 3 (300-399)
Topic: 361 - Cops and Robbers
Replies: 50
Views: 14440

Shit!

Can someone give any hints about this problem?
I'm sure my algorithm is fine but only got WA.....

I'm using graham scan and so...

There is any trick test case?

If u can give me some input/output I will be thankful!

Thanx in advance!

Jo
by jpfarias
Thu May 23, 2002 3:13 pm
Forum: Volume 3 (300-399)
Topic: 330 - Inventory Maintenance
Replies: 26
Views: 7414

Can help me anymore?

Hi!

Can u send me input / output to this problem?

Thanx in advance!

Jo
by jpfarias
Tue May 21, 2002 1:46 pm
Forum: Volume 3 (300-399)
Topic: 330 - Inventory Maintenance
Replies: 26
Views: 7414

Help needed...

Can anyone tell me if my output for this input is ok? Input: new test 0.5 1.5 buy test 20 sell test 10 delete test report * Output: INVENTORY REPORT Item Name Buy At Sell At On Hand Value --------- ------ ------- ------- ----- ------------------------ Total value of inventory 0.00 Profit since last ...
by jpfarias
Tue May 21, 2002 1:41 pm
Forum: Volume 3 (300-399)
Topic: 374 - Big Mod
Replies: 79
Views: 11769

What's the idea?

Hi, Pete!

Can u tell me what's the idea behind your code?
I can't figure out how to solve this problem... Did u used any MOD property?

Thanx in advance!!!

Jo

Go to advanced search