## Search found 5 matches

Thu Aug 16, 2007 2:34 am
Forum: Volume 102 (10200-10299)
Topic: 10268 - 498-bis
Replies: 51
Views: 17486

### int & long long

I use int and got AC
But long long results in WA.
Who can explain why?
Fri Aug 03, 2007 2:32 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20542

### wa

I'd made all the test data on the boardcotrect . But I got WA all the time. Here is my code #include<stdio.h> char a[101][101]; int max; int main() { int b[101]; char n; int i=0,j=0; int k,m,p=0; while(scanf("%c",&n)==1) { if(n!='\n') { a [j]=n; j++; } if(n=='\n') { b =j; if(j>max) max=j; i++; j=0; ...
Thu Aug 02, 2007 5:01 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20542

I'd made all the test data cotrect on the board. But I got WA all the time. Here is my code #include<stdio.h> char a[101][101]; int max; int main() { int b[101]; char n; int i=0,j=0; int k,m,p=0; while(scanf("%c",&n)==1) { if(n!='\n') { a [j]=n; j++; } if(n=='\n') { b =j; if(j>max) max=j; i++; j=0; ...
Sun Jul 29, 2007 8:45 am
Forum: Volume 3 (300-399)
Topic: 355 - The Bases Are Loaded
Replies: 74
Views: 22895

### WA

I'd made all the test cases correct but i still got WA why? The following are my code #include<iostream> #include<string> using namespace std; long long power(long a,long b); int main() { long long m,n; long long k=0; char str[200]; long long rev[1000]; long long sum=0; bool f=0; while(cin >> m >> n...
Sun Jul 08, 2007 12:34 pm
Forum: Volume 1 (100-199)
Topic: 191 - Intersection
Replies: 103
Views: 18483

### 191 WHY WA = =

WHY WA #include<iostream> using namespace std; int main() { int num; bool intersect = false; int t1,t2; int xstart,ystart,xend,yend,xleft,ytop,xright,ybottom; int a,b,c,d; cin >> num; while(cin>>xstart>>ystart>>xend>>yend>>xleft>>ytop>>xright>>ybottom) { a = xright; b = ytop; c = xleft; d = ybottom;...