fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. long long l,r;
  5. scanf("%lld %lld",&l,&r);
  6. printf("%lld", (r-l)/2*(r+l)/2);
  7. }
  8.  
Success #stdin #stdout 0.01s 5312KB
stdin
1 7
stdout
12