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 ...
Search found 8 matches
- Tue Nov 15, 2005 3:10 pm
- Forum: Other words
- Topic: Any idea for this problem??
- Replies: 1
- Views: 1793
- Tue Nov 15, 2005 2:55 pm
- Forum: Volume 120 (12000-12099)
- Topic: 12081 - Reduced ID Numbers
- Replies: 18
- Views: 3294
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 ...
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 ...
- Mon Nov 14, 2005 11:38 pm
- Forum: ACM ICPC Archive Board
- Topic: Guardian of Decency - H
- Replies: 3
- Views: 2146
- Mon Nov 14, 2005 10:01 pm
- Forum: Volume 120 (12000-12099)
- Topic: 12081 - Reduced ID Numbers
- Replies: 18
- Views: 3294
- Mon Nov 14, 2005 10:15 am
- Forum: Volume 120 (12000-12099)
- Topic: 12081 - Reduced ID Numbers
- Replies: 18
- Views: 3294
- Mon Nov 14, 2005 1:22 am
- Forum: Volume 120 (12000-12099)
- Topic: 12081 - Reduced ID Numbers
- Replies: 18
- Views: 3294
- Sun Nov 13, 2005 11:10 pm
- Forum: Volume 120 (12000-12099)
- Topic: 12081 - Reduced ID Numbers
- Replies: 18
- Views: 3294
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 ...
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 ...
- Tue Oct 11, 2005 1:51 am
- Forum: Volume 1 (100-199)
- Topic: 123 - Searching Quickly
- Replies: 55
- Views: 12623
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 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 ...