Search found 6 matches

by rcanepa
Sat May 16, 2015 11:58 pm
Forum: Volume 10 (1000-1099)
Topic: 1047 - Zones
Replies: 18
Views: 11563

Re: 1047 - Zones

I have tested all the cases of the post and more on udebug.com (created by myself), however, I can't find bad answer from my code. Can anyone help me with a tricky edge case?... I am leaving my solution here: #include <bits/stdc++.h> using namespace std; #define ALL(v) (v).begin(), (v).end() #define...
by rcanepa
Fri Mar 13, 2015 8:47 pm
Forum: Volume 105 (10500-10599)
Topic: 10507 - Waking up brain
Replies: 24
Views: 21735

Re: 10507 - Waking up brain

How can this input be correct? 8 16 XYZ ZA AX BY BZ CX CY DZ YD XE ZE XY YZ ZX EF CA BD It says 8 slept parts but the connections (letter pairs) shows that there are 9 (9 different letters) parts. What should I do with this kind of inputs? Should I work with the first 8 letters and forget about awak...
by rcanepa
Sun Mar 08, 2015 5:04 pm
Forum: Volume 123 (12300-12399)
Topic: 12356 - Army Buddies
Replies: 21
Views: 9237

Re: 12356 - Army Buddies

Yeah. You are right. Thanks for your feedback!
by rcanepa
Fri Feb 27, 2015 7:59 pm
Forum: Volume 123 (12300-12399)
Topic: 12356 - Army Buddies
Replies: 21
Views: 9237

Re: 12356 - Army Buddies

Hi everyone. I just got an AC for this problem with a time of 0.999 (almost rejected for TL). So I am looking for advices on how could I improve the performance of my code. #include <iostream> #include <string> #include <map> using namespace std; int main(int argc, char const *argv[]) { int s, b, l,...
by rcanepa
Thu Feb 26, 2015 9:46 pm
Forum: Volume 4 (400-499)
Topic: 489 - Hangman Judge
Replies: 52
Views: 21675

Re: 489 - Hangman Judge

Wow... I was counting the positve attempts too. Thanks for pointing it out.
by rcanepa
Thu Feb 26, 2015 5:03 pm
Forum: Volume 4 (400-499)
Topic: 489 - Hangman Judge
Replies: 52
Views: 21675

Re: 489 - Hangman Judge

I saw that for this test:

4
rommel
romlnptuyq

The solution should be:

Round 4
You chickend out.

Why is that?. Shouldn't be "You lose."?. Because the number of attempts > 8.

Go to advanced search