50分 求改错

P1200 [USACO1.1] 你的飞碟在这儿 Your Ride Is Here

#include<iostream> #include<cstdio> #include<cstring> using namespace std; char s1[100],s2[100]; int sum1=1,sum2=1,l1,l2; int main() { freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); scanf("%d",&s1); scanf("%d",&s2); for(int i=0;i<=strlen(s1);i++) sum1*=s1[i]-64; for(int t=0;t<=strlen(s2);t++) sum2*=s2[t]-64; l1=sum1%47; l2=sum2%47; if(l1==l2) cout<<"GO"; else cout<<"STAY"; return 0; }
by dreams @ 2018-02-05 20:47:24


#include<iostream> #include<cstdio> #include<cstring> using namespace std; char s1[100],s2[100]; int sum1=1,sum2=1,l1,l2; int main() { freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); scanf("%d",&s1); scanf("%d",&s2); for(int i=0;i<=strlen(s1);i++) sum1*=s1[i]-64; for(int t=0;t<=strlen(s2);t++) sum2*=s2[t]-64; l1=sum1%47; l2=sum2%47; if(l1==l2) cout<<"GO"; else cout<<"STAY"; return 0; }
by dreams @ 2018-02-05 20:49:27


wocao 发不出
by dreams @ 2018-02-05 20:49:46


你不能用代码模板吗???
by zhaomingrui @ 2018-02-05 20:53:27


我也是这么想的,也只有50分?管理员?
by Linune_Gump @ 2018-02-24 15:54:11


|