Masala #1093
Kechikkan poyezd
RoboBoyning poyezdi soat \(t\) da ketishi kerak edi, ammo u \(T\) soatga kechikdi. Uni poyezdi nechchada ketishini topuvchi dastur tuzing.
Kirish faylida 2 ta qatorda mos ravishda poyezd ketishi kerak bo'lgan vatq \(t(0 \le t \le 23)\). ikkinchi qatorda esa poyezd kechikishi soatlarda beriladi. \(T(1\le T \le 1000)\)
Chiqish faylida poyezdning kechikib chiqish vaqtini chop eting.
# | input.txt | output.txt |
---|---|---|
1 |
15 5 |
20 |
2 |
13 11 |
0 |