Search found 25 matches

by txandi
Mon Jun 11, 2007 9:20 pm
Forum: Volume 112 (11200-11299)
Topic: 11226 - Reaching the fix-point.
Replies: 23
Views: 14557

Instead of factoring, just try to think the inverse problem... If you know sopf, can you calculate sopf[j] where j is a multiple of i?
by txandi
Sun Jun 10, 2007 9:40 pm
Forum: Volume 112 (11200-11299)
Topic: 11224 - Let's swim!
Replies: 17
Views: 10785

Hi! Some critical I/O:

Input:
5

9
3
2 00:10:99
1 00:11:00
4 00:10:99
5 00:10:99
6 00:10:99
7 00:10:99
8 00:10:99
9 00:10:99

10
3
2 00:10:00
1 00:10:00
4 00:10:00
5 00:10:00
6 00:10:00
7 00:10:00
8 00:10:00
9 00:11:00
10 00:11:00

10
1
2 00:10:00
3 00:10:00
4 00:10:00
5 00:10:00
6 00:10:00
7 00 ...
by txandi
Mon Nov 07, 2005 10:37 pm
Forum: Volume 109 (10900-10999)
Topic: 10956 - Prime Suspect
Replies: 24
Views: 14892

Output from my AC program:
There are 0 odd non-prime numbers between 3 and 3.
There are no failures in base 3.

There are 0 odd non-prime numbers between 89 and 89.
There are no failures in base 3.

There are 0 odd non-prime numbers between 89 and 89.
There are no failures in base 2.

There are ...
by txandi
Tue Nov 01, 2005 2:19 pm
Forum: Volume 109 (10900-10999)
Topic: 10958 - How Many Solutions?
Replies: 17
Views: 7878

My AC program outputs:

Code: Select all

Case 1: 399
Case 2: 337
Case 3: 337
Case 4: 9
Case 5: 9
Case 6: 9
Case 7: 9
Case 8: 9
Good luck!
by txandi
Mon Oct 31, 2005 8:18 pm
Forum: Volume 109 (10900-10999)
Topic: 10957 - So Doku Checker
Replies: 31
Views: 20665

I've also been trying the same icpc problem, and I only get TLE (lots of TLE's :cry: ). If sb find a fast algorithm please email me at txandi@gmail.com.

What I'm doing now is:
1) Fill all "sure" blanks (the ones that can only be filled with a number)
2) Sort the blanks I have to fill. The first one ...
by txandi
Sun Oct 23, 2005 9:18 pm
Forum: Volume 109 (10900-10999)
Topic: 10944 - Nuts for nuts..
Replies: 35
Views: 18592

by txandi
Sat Aug 27, 2005 10:52 pm
Forum: Volume 108 (10800-10899)
Topic: 10897 - Travelling Distance
Replies: 17
Views: 7518

You can simplify your formula:

Code: Select all

dist = acos( sin(rad1) * sin(rad3) +
       cos(rad1) * cos(rad3) * cos(rad2) * cos(rad4) +
       cos(rad1) * cos(rad3) * sin(rad2) * sin(rad4) ) * r;
by txandi
Tue Jun 28, 2005 3:12 pm
Forum: Volume 108 (10800-10899)
Topic: 10873 - Splat, Inc.
Replies: 7
Views: 3109

I forgot to drop the first one. AC now. Thanks!!!
by txandi
Tue Jun 28, 2005 2:21 pm
Forum: Volume 108 (10800-10899)
Topic: 10873 - Splat, Inc.
Replies: 7
Views: 3109

10873 - Splat, Inc.

I can't understand the sample I/O. Perhaps I've misunderstood the problem.
In the first case (5 5 1 50 50 4 0 2), for example I think the output should be 9 6 6 4 and not 8 7 6 4 because:
X = paintball

00000 00000 00000 00000 00000 00000 00000 00000 0000X
00000 00000 00000 00000 00000 0000X 0000X ...
by txandi
Wed Mar 23, 2005 4:49 pm
Forum: Volume 108 (10800-10899)
Topic: 10832 - Yoyodyne
Replies: 6
Views: 3655

The next buoy to visit is determined by the closest buoy in the mission that has not yet been visited. In case of a tie, the buoy information that comes first in the input is given preference.
It means that when you're in a place A, the next place B to visit must be the not already visited one ...
by txandi
Mon Feb 28, 2005 10:26 pm
Forum: Volume 102 (10200-10299)
Topic: 10274 - Fans and Gems
Replies: 8
Views: 4161

I got AC now. The input above this is ok.
My (silly) mistake:

There is one line after each map, ignore them.
I assumed this line was empty, but I was wrong, it was full of garbage... I shoud have thought about this before wasting a lot of time debugging a correct program... In my opinion these ...
by txandi
Sun Feb 20, 2005 6:22 pm
Forum: Volume 102 (10200-10299)
Topic: 10274 - Fans and Gems
Replies: 8
Views: 4161

10274 - Fans and Gems (Need I/O verification)

Can anybody check this I/O??? I keep getting WA and I don't know why.

20
5 14
##############
#@ 1 3 1@#
#@#2# # #
#213 @13 @3#
##############

9 9
#########
# 3 #
# 3 @ #
#21 1@ #
#3 3#
# 2 # @#
# # #
## 3 2 #
#########

11 13
#############
# 2 2@ # #
#2 3@ 1 @@ 2#
# 2 @2 #
#3 2 @ # 3 #
## 2# 2 ...
by txandi
Wed Nov 17, 2004 10:21 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 37164

104 - WA

Need Help!!!
I've summited it lots of times, but still WA :cry:
My algorithm is simple, I save in a table (table [j][k]) the best way to reach "j", starting from "i" with "k" iterations.

What's wrong?? Is it precission??

My code

[cpp]#include <iostream>
#include <vector>

#define EPS 0.0000001 ...
by txandi
Sun Nov 14, 2004 1:12 am
Forum: Volume 106 (10600-10699)
Topic: 10686 - SQF Problems
Replies: 21
Views: 15787

AC

Go to advanced search