لینکهای مفید برای شرکت در مسابقه:
در طول مسابقه، میتوانید سؤالات خود را از قسمت «سؤال بپرسید» مطرح کنید.
Hearing this conversation, roosters of the sky became angry with the evil professor. They don’t want hens to be crying, so they tried to solve evil professor’s problem, and give the answer to students.
The problem is given two numbers and . calculate then print the least significant digit.
The first line contains single integer — the number of tests.
Each test contains two numbers, and respectively.
For each test, print one integer in one line — the answer to the problem.