Search found 17 matches

by galois_godel
Tue Feb 10, 2004 7:54 am
Forum: Volume 6 (600-699)
Topic: 657 - The die is cast
Replies: 46
Views: 21237

U only need add one sentence :
[cpp]
visited[x][y]=true;
[/cpp]
by galois_godel
Wed May 28, 2003 3:10 pm
Forum: Volume 3 (300-399)
Topic: 361 - Cops and Robbers
Replies: 50
Views: 14158

Who can why my code for problem for 361 is wrong?

I don't know why my code for 361 is wrong? my code is: [cpp] #include<iostream> #include<cstdio> #include<cstdlib> #include<cmath> using namespace std; #define infinity 1e20 #define EP 1e-10 #define N 10000 //#define double int struct TPoint{ double x,y; }; TPoint bp; struct TLineSeg{ TPoint a,b; };...
by galois_godel
Tue Jan 21, 2003 5:26 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 38523

10424 Wrong Answer (Rejudgement) Why?

I think it's a easy problem and I got AC when I submit first. But after REJUDGEMENT. The judge tell me that my code is wrong? Can u tell me why? thank u? #include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> using namespace std; int chartonum(char *c) { int len=strlen(c); int i; in...
by galois_godel
Tue Jan 21, 2003 5:26 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 38523

10424 - Love Calculator

I think it's a easy problem and I got AC when I submit first. But after REJUDGEMENT. The judge tell me that my code is wrong? Can u tell me why? thank u? #include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> using namespace std; int chartonum(char *c) { int len=strlen(c); int i; in...
by galois_godel
Sun Jan 12, 2003 4:21 pm
Forum: Volume 104 (10400-10499)
Topic: 10415 - Eb Alto Saxophone Player
Replies: 21
Views: 6390

I have pass the all test data above .but still wrong answer?

I have pass the all test data above .but still wrong answer? #include<iostream> #include<cstring> using namespace std; const int a[14][10]={ {0,1,1,1,0,0,1,1,1,1}, {0,1,1,1,0,0,1,1,1,0}, {0,1,1,1,0,0,1,1,0,0}, {0,1,1,1,0,0,1,0,0,0}, {0,1,1,1,0,0,0,0,0,0}, {0,1,1,0,0,0,0,0,0,0}, {0,1,0,0,0,0,0,0,0,0}...
by galois_godel
Sat Sep 28, 2002 9:19 am
Forum: Volume 103 (10300-10399)
Topic: 10364 - Square
Replies: 47
Views: 14611

10364(I can understand this problem.who can help me??)

I can understand this problem.
what is the width of the stick?
why the case 2(5 10 20 30 40 50) can't be "Yes"?
by galois_godel
Sat Aug 31, 2002 5:19 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 55926

10035 WR ? why?

It's a easy problem. But I can't get AC. Who can tell me why? program a10035; {$APPTYPE CONSOLE} uses SysUtils; var a,b,i,c,temp:integer; m,n:array[1..10]of integer; lm,ln,l,carry:integer; begin { TODO -oUser -cConsole Main : Insert code here } {assign(input,'a10035.in.txt'); assign(output,'a10035.o...
by galois_godel
Thu Aug 22, 2002 8:19 am
Forum: Volume 2 (200-299)
Topic: 294 - Divisors
Replies: 91
Views: 23175

294 WR why??

the problem is easy?but I can't pass.Can u help me? program a294(input,output); var n,casei,fin,i:integer; di:integer; inf,sup:integer; max,maxdiv,temp:integer; function getdiv(n,supmax:integer):integer; var i:integer;re:integer; begin i:=2;re:=1; while n<>1 do begin di:=0; //if i>trunc(sqrt(n))+1 t...
by galois_godel
Tue Aug 13, 2002 4:01 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 19264

190 WR?why?(or u can give me some sample input and output)

#include <iostream.h> #include <stdio.h> #include <math.h> double centerx,centery,w,h; int point(double a,double b,double c,double x,double y,double std) { double mm=a*y+b*x+c; if(mm*std>0) return 1; else return 0; } double abs(double x) { if(x<0) return (-x); else return x; } int isinrect(double x,...
by galois_godel
Tue Aug 13, 2002 3:59 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 25447

195 WR?why?(or u can give me some sample input and output)

program a195; var alpha:array[0..57]of integer; cnum:integer; icase,l:integer; s:string[100]; procedure getalpha; var i:integer; begin for i:=0 to 57 do begin alpha :=100; if (i+65)<91 then alpha :=2*i; if (i+65)>96 then alpha :=2*(i+65-97)+1; end; end; procedure sort; var i,j:integer; t:char; begin...
by galois_godel
Tue Aug 13, 2002 3:56 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 19264

190 WR?why?(or u can give me some sample input and output)

program a190(input,output); type geshi=record str:string[3]; val:real; zero:boolean; behind:char; end; var x0,x1,x2,y1,y2,y0:real; hkcde:array[1..5]of geshi; r,h,k:real; procedure getstr; var i:integer; begin for i:=1 to 5 do begin hkcde .str:=' + '; hkcde .zero:=false; hkcde .behind:=' '; if hkcde ...
by galois_godel
Mon Aug 05, 2002 6:48 am
Forum: Volume 1 (100-199)
Topic: 146 - ID Codes
Replies: 35
Views: 5609

Thank you

Thank you
by galois_godel
Fri Jul 26, 2002 5:08 pm
Forum: Volume 1 (100-199)
Topic: 146 - ID Codes
Replies: 35
Views: 5609

146:WR why??

who can give some sample input and sample output for 146 program a146(input,output); var s:string[50]; l,i,j,k:integer; t:char; procedure sort(m:integer); var r,k:integer; temp:char; begin for r:=m to l do begin for k:=r+1 to l do begin if ord(s[r])>ord(s[k]) then begin temp:=s[r]; s[r]:=s[k]; s[k]:...
by galois_godel
Mon Jul 22, 2002 5:06 pm
Forum: Volume 1 (100-199)
Topic: 146 - ID Codes
Replies: 35
Views: 5609

146 - ID Codes

who can give some sample input and sample output for problem 146 I can't find where go wrong in it? var s:string[50]; l,i,j,k:integer; t:char; procedure sort(m:integer); var r,k:integer; temp:char; begin for r:=m to l do begin for k:=r+1 to l do begin if ord(s[r])>ord(s[k]) then begin temp:=s[r]; s[...
by galois_godel
Sun Jul 21, 2002 5:39 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 19240

thank u

thank u
I've solved this problem.

Go to advanced search