Search found 28 matches

by wanderley2k
Wed Sep 15, 2004 4:54 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 53203

10267

Hi, I tried to solve the 10267 but I got wrong, I tested with all cases that have in board and OK. The read of input that be special? This is my code :roll: [cpp]#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 300 int m, n; char matriz[MAX][MAX]; int max(int a, int b) { if (a ...
by wanderley2k
Fri Sep 03, 2004 4:41 pm
Forum: Volume 5 (500-599)
Topic: 534 - Frogger
Replies: 41
Views: 17907

Thanks Ryan,

I got AC... min and max!!! :)

I used flody changed to minimax :)


http://www.comp.nus.edu.sg/~stevenha/pr ... raph6.html


Wanderley
by wanderley2k
Wed Sep 01, 2004 6:14 pm
Forum: Volume 5 (500-599)
Topic: 534 - Frogger
Replies: 41
Views: 17907

But the problem don't want the max of minimun?
by wanderley2k
Wed Sep 01, 2004 12:20 pm
Forum: Volume 5 (500-599)
Topic: 534 - Frogger
Replies: 41
Views: 17907

534: Why wrong? Is MST solution?

Hi, I tried to solve the 534 and implemented MST-Kruskal and nothing. Do Problem want to know the minimax jumpy? Ok? Have Someone input for test? My Code: [cpp] #include <stdio.h> #include <stdlib.h> #include <math.h> #define MAX_VERTICES 205 #define MAX_ARESTAS 206*206 #define INFINITO 100000000000...
by wanderley2k
Wed Sep 01, 2004 3:47 am
Forum: Volume 6 (600-699)
Topic: 610 - Street Directions
Replies: 15
Views: 7195

Re: 610 - Street Directions - Why WRONG?

CDiMa wrote:Your code fails on multiple inputs.
When it finds the couple of zero indicating the end of the first case it exits without processing the remaining cases.
Claudio
Ok, I read the problem again and find the error..

Thanks

I learned the lession: READ READ READ THE INPUT! :D


Wanderley
by wanderley2k
Tue Aug 31, 2004 5:50 am
Forum: Volume 6 (600-699)
Topic: 610 - Street Directions
Replies: 15
Views: 7195

610 - Street Directions - Why WRONG?

Hi, I tried to solve 610, but i got WA. I implemented the code for discovery brigded in graph and for my test cases my program be correct. My code: [cpp] /* * encontrar todos as pontes do grafo em TEMPO LINEAR!! :) * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define D(x) #define ...
by wanderley2k
Sun Aug 29, 2004 11:13 pm
Forum: Volume 104 (10400-10499)
Topic: 10487 - Closest Sums
Replies: 89
Views: 30650

[quote="
by wanderley2k
Sun Aug 29, 2004 5:54 pm
Forum: Volume 104 (10400-10499)
Topic: 10487 - Closest Sums
Replies: 89
Views: 30650

Hi,

[quote="
by wanderley2k
Sun Aug 29, 2004 5:20 pm
Forum: Volume 104 (10400-10499)
Topic: 10487 - Closest Sums
Replies: 89
Views: 30650

Wrong too

Hi, I tried to solve this problem but I got wrong. Why?? I don't know. My code is here: [cpp] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #include <algorithm> using namespace std; const int INF = INT_MAX; #define MAX_NUM 1000000 int nums[MAX_NUM];...
by wanderley2k
Thu May 13, 2004 5:40 pm
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 16986

I got AC with one tick!!!

[cpp]stable_sort(set.begin(), set.end());[/cpp]

it is correct!!

Thanks Gustavo and JP

Wanderley 8)

** ALIVE THE SOCIALISM REVOLUTION **
by wanderley2k
Tue May 11, 2004 12:54 am
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 16986

612 - Why wrong??

Where is mistake in my code? I tested with diverses input data and all answer is correct... my code: [cpp]#include <iostream> #include <string> #include <algorithm> #include <vector> using namespace std; typedef struct DNA_s DNA; struct DNA_s { string seq; int inversions; }; bool operator<(const DNA...
by wanderley2k
Tue May 11, 2004 12:52 am
Forum: Volume 6 (600-699)
Topic: 612 - DNA Sorting
Replies: 122
Views: 16986

Where is mistake in my code? :roll: [cpp]#include <iostream> #include <string> #include <algorithm> #include <vector> using namespace std; typedef struct DNA_s DNA; struct DNA_s { string seq; int inversions; }; bool operator<(const DNA& x, const DNA& y) { return x.inversions < y.inversions; } int va...
by wanderley2k
Mon Mar 01, 2004 11:54 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 36307

I try, try try and nothing

I try to submit and only answered is Accepted (P.E). I am test more line in end file and more blank spaces in end line and nothing.

I submit the code in programming-challenges.com and I recived: "Solved"

I don't know what can be?

Go to advanced search