#include<stdio.h>
#include<math.h>
int main(){
int a;
unsigned long long b,c;
scanf("%d%llu%llu",&a,&b,&c);
printf("%d\n",(b-a)/(c-1));
printf("%llu",c*(a+b)/2);
return 0;
}
标签:return,10.27,int,llu,long,printf,include From: https://blog.51cto.com/u_15758636/5801961