Search found 18 matches

by Mata
Thu Aug 19, 2010 6:25 am
Forum: Volume 6 (600-699)
Topic: 603 - Parking Lot
Replies: 11
Views: 5099

Re: 603 - Parking Lot

leonardost: thanks for the reply, I got Ac by changing my array size from 20 to 25.
by Mata
Fri Jul 09, 2010 2:06 am
Forum: Volume 6 (600-699)
Topic: 603 - Parking Lot
Replies: 11
Views: 5099

Re: 603 - Parking Lot

Hi I'm having some troubles with this problem, I get WA, I've try several test cases but can't get AC. Can you help find where my code fails?. I have three arrays of size 20, in wait I store the positions each car is waiting,wait_ is for the original waiting position and parks is to store the positi...
by Mata
Thu Jun 26, 2008 7:30 pm
Forum: Volume 110 (11000-11099)
Topic: 11005 - Cheapest Base
Replies: 7
Views: 4787

Re: 11005 - Cheapest Base

Hi, i try this problem but i get wrong answer, i think its an easy problem but i cant find my mistake, can someone give some test input to see what its wrong with my code?, this is what i do: #include <iostream> #define S 36 void inicio(int a[], int n); int menorCosto(int a[]); int costoN(int n, int...
by Mata
Fri Mar 28, 2008 10:40 pm
Forum: Volume 104 (10400-10499)
Topic: 10446 - The Marriage Interview :-)
Replies: 17
Views: 9608

wrong answer

Hi, I try this problem but i got wrong answer, i have correct answer for the sample input, what can be wrong with this #include <iostream> unsigned long long recur(int n, int b); int main() { int n=0, b=0, conta=0; while(scanf("%d %d",&n,&b)==2&&n<61) { conta++; if(n<=1) printf("Case %d: 1\n",conta)...
by Mata
Thu Mar 27, 2008 6:28 pm
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 17392

stil wa

Hi, thanks for the test cases, I try them and i got the same output as you, i didn't find the extra 0 at the end of my output.

Code: Select all

1073741824
2147483647
-65244729
-2147483647
1155763769
-1
by Mata
Wed Mar 26, 2008 9:00 pm
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 17392

wrong answer

hi, I try this problem, but it I get wrong answer, i use the same in the 498 and got Ac in that, what could be wrong with this #include <iostream> #include <cmath> int main() { double cof[200000], xval=0.0, r=0.0; int x=0, a=0, k=0; char ca=' '; while(true) { x=0, r=0, a=0, k=0; scanf("%lf%c",&xval,...
by Mata
Sat Jan 26, 2008 1:58 am
Forum: Volume 3 (300-399)
Topic: 378 - Intersecting Lines
Replies: 48
Views: 15294

Wa

Hi, I try the cases in the forum and it is correct but i still reciving wa, what is wrong with this code? #include <iostream> int main() { int n=0; scanf("%d\n",&n); printf("INTERSECTING LINES OUTPUT\n"); while(n>0) { n--; double x1=0.0,y1=0.0,x2=0.0,y2=0.0,kx1=0.0,ky1=0.0,kx2=0.0,ky2=0.0; scanf("%l...
by Mata
Wed Jan 23, 2008 12:11 am
Forum: Volume 3 (300-399)
Topic: 300 - Maya Calendar
Replies: 69
Views: 9783

wa 300

Hi I'm getting wrong answer in this, i try the input in the forums and it seems ok, what could be the mistake? here is my code #include <iostream> #include <cstring> int first(char month[], int dia, int ano); void second(int dias); void ini(char a[]); int main() { int n=0; scanf("%d\n",&n); if(n>0) ...
by Mata
Tue Jan 22, 2008 6:34 am
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 45809

wa

hi, I try the input in the forum, but I got wa, here is my code, what could be wrong my program?.

Code: Select all

got Ac
by Mata
Thu Jan 17, 2008 6:15 am
Forum: Volume 113 (11300-11399)
Topic: 11385 - Da Vinci Code
Replies: 70
Views: 23494

thanks, i changed my code, i got Ac.
by Mata
Wed Jan 16, 2008 5:24 pm
Forum: C++
Topic: about reading multiple lines in C++
Replies: 5
Views: 3052

you can try whit this

Code: Select all

char a[20],b[20];
scanf("%s\n%s",&a,&b);
by Mata
Wed Jan 16, 2008 5:17 pm
Forum: Volume 113 (11300-11399)
Topic: 11385 - Da Vinci Code
Replies: 70
Views: 23494

Hi
I try this problem, but I get wa, can you post some input.
here is my code

Code: Select all

Got Ac!
by Mata
Wed Jan 09, 2008 4:30 am
Forum: Off topic (General chit-chat)
Topic: How old are you? Statistics.
Replies: 121
Views: 175581

Im 19 i joined 5 months ago, I solved 82 problems.
by Mata
Wed Jan 09, 2008 2:05 am
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 45474

Wa

hi, im getting wrong answer in this problem, i've tried the sample input in the forums and it is ok, what could be wrong? . here is my code #include <iostream> int main() { long long n=0; while(scanf("%ld",&n)==1&&n>0) { double tempo=0,low=0,high=0,t2=0; long long cents[n], total=0,x=0,avg=0,mod=0; ...
by Mata
Mon Dec 24, 2007 8:03 pm
Forum: Volume 109 (10900-10999)
Topic: 10903 - Rock-Paper-Scissors Tournament
Replies: 27
Views: 11256

Thanks, I didn't notice it, now i got Ac

Go to advanced search