Submit solution
Points:
100.00 (partial)
Time limit:
1.0s
Memory limit:
512M
Input:
stdin
Output:
stdout
Problem type
Allowed languages
C++, Pascal, Python, Scratch
Comments
mình chưa học công thức này ạ
bài này giải bằng pascal thế nào ạ
//Sử dụng công thức:
if odd(N) then writeln((N+1)((N-3)div 2+1)div 2+(N div 2)(N div 2+1)div 2) else writeln(N((N-2)div 2+1)div 2+(N div 2)(N div 2+1)div 2);
mình chưa học công thức này ạ