DCP-278: How fast you can solve? Back to All Problems

Beginner Math > Basic Math


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


Problem Setter:

Md.Shafiul Islam

Please login to submit solution to this problem.

Problem Limits

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

Problem Stats

103/221

Solve/Submission

Ranking

# User Language Timing
01 sahedsohel Cpp14 0.00s
02 Nirjhor Cpp14 0.00s
03 mahbubcseju Cpp14 0.00s
04 ssavi Cpp14 0.00s
05 absa1am Cpp14 0.00s
06 subhashis_cse Cpp14 0.00s
07 Jaiaid Cpp14 0.00s
08 Alamgir_Hossain Cpp14 0.00s
09 emrul Cpp14 0.00s
10 tariqiitju Cpp 0.00s
11 7Mahfuz Cpp14 0.00s
12 Nazmul_WUB Cpp14 0.00s
13 Ruman_Hossain Cpp14 0.00s
14 reza_ul Cpp14 0.00s
15 t0whid Cpp14 0.00s
16 uzzal_rahman Cpp14 0.00s
17 Arpan_cse_2k14 Cpp14 0.00s
18 jahid_ict Cpp14 0.00s
19 shishir09 Cpp14 0.00s
20 iamsadee Cpp14 0.00s
21 pulak_ict_mbstu Cpp14 0.00s
22 Anubis Cpp14 0.00s
23 mohibur Cpp 0.00s
24 afzalul Cpp14 0.00s
25 wizard Cpp 0.00s
26 rykamol Cpp14 0.00s
27 CodeMechanix Cpp14 0.00s
28 Dinar Cpp14 0.00s
29 Dragon_Curve Cpp14 0.00s
30 mjtbasif Cpp14 0.00s
31 JUST_positive Cpp14 0.00s
32 smohi Cpp14 0.00s
33 sujan13 Cpp14 0.00s
34 Sleep_Mode Cpp14 0.00s
35 feodorv Cpp14 0.00s
36 snow_man Cpp14 0.00s
37 Mr_KAJOL Cpp14 0.00s
38 AlaminJust Cpp14 0.00s
39 Ansarul_14 Cpp14 0.00s
40 gulzar Cpp14 0.00s
41 junayedmahmud Cpp14 0.00s
42 nahid3334 Cpp14 0.00s
43 SKL12 Cpp14 0.00s
44 Mehedi07 Cpp14 0.00s
45 Momin_just Cpp14 0.00s
46 Reshma Cpp14 0.00s
47 Avenger27 Cpp14 0.00s
48 jayed_al_hasan Cpp14 0.00s
49 HM39 Cpp14 0.00s
50 sadiq_nayeem Cpp14 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support