摘要:
#include<iostream>#include<cstdlib>#include<cstring>#include<fstream>using namespace std;short n;int main(){ ifstream fin("gift1.in"); fin>>n; string name[10]; short fn[10]; short given[10]; short gotten[10]={0};//这个必须初始化 short i; for (i=0; i<n; fin>> 阅读全文
posted @ 2011-05-03 12:47
riverphoenix
阅读(242)
评论(1)
推荐(0)
摘要:
#include<fstream>using namespace std;ifstream fin("ride.in");ofstream fout("ride.out");int main(){ int a[2]={1,1}; char s[7]; for(int i=0;i<=1;i++) { fin>>s; for(int j=0;s[j]!='\0';j++) { a[i]*=s[j]-'@'; } } if((a[0]-a[1])%47) fout<<"STAY 阅读全文
posted @ 2011-05-03 09:02
riverphoenix
阅读(702)
评论(0)
推荐(0)
浙公网安备 33010602011771号