Search found 5 matches

by leonardoferrari
Tue May 03, 2011 4:12 am
Forum: Volume 101 (10100-10199)
Topic: 10139 - Factovisors
Replies: 80
Views: 42053

Re: 10139 - Factovisors

My code is not working !
What might be the problem ?
/*
* File: main.cpp
* Author: Leonardo
*
* Created on 29 de Abril de 2011, 14:44
*/

#include <stdlib.h>
#include <iostream>
#include <math.h>
#include <string.h>

using namespace std;

/*
*
*/

long long get_powers(long long n, long ...
by leonardoferrari
Mon Apr 04, 2011 11:06 am
Forum: Volume 100 (10000-10099)
Topic: 10026 - Shoemaker's Problem
Replies: 82
Views: 46906

Re: 10026 - Shoemaker's Problem

my code looks a lot like kawsar's, but I can't get AC:

Code

got AC


The input that is not outputting correct :

20
200 10
190 10
190 9
200 11
199 10
199 11
200 11
200 9
201 9
201 10
201 11
191 9
10000 9999
9999 10000
10000 10000
9999 9999
5 10000
10000 5
5 5

My output:

17 14 15 16 19 20 13 ...
by leonardoferrari
Sun Apr 03, 2011 12:49 am
Forum: Volume 100 (10000-10099)
Topic: 10037 - Bridge
Replies: 84
Views: 37522

Re: 10037 - Bridge

Keep geeting WA, but every test has worked properly.

Any help would be appreciated !

Code: Select all

done, silly mistake...
BTW, i tried to take the cout << endl; out after the cin >> casos, but no luck :(

Thanks guys !
by leonardoferrari
Thu Mar 17, 2011 2:17 pm
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 39315

Re: 10033 - Interpreter

Getting Runtime Error, also, I think my code has something wrong, because on the UVA example the output is 16, and Im getting 13 !

My code:

/*
* File: interpreter.cpp
* Author: Leonardo
*
* Created on 14 de Março de 2011, 02:56
*/

#include <cstdlib>
#include <iostream>
#include <string.h ...
by leonardoferrari
Mon Mar 14, 2011 5:01 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124813

Re: 10189 - Minesweeper

Keep getting WA, don't know what to do.
My Outputs are all right !

Code: Select all

nevermind, got AC.

Thanks in advance !

P.S -> when doing a counter to the field, dont forget to do and endl only at the first output. Aka if(counter) cout << endl;

Go to advanced search