Search found 13 matches

by Jordi Aranda
Tue Mar 23, 2010 3:09 pm
Forum: Volume 103 (10300-10399)
Topic: 10377 - Maze Traversal
Replies: 26
Views: 9580

Re: 10377 - Maze Traversal

I think I'm not understanding this problem in a right way. Take into account the input, my final position doesn't match with the output:

Code: Select all

Removed after accepted
by Jordi Aranda
Thu Aug 06, 2009 11:27 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 38491

Re: 10013 - Super Long Sums

Thank you very much for the explanation and you're right with the loop, my function was a real mess :roll:
by Jordi Aranda
Thu Aug 06, 2009 12:27 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 38491

Re: 10013 - Super Long Sums

Hi guys, I don't know what's wrong with my code. I've tried all inputs in this thread and I pass all them. Maybe I haven't understood well the problem (my English is not good enough :lol: )

Code: Select all

Removed after accepted
Thx in advance
by Jordi Aranda
Mon Aug 03, 2009 11:21 pm
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 17442

Re: 412 - Pi

Thanks again mf :)
by Jordi Aranda
Mon Aug 03, 2009 1:50 pm
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 17442

Re: 412 - WA (Can't find the big from posts before <- -a>)

I don't pass the proposed inputs in this thread but I don't know what I'm doing wrong. Here's my code:

Code: Select all

Removed after accepted
It seems that for large inputs, something is wrong with my code and gives a wrong expected pi.
by Jordi Aranda
Mon Aug 03, 2009 12:47 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 30497

Re: 401- Palindromes WA. I'm going crazy

Be careful with the extra empty line after each output line
by Jordi Aranda
Sat Aug 01, 2009 3:34 pm
Forum: Volume 100 (10000-10099)
Topic: 10008 - What's Cryptanalysis?
Replies: 55
Views: 16970

Re: 10008 - What's Cryptanalysis?

I have a concrete question regarding C++ language: For example, in this problem, we type n before all, and then n lines are followed. Why if I use getline(cin,s) function, I can only type 2 lines rather than 3? for(int j = 0; j < n; ++j){ string s; getline(cin,s); ... I had to put a cin.ignore() bef...
by Jordi Aranda
Sat Aug 01, 2009 3:00 pm
Forum: General
Topic: Viewing submissions
Replies: 4
Views: 2726

Re: Viewing submissions

I was just joking tryit1, Marcel seems to be a uni mate of mine
by Jordi Aranda
Fri Jul 31, 2009 4:16 pm
Forum: General
Topic: Viewing submissions
Replies: 4
Views: 2726

Re: Viewing submissions

Marcel Hernandez wrote:You can't. If you want to see your own code just keep your source files.
Caram, un fiber? :)
by Jordi Aranda
Fri Jul 31, 2009 8:51 am
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 24808

Re: 492 - Pig Latin

Thanks to amr saqr for his inputs cases, they really helped me to get A :wink:
by Jordi Aranda
Thu Jul 30, 2009 5:48 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 32925

Re: 102, WA

Some simple cases helped me to fix my errors:
input

Code: Select all

 0 1 0 0 0 1 1 0 0 
output

Code: Select all

 GCB 0 
input

Code: Select all

 1 0 0 0 1 0 0 0 1 
output

Code: Select all

 BGC 0 
input

Code: Select all

 0 0 1 1 0 0 0 1 0 
output

Code: Select all

 CBG 0 
Anyways, not too many problems to get A
by Jordi Aranda
Sun Jul 26, 2009 12:14 am
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 34602

Re: 272 -WA-Plz help to debug it!!!

Looks fine to me. If that gets WA, then maybe the input is not a regular text file (i.e. it might have some funny characters, and miss \n at the end of file), and so you're supposed to read it character-by-character instead of line-by-line. Use getchar() function. It's curious, I've just sent the s...
by Jordi Aranda
Fri Jul 24, 2009 1:30 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 34602

Re: 272 -WA-Plz help to debug it!!!

What's wrong with my solution? I've tried many cases. Thx in advance

Code: Select all

Removed after accepted

Go to advanced search