Masala #G6TILPQQ6J
Modul
Sizga bir son beriladi. Uning modulini topuvchi dastur tuzing.
Masalani faqat arifmetik amallar yordamida amalga oshirish talab etiladi.
Har qanday qo'shimcha kutubxona va built-in funksiyalardan foydalanish taqiqlanadi.
Checkerni chetlab o'tgan yechimlar contestdan keyin aniqlanib bekor qilinishi mumkin.
Kirish faylida a butun son beriladi. \(10^{-9} \le a \le 10^{9}\)
Chiqish faylida sonning modulini chop eting.
# | input.txt | output.txt |
---|---|---|
1 |
1 |
1 |
2 |
-1 |
1 |
3 |
0 |
0 |
Bu masalani yechish davomida faqat arifmetik amallar (+, -, *, /, %) dan foydalanish mumkin.
Taqiqlangan kalit so'zlar:
python: [], {}, list, import, __import__, abs, min, max, eval, exec, list, lambda, def, class, yield, return, open, if, else, str,, zfill, format
cpp: “iostream” dan boshqa kutubxonadan foydalanish, [], if, else, ?, abs, min, max, fabs, import, new , delete, malloc, free, list, vector, map, set…
Taqqoslash operatorlari ham taqiqlanadi:
>, < , ≥, ≤, ≠, ==, !, ?, :