## Search found 18 matches

Wed Sep 03, 2008 3:37 am
Forum: Algorithms
Topic: I need a coach about algorithms
Replies: 0
Views: 893

### I need a coach about algorithms

Hi to all. I need a coach of algorithm for competition ACM, codejam, etc. I need that he can speak spanish. Please send me the price of this coaching, for 3 month. I know about graph theory (BFS, DFS, Floyd, Bellman, etc.), and data structures. I have 78 problems Ac's in UVa online jugde. But i can'...
Sun Mar 16, 2008 11:53 pm
Forum: Volume 114 (11400-11499)
Topic: 11407 - Squares
Replies: 24
Views: 9242

### Re: 11407 squares

Hi! I'm using DP. And i got WA. I tested my program with all the cases, and i haven't error. Here is my code #include <cmath> #include <iostream> using namespace std; int resul; int dp[10001]; int dp2[10001]; void menor(int a){ ++resul; double temp=sqrt(a); int temp2=(int)temp; if (temp2*temp2!=a){ ...
Wed Mar 05, 2008 5:55 am
Forum: Volume 105 (10500-10599)
Topic: 10523 - Very Easy !!!
Replies: 63
Views: 22881
Hi. I'm got RE, but i can't find the error. :-? :-? . Please, Here is my code. import java.util.Scanner; import java.math.BigInteger; import java.io.*; class pp { public static void main (String[] args) { Scanner sc = new Scanner(System.in); //while(sc.hasNext()){ while(sc.hasNext()){ BigInteger n=s...
Sat Mar 01, 2008 9:28 am
Forum: Volume 105 (10500-10599)
Topic: 10591 - Happy Number
Replies: 61
Views: 21113
helloneo wrote:Try this input..

Code: Select all

``````1
4``````

My output..

Code: Select all

``Case #1: 4 is an Unhappy number.``

PS. Remove you code after AC..
Sat Mar 01, 2008 8:59 am
Forum: Volume 105 (10500-10599)
Topic: 10591 - Happy Number
Replies: 61
Views: 21113
Hi to all!

I got WA. I review the format output, and all, but i got wa too. Here is my code.

Code: Select all

``````AC. Thanks Helloneo

``````
THanks to all. Bye
Wed Feb 13, 2008 6:35 am
Forum: Volume 113 (11300-11399)
Topic: 11310 - Delivery Debacle
Replies: 19
Views: 10002
thanks Rio. Sorry me. When i read the first post the first time, I could not understand, the following code:

Code: Select all

``````aab
abb

abb
aab ``````
But now i understand.

I got AC. Thanks, very thanks to Rio for help me.
Sun Feb 03, 2008 9:40 pm
Forum: Volume 7 (700-799)
Topic: 750 - 8 Queens Chess Problem
Replies: 78
Views: 26944
Thanks for the input. I got AC.
Thu Jan 31, 2008 1:13 am
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 162
Views: 16680
Good. Thanks. I got AC
Sun Jan 27, 2008 8:46 am
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 26006

### I'm having WA

Hi! I read all the post about this problem. All the input match. And i have WA :cry: . Here is my code: #include <iostream> #include <string> #include <vector> using namespace std; int main(){ int taman; bool entro=false; while ((cin >> taman) && taman!=0){ if (entro) cout << endl; entro=true; vecto...
Sun Jan 06, 2008 12:22 am
Forum: Volume 113 (11300-11399)
Topic: 11340 - Newspaper
Replies: 154
Views: 44459
Hi ;), I take careful about the unsigned char, and i had been careful about the char '\n' , '\t', ' ', ...... but i got WA. Here is my code... thanks for your help. #include <iostream> #include <string> #include <vector> #include <stdio.h> using namespace std; int costos[300]; int total; int main(){...
Sat Jan 05, 2008 11:16 pm
Forum: Volume 113 (11300-11399)
Topic: 11327 - Enumerating Rational Numbers
Replies: 4
Views: 3623

### 11327 - Enumerating Rational Numbers

Hi! In this problem i got TLE, i thought in dp, but.... i don't know very well the DP, and, in my program is of little help, because the delay a great time in compute the greatest number. Somebody can advise some idea, here is my code. Very thanks to all. :wink: :wink: . #include <iostream> using na...
Sat Jan 05, 2008 4:42 am
Forum: Volume 113 (11300-11399)
Topic: 11310 - Delivery Debacle
Replies: 19
Views: 10002
Try this input.. 3 3 4 5 My output is.. 11 33 87 Hope this help.. :-) Hi! Helloneo. I can't understand why your output is correct.... fib[0]=1; fib[1]=1; fib =4*fib[i-2]+fib[i-1]; Then, for the fib[2] fib[2]=4*fib[0]+fib[1]=4*1+1=5 fib[3]=4*fib[1]+fib[2]=4*1+5=9 fib[4]=4*fib[2]+fib[3]=4*5+9=29 fib[...
Fri Jan 04, 2008 2:53 pm
Forum: Volume 113 (11300-11399)
Topic: 11310 - Delivery Debacle
Replies: 19
Views: 10002
Hi! How are all. I got WA in this exercise, and... i proof printing a "\n" in the final, and without thist "\n", and continue WA :-? . Somebody know why thist code have WA. Here is my code #include <iostream> using namespace std; int main(){ unsigned long long fib[41]; fib[0]=1; fib[1]=1; fib[2]=5; ...
Tue Jan 01, 2008 2:40 pm
Forum: Volume 113 (11300-11399)
Topic: 11360 - Have Fun with Matrices
Replies: 38
Views: 13068
Hi to all! Really sorry me please. I have a mistake reading your help. Thanks, Very thanks. . I got AC.
About the code. I think cut. Thanks to Rio and Sohel for help me.
Tue Jan 01, 2008 12:58 am
Forum: Volume 113 (11300-11399)
Topic: 11360 - Have Fun with Matrices
Replies: 38
Views: 13068
Hi! very thaks for answer me But, I tried without the last line and i have WA again. . Here is the new code without the last blank line.

Code: Select all

`````` Code AC
``````