Search found 14 matches

by MauriWilde
Sun Jul 06, 2014 5:43 am
Forum: Volume 103 (10300-10399)
Topic: 10341 - Solve It
Replies: 64
Views: 34652

Re: 10341 - Solve It

Could someone please explain me this?

When I use: puts("No solution"); my code give me AC.

But when I use cout << "No solution" << endl; (with and without endl or \n) my SAME code gives me Wrong Answer...

:-? :-? :-? :-?
by MauriWilde
Sun Jun 01, 2014 9:34 pm
Forum: Volume 116 (11600-11699)
Topic: 11686 - Pick up sticks
Replies: 44
Views: 10375

11686 - Pick up sticks WA Please Help

I can't figure out why I'm getting WA :/ could you help me?

My code (c++):

Code: Select all

 Removed after AC
Thank you in advance ^-^

UPD: I was checking cycles existence wrong.
by MauriWilde
Mon Feb 10, 2014 2:53 am
Forum: Volume 1 (100-199)
Topic: 186 - Trip Routing
Replies: 15
Views: 4378

186 - Trip Routing WA

Why is this giving me WA?? Please help :(

Code: Select all

AC. Removed.
Thank you in advance. :)
by MauriWilde
Thu Jan 23, 2014 9:58 pm
Forum: Volume 7 (700-799)
Topic: 784 - Maze Exploration
Replies: 21
Views: 7668

784 - Maze Exploration WA

Could somebody tell me why am I getting WA in this problem? #include <iostream> #include <cstring> #include <queue> using namespace std; char M[35][85]; int V[35]; int dx[]={-1,-1,-1,0,0,1,1,1}; int dy[]={-1,0,1,-1,1,-1,0,1}; void BFS(int n, int m) { queue<int>X; queue<int>Y; X.push(n); Y.push(m); M...
by MauriWilde
Sat Jun 22, 2013 4:38 am
Forum: Volume 106 (10600-10699)
Topic: 10684 - The jackpot
Replies: 34
Views: 18628

Re: 10684 - The Jackpot

Hi, today I made this problem and I found something interesting. I sent my code and while it was in queue I realized that my code failed for this case: 1 1 0 So I sent it again, but with the correction. The funny thing is that when I checked I had the two submissions accepted. The firstone's output ...
by MauriWilde
Fri Jun 21, 2013 6:08 am
Forum: Volume 5 (500-599)
Topic: 555 - Bridge Hands
Replies: 12
Views: 3789

Re: 555 - Bridge Hands Wrong Answer

o.O

How I didn't see that!!??

Accepted :D

Thank you!! ^-^
by MauriWilde
Wed Jun 19, 2013 4:27 am
Forum: Volume 5 (500-599)
Topic: 555 - Bridge Hands
Replies: 12
Views: 3789

555 - Bridge Hands Wrong Answer

I got Wrong Answer in this problem, and I can't find what goes wrong with my code. Could somebody please give me some input/output cases or tell me the mistake in my code?

This is my C++ code:

Code: Select all

Accepted
Thank you very much ^-^
by MauriWilde
Mon Jun 10, 2013 12:45 am
Forum: Bugs and suggestions
Topic: 1033: Submission error
Replies: 5
Views: 2294

Re: 1033: Submission error

Same bug in 10226 since 26 days ago.
by MauriWilde
Mon Jun 10, 2013 12:41 am
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 37417

Re: 10226 - Hardwood Species submission error?

I checked and this problem is giving submission error to everybody since 25 days ago u.u
by MauriWilde
Sun Jun 09, 2013 8:41 pm
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 37417

10226 - Hardwood Species submission error?

Why am I getting submission error in this problem? I sent it like six times and always is the same.

You can see my submissions here: http://uhunt.felix-halim.net/id/129605

And here is my code:

Code: Select all

Removed after AC
Please help me :(
by MauriWilde
Tue Jan 29, 2013 5:04 am
Forum: Volume 119 (11900-11999)
Topic: 11988 - Broken Keyboard (a.k.a. Beiju Text)
Replies: 27
Views: 9021

11988 - Broken Keyboard (a.k.a. Beiju Text)

Why am I getting TLE in this problem? My code (c++): #include <iostream> using namespace std; int main() { string s; while(getline(cin, s)) { bool sw = true; string ans = ""; string aux = ""; for (int i=0; i<s.length(); i++) { if (s[i] == ']') sw = true; else if (s[i] == '[') { sw = false; ans = aux...
by MauriWilde
Tue Jan 22, 2013 3:30 am
Forum: Volume 5 (500-599)
Topic: 562 - Dividing coins
Replies: 73
Views: 29559

562 - Dividing coins and Knapsack Algorithm

This looks like an easy knapsack problem, but I don't know the knapsack algorithm. So, could anyone give me a pseudo-code for this problem? Or a pseudo-code for the knapsack algorithm?

Thank you very much. :D
by MauriWilde
Sun Jan 20, 2013 6:02 am
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21623

Re: 111 - History Grading WA Please help

I got accepted just making the size of the vectors = n. I really can't understand why that gave me WA
by MauriWilde
Sun Jan 20, 2013 2:03 am
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21623

111 - History Grading WA Please help

Hello, I got WA in this problem and I cant figure the reason :( . Please help me, I read a lot of topics about the problem but any of them helped me.

Here is my code, it is in cpp.

Code: Select all

ACCEPTED

Go to advanced search