Masala #TX8HBJ8XNL
Xotira 32 MB
Vaqt 1000 ms
14
For #2
Ketma ketlikni \(N^x\) gacha hisoblang.
\(1^2+2^1+3^4+4^3+5^6+6^5...N^x\)
Agar \(N\) soni ikkiga karrali bo'lsa \(x=N-1\) aks holda \(x=N+1\)
Kiruvchi ma'lumotlar:
Yagona qatorda bitta butun son \(N\) soni kiritiladi. Bunda \((1≤N≤10^9)\).
Chiquvchi ma'lumotlar:
Chiqish faylida ketma ketlik yig'indisini chop eting.
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
3 |
84 |