【文件属性】:
文件名称:超级无敌的C程序,简直他妈的无敌了
文件大小:581B
文件格式:C
更新时间:2011-09-30 08:20:00
程序
可以用来干任何事情,记住:是任何事情
/*
ID:
LANG: C
TASK: ride
*/
#include
#include
main () {
FILE *fin = fopen ("ride.in", "r");
FILE *fout = fopen ("ride.out", "w");
char a[6], b[6];
int i,group = 1, comet = 1;
fscanf (fin, "%s", a);
fscanf (fin, "%s", b);
for(i = 0 ; i < strlen(a) ; i++)
group = (group*(a[i]-'A'+1))%47;
for(i = 0 ; i < strlen(b) ; i++)
comet = (comet*(b[i]-'A'+1))%47;
if(comet==group)
fprintf (fout, "%s\n", "GO");
else
fprintf (fout, "%s\n", "STAY");
exit (0);
}