Nafees is new to competetive programming.He opens account in different online judges as "gutibaaj".He notices that one of the online judges provide "compare user statistics" feature. Suppose id of one user is "A" and id of another user is "B".Now if you give input A-B ,"compare user statistics" will tell you how many problems are there that are solved by A but not by B. Now,you want find the opposite of what "compare user statistics" offers.You know value of A ,B and A-B .**Find how many problems are there that are solved by B but not by A.** Input: ------ Input starts with an integer T (1<=10), denoting the number of test cases. Each case contains three integers, denoting the number A, B, A-B.Each of these integers will be in the range of 32 bit signed integer number. Output: ------- For each case of input, output the required result. Sample Input ------------ 3 5 5 0 2 1 1 1 1 1 Sample Output ------------- 0 0 1

Md.Shafiul Islam

Language |
Time Limit (seconds) |

C | 0.50 |

C++ | 0.50 |

C++14 | 0.50 |

C# | 1.00 |

Go | 1.00 |

Java | 1.00 |

JavaScript | 1.00 |

Objective-C | 1.00 |

Perl | 1.00 |

PHP | 1.00 |

Python | 1.00 |

Python3 | 1.00 |

Ruby | 1.00 |

VB.Net | 1.00 |

Solve/Submission

# | User | Language | Timing |
---|---|---|---|

01 | sahedsohel | Cpp14 | 0.00s |

02 | iamsadee | Cpp14 | 0.00s |

03 | _c_k_r_ | Cpp14 | 0.00s |

04 | AlaminJust | Cpp14 | 0.00s |

05 | anparvez10 | Cpp14 | 0.00s |

06 | jahid_ict | Cpp14 | 0.00s |

07 | Dragon_Curve | Cpp14 | 0.00s |

08 | Anubis | Cpp14 | 0.00s |

09 | snow_man | Cpp14 | 0.00s |

10 | Sleep_Mode | Cpp14 | 0.00s |

11 | Mr_KAJOL | Cpp14 | 0.00s |

12 | kzvd4729 | Cpp14 | 0.00s |

13 | sadiq_nayeem | Cpp14 | 0.00s |

14 | Nirjhor | Cpp14 | 0.00s |

15 | SKL12 | Cpp14 | 0.00s |

16 | JubayerSohel | Cpp14 | 0.00s |

17 | Jaiaid | Cpp14 | 0.00s |

18 | Reshma | Cpp14 | 0.00s |

19 | uzzal_rahman | Cpp14 | 0.00s |

20 | emrul | Cpp14 | 0.00s |

21 | HM39 | Cpp14 | 0.00s |

22 | absa1am | Cpp14 | 0.00s |

23 | CodeMechanix | Cpp14 | 0.00s |

24 | Alamgir_Hossain | Cpp14 | 0.00s |

25 | gulzar | Cpp14 | 0.00s |

26 | sujan13 | Cpp14 | 0.00s |

27 | smohi | Cpp14 | 0.00s |

28 | Avenger27 | Cpp14 | 0.00s |

29 | t0whid | Cpp14 | 0.00s |

30 | reza_ul | Cpp14 | 0.00s |

31 | JUST_positive | Cpp14 | 0.00s |

32 | mahbubcseju | Cpp14 | 0.00s |

33 | Arpan_cse_2k14 | Cpp14 | 0.00s |

34 | Unique_23 | Cpp14 | 0.00s |

35 | kamran_11b | Cpp14 | 0.00s |

36 | SakibAlamin | Cpp14 | 0.00s |

37 | Momin_just | Cpp14 | 0.00s |

38 | Mehedi07 | Cpp14 | 0.00s |

39 | 7Mahfuz | Cpp14 | 0.00s |

40 | ssavi | Cpp14 | 0.00s |

41 | Koushik54 | Cpp14 | 0.00s |

42 | Nazmul0092 | Cpp14 | 0.00s |

43 | subhashis_cse | Cpp14 | 0.00s |

44 | Dinar | Cpp14 | 0.00s |

45 | Dipon12 | Cpp14 | 0.00s |

46 | nahid3334 | Cpp14 | 0.00s |

47 | jayed_al_hasan | Cpp14 | 0.00s |

48 | rykamol | Cpp14 | 0.00s |

49 | junayedmahmud | Cpp14 | 0.00s |

50 | Ruman_Hossain | Cpp14 | 0.00s |

Copyright © 2015-2016 Dev Skill.

Feedback
#### Your feedback is our precious!

## Thank you for providing feedback! Our developers will be happy :)

## Sorry there was a problem when submitting the feedback. Please try again. :(