Search found 8 matches

by Fali
Sun Nov 19, 2006 3:50 am
Forum: Volume 5 (500-599)
Topic: 560 - Magic
Replies: 12
Views: 6291

WA I can't understand

This is the output I got with your input: INPUT 6 4900006514979587103 9305660497031957126752544737246 13708976269278645181999140607 1427490008594779 107351103235212538538682 65244379091939972650698 OUTPUT 4906514995810 11488469494221669969449966 186996609898064545105801 20921440849 11929005946806504...
by Fali
Wed Jun 28, 2006 12:07 pm
Forum: Volume 6 (600-699)
Topic: 676 - Horse Step Maze
Replies: 21
Views: 11759

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,x; vo...
by Fali
Tue Jun 27, 2006 7:36 am
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 8006

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 main() { s...
by Fali
Tue Jun 27, 2006 7:22 am
Forum: Volume 102 (10200-10299)
Topic: 10252 - Common Permutation
Replies: 150
Views: 52761

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++) cuan1[c]=cu...
by Fali
Tue Jun 27, 2006 7:14 am
Forum: Volume 100 (10000-10099)
Topic: 10067 - Playing with Wheels
Replies: 62
Views: 24533

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,b,c,d,i...
by Fali
Sun Jun 18, 2006 4:05 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 52484

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 to sep...
by Fali
Sun Sep 18, 2005 11:15 pm
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 26637

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; aux->rec...
by Fali
Thu Aug 18, 2005 8:04 pm
Forum: Volume 100 (10000-10099)
Topic: 10009 - All Roads Lead Where?
Replies: 60
Views: 14926

10009 - I need some help

Here is my code, i

Go to advanced search