Search found 4 matches

by augustotorres
Wed Oct 11, 2006 6:49 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 25507

Try changing line

Code: Select all

cout<<"The minimum number of moves is "<<s<<"."<<endl;
with line

Code: Select all

cout<<"The minimum number of moves is "<<s<<"."<<endl<<endl;
Good luck
by augustotorres
Wed Oct 11, 2006 6:48 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 25507

Hey...

Try changing line

Code: Select all

cout<<"The minimum number of moves is "<<result<<endl<<endl;
with line

Code: Select all

cout<<"The minimum number of moves is "<<result<<"."<<endl<<endl;
Then, you'll get ACC
by augustotorres
Fri Oct 06, 2006 6:33 pm
Forum: Volume 5 (500-599)
Topic: 501 - Black Box
Replies: 35
Views: 22464

501 - Black Box - Why WA???

Hi there!

I just cant understand why i'm getting WA for this problem . I'm using STL's multiset, and keep track of my iterator whenever i insert an element smaller than the one pointed by it.

Here's my code:

#include <stdio.h>
#include <set>
#include <iostream>

using namespace std;

int A ...
by augustotorres
Wed Oct 04, 2006 7:06 pm
Forum: Volume 5 (500-599)
Topic: 501 - Black Box
Replies: 35
Views: 22464

501 - WA??? Plz heeeelp

Hi there!

I just cant understand why i'm getting WA for this problem :o. I'm using STL's multiset, and keep track of my iterator whenever i insert an element smaller than the one pointed by it.

Here's my code:

#include <stdio.h>
#include <set>
#include <iostream>

using namespace std;

int A ...

Go to advanced search