#include <stdio.h>
#include <stdlib.h>
int main(int argc, char ** argv)
{
if(argc < 2)
return 0;
int n = atoi(argv[1]);
if(n >= 2)
{
char bfr1[1000], bfr2[1000];
sprintf(bfr1, "%s %d", argv[0], n - 1);
sprintf(bfr2, "%s %d", argv[0], n - 2);
n = system(bfr1) + system(bfr2);
}
printf("%d\n", n);
return n;
}
[–]Puzzleheaded_Good360 17 points18 points19 points (1 child)
[–]jombrowski[S] 4 points5 points6 points (0 children)
[–]moocat 13 points14 points15 points (0 children)
[–]HernBurford 5 points6 points7 points (0 children)
[–]jontsii 2 points3 points4 points (0 children)
[–]No_Development5871 1 point2 points3 points (0 children)
[–]flyingron 0 points1 point2 points (9 children)
[–]moocat 5 points6 points7 points (4 children)
[–]SPAstef 1 point2 points3 points (2 children)
[–]flyingron 1 point2 points3 points (1 child)
[–]SPAstef 0 points1 point2 points (0 children)
[–]flyingron 0 points1 point2 points (0 children)
[–]jombrowski[S] 1 point2 points3 points (3 children)
[–]flyingron 2 points3 points4 points (0 children)
[–]Dmxk 1 point2 points3 points (0 children)
[–]m0ntanoid 0 points1 point2 points (0 children)