Search found 2 matches

by Miranda
Fri Jun 27, 2003 5:38 am
Forum: Volume 4 (400-499)
Topic: 498 - Polly the Polynomial
Replies: 73
Views: 21997

I don't know why my code got WA,can anyone kindly point out what is wrong here?[/b][/b]
by Miranda
Fri Jun 27, 2003 5:37 am
Forum: Volume 4 (400-499)
Topic: 498 - Polly the Polynomial
Replies: 73
Views: 21997

498---polly the polynomial

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

int main() {
string s1,s2;
int i,j1,j2,sign,result;
int c[10000],x[10000];
while(getline(cin,s1)) {
getline(cin,s2);
if(s2==""||(s1==""))
break;
i=0;j1=0;j2=0;
for(int k=0;k<10000;k++) {
c[k]=0;
x[k]=0;
}
sign=1;
s1=s1 ...

Go to advanced search