I alway got WA
I need more sample input
Thx!!!
#include <stdio.h>
#include <stdlib.h>
int main()
{
char c[3];
int i,time[3],sh,sm,eh,em,tmp,tmp2,count,p1,p2;
short line[1442];
double total,calcu,table[5][3]={{0.10f,0.06f,0.02f},
{0.25f,0.15f,0.05f},
{0.53f,0.33f,0.13f},
{0.87f,0.47f,0 ...
Search found 3 matches
- Wed May 03, 2006 9:36 pm
- Forum: Volume 1 (100-199)
- Topic: 145 - Gondwanaland Telecom
- Replies: 62
- Views: 22480
- Sat Mar 11, 2006 1:43 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108923
- Thu Aug 25, 2005 2:30 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101941
10035 WA plz help me...
I have tried all the test data of ACM board
but it's still got WA....why??
#include <stdio.h>
#include <stdlib.h>
int main(){
char a[11],b[11];
int i,j,k,m,n;
while(1){
scanf("%s %s",a,b);
for(m=0;a[m]!='\0';m++);
for(n=0;b[n]!='\0';n++);
for(i=0,j=m-1;i<j;a[i]^=a[j]^=a[i]^=a[j],i++,j ...
but it's still got WA....why??
#include <stdio.h>
#include <stdlib.h>
int main(){
char a[11],b[11];
int i,j,k,m,n;
while(1){
scanf("%s %s",a,b);
for(m=0;a[m]!='\0';m++);
for(n=0;b[n]!='\0';n++);
for(i=0,j=m-1;i<j;a[i]^=a[j]^=a[i]^=a[j],i++,j ...