Görev
Verilen iki pozitif tamsayı (divid e nd ve divis o r) hesaplamak q uotient ve R emainder.
Normalde e = o*q+rnerede q*o<=eve olarak hesaplanır 0<=r<o.
Bu meydan okuma için hala e = o*q+rama q*o>=eve -o<r<=0.
Örneğin e=20ve o=3normalde 20/3 -> 20=3*6+2, 18<=20ve 0<=2<3. İşte 20/3 -> 20=3*7-1nerede olacak 21>=20ve-3<-1<=0
Test Durumları
Input -> Output
20, 3 -> 7, -1
10, 5 -> 2, 0
7, 20 -> 1, -13
100, 13 -> 8, -4
Ele almanıza gerek yok o=0.
riçin gerçekliğin reddi olarak çıktı almak kabul edilebilir rmi? ( -1→ 1/ 255)