Editorial for Айырма модулі


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Hint 1.

Модуль — бұл санның таңбасына қарамастан оның оң мәні.

Hint 2.

Алдымен \(a - b\) айырмасын есептеп көріңіз. Нәтиже теріс болуы мүмкін.

Hint 3.

Егер нәтиже теріс болса, оның таңбасын өзгертіңіз, әйтпесе сол күйінде қалдырыңыз.