Masala #ZBSRTOFUS3
Yig'indi
Sizga \(n\) soni beriladi siz \([n^2 ; (n+1)^2]\) to'plam yig'indisini topishingiz kerak.
Masalan \(n=5\) holat uchun siz \(5^2\) yani 25 dan \((5+1)^2\) yani 36 gacha sonlar yig'indisini hisoblashingiz kerak.
Muallif: Shohruzbek Rajabov
Kiruvchi ma'lumotlar:
Yagona qatorda \(n\) soni (\(1\)≤\(n\)≤\(10^9\))
Chiquvchi ma'lumotlar:
Masala javobini chop eting
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
5 |
366 |