Search found 8 matches

by AnGeLoSo
Tue Nov 15, 2005 3:10 pm
Forum: Other words
Topic: Any idea for this problem??
Replies: 1
Views: 1394

Any idea for this problem??

http://www.fdi.ucm.es/cupcam/Prob3.pdf Anybody has an idea of how to solve this problem?? I think it isn't very difficult, but I'm just not able to see this kind of problems :-? I've thought about brute force (calculating the area of all squares and taking the biggest one), but I don't know how to ...
by AnGeLoSo
Tue Nov 15, 2005 2:55 pm
Forum: Volume 120 (12000-12099)
Topic: 12081 - Reduced ID Numbers
Replies: 18
Views: 1068

Done!

Hi! The idea I was using was the correct one (instead of a boolean array to mark which numbers were generated, using an array of integers and a counter). The problem I had was the array size as Per said before, and the variable "caso", which was defined twice. This is the correct code: #include <ios...
by AnGeLoSo
Mon Nov 14, 2005 11:38 pm
Forum: ACM ICPC Archive Board
Topic: Guardian of Decency - H
Replies: 3
Views: 1641

Do u get T.L.E. using some backtricking or branch and bound algorithm??
by AnGeLoSo
Mon Nov 14, 2005 10:01 pm
Forum: Volume 120 (12000-12099)
Topic: 12081 - Reduced ID Numbers
Replies: 18
Views: 1068

Hi! I've just got accepted with this code: #include <iostream> #include <set> using namespace std; int main() { int num_casos; int num_estudiantes; int SIN[320]; int SIN_reducido; set<int> resultado; int estudiante; int modulo; int caso; int tamanio; cin >> num_casos; for (int caso=0; caso<num_casos...
by AnGeLoSo
Mon Nov 14, 2005 10:15 am
Forum: Volume 120 (12000-12099)
Topic: 12081 - Reduced ID Numbers
Replies: 18
Views: 1068

Hmmm, I don't undestand your idea! :-? Could you put an example of how does your algorithm work? You can use the second test input for example.

Thanks!
by AnGeLoSo
Mon Nov 14, 2005 1:22 am
Forum: Volume 120 (12000-12099)
Topic: 12081 - Reduced ID Numbers
Replies: 18
Views: 1068

Yeah, I think you are right. I kept the repeated "reduced SINs" in a boolean array and had to put it all to false each time I tried a new modulo. I'm trying this on http://acmicpc-live-archive.uva.es/nuevoportal/ but it takes more than 10 seconds!! #include <iostream> using namespace std; int main()...
by AnGeLoSo
Sun Nov 13, 2005 11:10 pm
Forum: Volume 120 (12000-12099)
Topic: 12081 - Reduced ID Numbers
Replies: 18
Views: 1068

NWERC Problem F

Problem F: Reduced ID Numbers T. Chur teaches various groups of students at university U. Every U-student has a unique Student Identification Number (SIN). A SIN s is an integer in the range 0 ≤ s ≤ MaxSIN with MaxSIN = 106 − 1. T. Chur finds this range of SINs too large for identification within h...
by AnGeLoSo
Tue Oct 11, 2005 1:51 am
Forum: Volume 1 (100-199)
Topic: 123 - Searching Quickly
Replies: 55
Views: 4766

Problem #123 - WA using C++!!

Hi! I don't know why I get WA :( Help, plz! This is my code: [quote]#include <string> #include <iostream> #include <algorithm> #include <cctype> #include <stdlib.h> using namespace std; bool pertenece(string cadena, string* vector, int limite) { bool pertenece = false; for (int i=0; i<limite; i++) {...

Go to advanced search