Submission #7782

#TimeUsernameProblemLanguageResultExecution timeMemory
7782gs14004다각형 (GA5_polygon)C++98
100 / 100
0 ms1088 KiB
#include <cstdio> long long f(long long p){ if(p<4) return 0; p >>= 1; long long res = p*(p+1)/2; return res-1; } int main(){ long long s,e; scanf("%lld %lld",&s,&e); printf("%lld",2*(f(e)-f(s-1))); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...