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 ...
Search found 18 matches
- Wed Sep 03, 2008 3:37 am
- Forum: Algorithms
- Topic: I need a coach about algorithms
- Replies: 0
- Views: 1167
- Sun Mar 16, 2008 11:53 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11407 - Squares
- Replies: 24
- Views: 14102
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 ...
#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 ...
- Wed Mar 05, 2008 5:55 am
- Forum: Volume 105 (10500-10599)
- Topic: 10523 - Very Easy !!!
- Replies: 63
- Views: 32120
- Sat Mar 01, 2008 9:28 am
- Forum: Volume 105 (10500-10599)
- Topic: 10591 - Happy Number
- Replies: 61
- Views: 30979
Hi Helloneo. Thanks for your quick answer. I got AC.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: 30979
Hi to all!
I got WA. I review the format output, and all, but i got wa too. Here is my code.
THanks to all. Bye

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
- Wed Feb 13, 2008 6:35 am
- Forum: Volume 113 (11300-11399)
- Topic: 11310 - Delivery Debacle
- Replies: 19
- Views: 12972


Code: Select all
aab
abb
abb
aab
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: 38973
- Thu Jan 31, 2008 1:13 am
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 50266
- Sun Jan 27, 2008 8:46 am
- Forum: Volume 109 (10900-10999)
- Topic: 10905 - Children's Game
- Replies: 66
- Views: 35057
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 ...
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 ...
- Sun Jan 06, 2008 12:22 am
- Forum: Volume 113 (11300-11399)
- Topic: 11340 - Newspaper
- Replies: 154
- Views: 68787
- Sat Jan 05, 2008 11:16 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11327 - Enumerating Rational Numbers
- Replies: 4
- Views: 4425
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 ...
#include <iostream>
using ...
- Sat Jan 05, 2008 4:42 am
- Forum: Volume 113 (11300-11399)
- Topic: 11310 - Delivery Debacle
- Replies: 19
- Views: 12972
- Fri Jan 04, 2008 2:53 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11310 - Delivery Debacle
- Replies: 19
- Views: 12972
- Tue Jan 01, 2008 2:40 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11360 - Have Fun with Matrices
- Replies: 38
- Views: 19413
- Tue Jan 01, 2008 12:58 am
- Forum: Volume 113 (11300-11399)
- Topic: 11360 - Have Fun with Matrices
- Replies: 38
- Views: 19413
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