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 0s 5284KB
stdin
Standard input is empty
stdout
-706985869644940736