int main(){ int x = readNumber(); int y = readNumber(); int z = add(x,y); writeAnswer(z); }
void mmTestSet(char *setName, int mapSize, int cloneSize, int cloneCount, double finRatio, double endRatio, double repRatio, double noiseRatio) /* mmTestSet - Make test set for map-mender.. */ { char fileName[512], answerName[512]; int *repMap; struct clone *clones, *cloneList = NULL; FILE *f; //srand( (unsigned)time( NULL ) ); srand( 1235 ); sprintf(fileName, "%s.repMap", setName); repMap = makeRepMap(mapSize, repRatio, fileName); printf("Made repeat map of %d kb in %s\n", mapSize, fileName); /* Make clone list. */ sprintf(fileName, "%s.clones", setName); clones = makeClones(mapSize, cloneSize, cloneCount, finRatio, endRatio, repMap, fileName); cloneList = cloneListFromArray(clones, cloneCount); printf("Made %d clones in %s\n", cloneCount, fileName); /* Make up overlap info. */ sprintf(fileName, "%s.overlap", setName); makeOverlaps(repMap, cloneList, fileName, noiseRatio); /* Write out answer. */ slSort(&cloneList, cloneCmpStart); sprintf(fileName, "%s.answer", setName); writeAnswer(cloneList, fileName); }
int main() //does the addition { int x = readNumber(); int y = readNumber(); writeAnswer(x + y); return 0; }
int main() { int x = readNumber(); int y = readNumber(); int z = x + y; writeAnswer(z); return 0; }
int main() { int a = readNumber(); int b = readNumber(); int sum = a + b; writeAnswer(sum); return 0; }
int main() { int x = readNumber(); int y = readNumber(); writeAnswer(x + y); }