This is the output I got with your input:
INPUT
6
4900006514979587103
9305660497031957126752544737246
13708976269278645181999140607
1427490008594779
107351103235212538538682
65244379091939972650698
OUTPUT
4906514995810
11488469494221669969449966
186996609898064545105801
20921440849 ...
Search found 8 matches
- Sun Nov 19, 2006 3:50 am
- Forum: Volume 5 (500-599)
- Topic: 560 - Magic
- Replies: 12
- Views: 7644
- Wed Jun 28, 2006 12:07 pm
- Forum: Volume 6 (600-699)
- Topic: 676 - Horse Step Maze
- Replies: 21
- Views: 14194
I got OLE... help
Hi, can you give me some input/output test please, i have a mistake, here is my code, if you see something wrong please tell me.
/*
Horse Step Maze, UVa # 676
Nephtali Garrido
27/06/06
*/
#include <cstdio>
#include <iostream>
using namespace std;
int n,c,c2;
bool mat[9][9],ya;
char xi,yi,xf,yf ...
/*
Horse Step Maze, UVa # 676
Nephtali Garrido
27/06/06
*/
#include <cstdio>
#include <iostream>
using namespace std;
int n,c,c2;
bool mat[9][9],ya;
char xi,yi,xf,yf ...
- Tue Jun 27, 2006 7:36 am
- Forum: Volume 1 (100-199)
- Topic: 114 - Simulation Wizardry
- Replies: 80
- Views: 16301
114 - Simulation Wizardry
I hope somebody can help me... I don't know why i got WA.
Please, help
My code:
/*
Simulation Wizardry, UVa # 114
Nephtali Garrido
*/
#include <iostream>
#include <cstdio>
using namespace std;
struct bumper
{ bool h;
long v,cos;
}mat[53][53];
long pa,p,vida,tot,pu;
int m,n,c,c2,x,y,d;
int ...
Please, help
My code:
/*
Simulation Wizardry, UVa # 114
Nephtali Garrido
*/
#include <iostream>
#include <cstdio>
using namespace std;
struct bumper
{ bool h;
long v,cos;
}mat[53][53];
long pa,p,vida,tot,pu;
int m,n,c,c2,x,y,d;
int ...
- Tue Jun 27, 2006 7:22 am
- Forum: Volume 102 (10200-10299)
- Topic: 10252 - Common Permutation
- Replies: 150
- Views: 73426
10252 - Common permutations
Why WA, so weird, please help me with this problem.
Here is my code:
/*
Common Permutation, Uva 10252
Nephtali Garrido
*/
#include <cstdio>
#include <iostream>
using namespace std;
char v1[1000],v2[1000],x;
int cuan1[29],cuan2[29],c,c2;
int main()
{ while(cin>>v1>>v2)
{ for(c=0;c<29;c ...
Here is my code:
/*
Common Permutation, Uva 10252
Nephtali Garrido
*/
#include <cstdio>
#include <iostream>
using namespace std;
char v1[1000],v2[1000],x;
int cuan1[29],cuan2[29],c,c2;
int main()
{ while(cin>>v1>>v2)
{ for(c=0;c<29;c ...
- Tue Jun 27, 2006 7:14 am
- Forum: Volume 100 (10000-10099)
- Topic: 10067 - Playing with Wheels
- Replies: 62
- Views: 35441
10067 - Playing with wheels.. WA
Hi, I tested my program with a lot of inputs, can you help me !!
If you know a critical input or if you see my mistake, please help me.
/*
Playing with wheels, Uva # 10067
Nephtali Garrido
24/06/06
*/
#include <cstdio>
using namespace std;
struct conf
{ bool disp;
int d;
}v[10000];
int m,n,a ...
If you know a critical input or if you see my mistake, please help me.
/*
Playing with wheels, Uva # 10067
Nephtali Garrido
24/06/06
*/
#include <cstdio>
using namespace std;
struct conf
{ bool disp;
int d;
}v[10000];
int m,n,a ...
- Sun Jun 18, 2006 4:05 am
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116782
Reply
Hi!! :D
Let me explain the sample input...
Sample Input
1 2 3 4 5 6 7 8 9
then the bins are in this form:
Brown Green Clear
Bin #1: 1 2 3
Bin #2: 4 5 6
Bin #3: 7 8 9
We want to put all the brown bottles in one bin, all the green bottles in other and all the clear bottles in other. i.e we want ...
Let me explain the sample input...
Sample Input
1 2 3 4 5 6 7 8 9
then the bins are in this form:
Brown Green Clear
Bin #1: 1 2 3
Bin #2: 4 5 6
Bin #3: 7 8 9
We want to put all the brown bottles in one bin, all the green bottles in other and all the clear bottles in other. i.e we want ...
- Sun Sep 18, 2005 11:15 pm
- Forum: Volume 1 (100-199)
- Topic: 119 - Greedy Gift Givers
- Replies: 145
- Views: 47420
119 - Run Time Error
#include<iostream>
using namespace std;
short n;
struct gift
{char cad[13];
int spend;
int rec;
gift *next;
};
char c[13];
int i,d,g,t,p,k;
gift *cab,*grupo,*aux;
int main()
{while(cin>>n)
{cab=new gift;
cin>>cab->cad;
grupo=cab;
grupo->rec=0;
for(i=1;i<n;i++)
{aux=new gift;
cin>>aux->cad ...
using namespace std;
short n;
struct gift
{char cad[13];
int spend;
int rec;
gift *next;
};
char c[13];
int i,d,g,t,p,k;
gift *cab,*grupo,*aux;
int main()
{while(cin>>n)
{cab=new gift;
cin>>cab->cad;
grupo=cab;
grupo->rec=0;
for(i=1;i<n;i++)
{aux=new gift;
cin>>aux->cad ...
- Thu Aug 18, 2005 8:04 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10009 - All Roads Lead Where?
- Replies: 60
- Views: 24929
10009 - I need some help
Here is my code, i