Search found 18 matches
- Thu Aug 19, 2010 6:25 am
- Forum: Volume 6 (600-699)
- Topic: 603 - Parking Lot
- Replies: 11
- Views: 6558
Re: 603 - Parking Lot
leonardost: thanks for the reply, I got Ac by changing my array size from 20 to 25.
- Fri Jul 09, 2010 2:06 am
- Forum: Volume 6 (600-699)
- Topic: 603 - Parking Lot
- Replies: 11
- Views: 6558
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 ...
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 ...
- Thu Jun 26, 2008 7:30 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11005 - Cheapest Base
- Replies: 7
- Views: 5654
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 ...
#include <iostream>
#define S 36
void inicio(int a[], int n);
int menorCosto(int a[]);
int costoN(int n ...
- Fri Mar 28, 2008 10:40 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10446 - The Marriage Interview :-)
- Replies: 17
- Views: 12331
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 ...
#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 ...
- Thu Mar 27, 2008 6:28 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10268 - 498-bis
- Replies: 51
- Views: 24084
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
- Wed Mar 26, 2008 9:00 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10268 - 498-bis
- Replies: 51
- Views: 24084
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 ...
#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 ...
- Sat Jan 26, 2008 1:58 am
- Forum: Volume 3 (300-399)
- Topic: 378 - Intersecting Lines
- Replies: 48
- Views: 24068
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 ...
#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 ...
- Wed Jan 23, 2008 12:11 am
- Forum: Volume 3 (300-399)
- Topic: 300 - Maya Calendar
- Replies: 69
- Views: 16225
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 ...
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 ...
- Tue Jan 22, 2008 6:34 am
- Forum: Volume 6 (600-699)
- Topic: 673 - Parentheses Balance
- Replies: 243
- Views: 79384
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
- Thu Jan 17, 2008 6:15 am
- Forum: Volume 113 (11300-11399)
- Topic: 11385 - Da Vinci Code
- Replies: 70
- Views: 35044
- Wed Jan 16, 2008 5:24 pm
- Forum: C++
- Topic: about reading multiple lines in C++
- Replies: 5
- Views: 3865
you can try whit this
Code: Select all
char a[20],b[20];
scanf("%s\n%s",&a,&b);
- Wed Jan 16, 2008 5:17 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11385 - Da Vinci Code
- Replies: 70
- Views: 35044
Hi
I try this problem, but I get wa, can you post some input.
here is my code
I try this problem, but I get wa, can you post some input.
here is my code
Code: Select all
Got Ac!
- Wed Jan 09, 2008 4:30 am
- Forum: Off topic (General chit-chat)
- Topic: How old are you? Statistics.
- Replies: 121
- Views: 195324
- Wed Jan 09, 2008 2:05 am
- Forum: Volume 101 (10100-10199)
- Topic: 10137 - The Trip
- Replies: 159
- Views: 70212
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 ...
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 ...
- Mon Dec 24, 2007 8:03 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10903 - Rock-Paper-Scissors Tournament
- Replies: 27
- Views: 16085