Search found 11 matches

by de
Thu Aug 28, 2003 12:57 pm
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 32523

112 WA

I don't know what's wrong in my code><

I've considered the negative inputs and 0 () is "no"

[cpp]
#include <iostream.h>
#include <stdio.h>

int find;
int n;
int ans;
int ansc;

void DFS(int sum)
{
int s=0;
int temp=0;
char c;
int us=1;

while (scanf ("%c",&c)==1)
{
if (c=='-')
{
us=-1 ...
by de
Wed Aug 27, 2003 12:18 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 37497

104 Wrong Answer

this problem is hard for me><
can someone help me?><
[cpp]#include <iostream.h>
#include <math.h>

int main()
{
int stack[30];
int p;
int n;
int k;
int i;
int tx;
int t,t2;
double data[30][30];
int path[30][30];
int step[30][30];
int find;
int min;

while (cin >> n)
{
for (t=1 ;t<=n ...
by de
Wed Aug 20, 2003 4:26 pm
Forum: Volume 100 (10000-10099)
Topic: 10099 - The Tourist Guide
Replies: 91
Views: 43278

thanks!

special thanks for your help!!..^^
by de
Sat Aug 16, 2003 3:43 pm
Forum: Volume 100 (10000-10099)
Topic: 10099 - The Tourist Guide
Replies: 91
Views: 43278

10099 WA

I don't know why got WA.

Thanks for you help..><

[cpp]#include <iostream.h>

long max(long a,long b)
{
if (a>b)
return a;
else
return b;
}

long min(long a,long b)
{
if (a<b)
return a;
else
return b;
}

int main()
{
int n,r;
long graph[120][120];
int k,t,t2;
int x,y,l;
int s,d,p ...
by de
Sat Apr 05, 2003 9:49 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 48284

Problem 490

I got Wrong Answer
but I don't know why ><...

[cpp]
#include <iostream.h>
#include <string.h>
#include <stdio.h>

int main()
{
char data[101][101];
int msize;
int n,t,t2;

for (t=0 ;t<=100 ;t++)
data[0][t]=' ';

n=0;

// freopen ("482in.txt","r",stdin);

msize=0;
while (gets (data[n ...
by de
Mon Mar 24, 2003 1:39 pm
Forum: Volume 103 (10300-10399)
Topic: 10344 - 23 out of 5
Replies: 81
Views: 40157

10344 WA

Can someone help me to find what wrong with my code,or give me some
test input/output..thanks!!
[cpp]
#include <iostream.h>

int intIn[5];
int oper[4];
int intOK;

void sh (int);
void change (int);

void change (int N)
{
int intT,intT2;
int intTemp;

if (N==5)
sh (1);

else if (intOK==0 ...
by de
Sun Mar 16, 2003 6:28 pm
Forum: Volume 1 (100-199)
Topic: 130 - Roman Roulette
Replies: 25
Views: 5422

130

I need some test input/output

thanks a lot!!!
by de
Sun Mar 16, 2003 4:02 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 55240

are the correct answers 3 15 and 4 31?

I have fix the problem but still got WA :cry:
by de
Sun Mar 16, 2003 10:14 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 55240

107 WA

Why this code got WA@@?
[cpp]#include <iostream.h>
#include <math.h>

int check(int,int);

int check(int In,int arg)
{
int intS=0;
while (In%arg==0)
{
In/=arg;
intS++;
}

return intS;
}

int main()
{
unsigned long int intIn1,intIn2;
unsigned long int intT;
unsigned long int intS1,intS2 ...
by de
Sat Mar 15, 2003 5:08 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 37497

104 Wrong Answer

I use DFS,I don't know where's the bug in my code
can someone help me if you have time,thank you very much..^^ [cpp]#include <iostream.h>
#include <stdio.h>

int intMinN,intN;
double Data[30][30];
int intOK;
double MaxSum;
int Ans[30];

void visit (int In,int In2,int times,double sum,int intAns ...
by de
Sat Mar 08, 2003 3:50 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 71775

623

why got WA@@?
I have try 0,1,2,3,4,5,6,7,8,9,10,100,150,500
but I still can't find any bug><

#include <iostream.h>

void solve(int [],int);
void out(int []);

void solve(int N[],int A)
{
int intT;
int intIF=0;
int intS=0;

for (intT=284 ;intT>=0 ;intT--)
{
N[intT]*=A;

if (intIF!=0)
intS ...

Go to advanced search