|
|
back to board6 test Posted by kare61 4 Oct 2012 04:13 #include <stdio.h> #include <conio.h> main() { int n, k, a, b, c, tmp; scanf("%d%d", &n, &k); scanf("%d%d%d", &a, &b, &c); if (k>=1) if(n<=100) if ((a+b+c)<n*k) tmp=0; else tmp=(a+b+c)-n*k;
printf("%d", tmp); getch(); } |
|
|