All pastes #625191 Raw Edit

Something

public c v1 · immutable
·published 2007-07-18 20:18 UTC
rendered paste body
/*ID: djthyra1LANG: CTASK: ride*/#include <stdio.h>int main(){	FILE *fin  = fopen ("ride.in", "r");	FILE *fout = fopen ("ride.out", "w");	char ufo[7], comet[7];	int i, uf=1, com=1;	fscanf(fin, "%s\n%s\n", &ufo, &comet);	for(i=0;i<sizeof(ufo)-1;i++) uf = uf * ((int) ufo[i]-64);	for(i=0;i<sizeof(comet)-1;i++) com = com * ((int) comet[i]-64);	if(uf%47 == com%47) fprintf(fout, "GO\n");// printf("GO");	else fprintf(fout, "STAY\n");// printf("STAY");		return 0;}