Search found 23 matches

by Wei
Sat Apr 30, 2005 3:19 pm
Forum: Volume 101 (10100-10199)
Topic: 10176 - Ocean Deep ! - Make it shallow !!
Replies: 37
Views: 12223

THX~~~ I got an AC~~~
by Wei
Wed Mar 23, 2005 2:37 pm
Forum: Volume 101 (10100-10199)
Topic: 10102 - The path in the colored field
Replies: 34
Views: 13070

10102...

Code: Select all

    Cut after AC~~ ^^
by Wei
Wed Mar 23, 2005 10:41 am
Forum: Volume 2 (200-299)
Topic: 245 - Uncompress
Replies: 40
Views: 9098

245 with lots of WA~

Well~I don't know where the wrong is~~
Could someone help me???

Code: Select all

Cut after AC!!!^^
by Wei
Tue Mar 22, 2005 2:48 pm
Forum: Volume 103 (10300-10399)
Topic: 10342 - Always Late
Replies: 25
Views: 10982

10342 with lots of WA

Well~I don't know where the wrong is~~ Could somebody help me?? Or please give me some input~~ #include <stdio.h> int main(){ int map[102][102],map2[102][102],n,r,i,j,s1,s2,l,k,temp,q,Q1,Q2,count=0; while(scanf("%d %d",&n,&r)!=EOF){ count++; for(i=0;i<n;i++){ for(j=0;j<n;j++){ map[i][j]=99999; map2[...
by Wei
Mon Mar 21, 2005 2:57 am
Forum: Volume 101 (10100-10199)
Topic: 10139 - Factovisors
Replies: 80
Views: 26743

Well~~Thx~~

I finally got AC~~
by Wei
Sun Mar 20, 2005 5:29 pm
Forum: Volume 101 (10100-10199)
Topic: 10139 - Factovisors
Replies: 80
Views: 26743

10139 WA~~

Code: Select all

    Cut after AC
by Wei
Fri Mar 04, 2005 3:55 pm
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 22686

108...With lots of WA~~!!!

I've gotton some WA... But I don't even know where the wrong is... Could someone can help me??? #include <stdio.h> #include <stdlib.h> int main() { int n,a[102][102],i,j,k,l,max; scanf("%d",&n); max=-999; for(i=1;i<=n;i++) for(j=1;j<=n;j++) scanf("%d",&a[i][j]); for(i=1;i<=n;i++) for(j=1;j<=n;j++) a...
by Wei
Sat Feb 26, 2005 1:58 pm
Forum: Volume 101 (10100-10199)
Topic: 10176 - Ocean Deep ! - Make it shallow !!
Replies: 37
Views: 12223

10176

I got a WA in "10176"...and I have tried a lot of test data...but...I still don't know where the wrong was~~ Can someone help??? #include <stdio.h> #include <stdlib.h> int main(void) { unsigned int ans,n; char c; while(scanf("%c",&c)!=EOF) { ans=0; while(c!='#') { n=c-48; n=2*ans+n; ans=n%131071; sc...
by Wei
Wed Feb 02, 2005 3:45 pm
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 36827

Well~~Thx a lot ~~~
I got AC then ~~~
by Wei
Wed Feb 02, 2005 3:10 pm
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 36827

583~~with WA~~~><"

Well~~I don't know where is wrong~~ Can anyone help me???? #include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int n,i,t,m,a[4800],k; k=0; for(i=2;i<=46342;i++) { t=0; n=2; while(n<=sqrt(i)&&t==0) { if(i%n==0) t=1; else n++; } if(t==0) { k++; a[k]=i; } } scanf("%d",&n); while(n...
by Wei
Sun Oct 31, 2004 3:35 pm
Forum: Volume 8 (800-899)
Topic: 834 - Continued Fractions
Replies: 20
Views: 12757

Well~~I know the problem......
Thx for your answering!!!!
by Wei
Sun Oct 31, 2004 3:22 pm
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 17392

10268~~with WA

Well~I got WA on this problem~~ Could anyone help me??? [c]#include <stdio.h> #include <stdlib.h> int main(void) { double a[1000005],b,ans,all; int i,j; char ch; while(scanf("%lf",&b)!=EOF) { i=-1; ch=15; while(ch!=10) { i++; scanf("%lf",&a ); scanf("%c",&ch); } ans=0;all=1; for(j=i-1;j>=0;j--) { if...
by Wei
Sun Oct 31, 2004 12:10 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20163

Well~~Thx a lot~!
I got an AC~~~
by Wei
Fri Oct 29, 2004 1:14 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20163

490 with WA~~~

I don't know where is wrong~~ Could anybody help me??? [c]#include <stdio.h> #include <stdlib.h> int main(void) { int i=-1,j=-1,k,l,max=0; char ch[105][105],a; while(scanf("%c",&a)!=EOF) { i++; j=-1; while(a!=10) { if(a!=9) { j++; ch [j]=a; } scanf("%c",&a); } if(j>max) max=j; } for(l=0;l<=max;l++) ...
by Wei
Thu Oct 28, 2004 2:38 pm
Forum: Volume 8 (800-899)
Topic: 834 - Continued Fractions
Replies: 20
Views: 12757

834...with some questions

Can anybody help me with these problems???
1.If the input is 2 1....What should I do for the output?? [2;]??? or what??
2.Is any negative number in the input????

Go to advanced search