Ultra fast mathematician

one test case is wrong. please check my submitted code https://ide.codingblocks.com/s/121809

use endl after every tc