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

109/232

Solve/Submission

Ranking

# 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 CodeMechanix Cpp14 0.00s
20 absa1am Cpp14 0.00s
21 HM39 Cpp14 0.00s
22 emrul Cpp14 0.00s
23 uzzal_rahman Cpp14 0.00s
24 Alamgir_Hossain Cpp14 0.00s
25 gulzar Cpp14 0.00s
26 Avenger27 Cpp14 0.00s
27 sujan13 Cpp14 0.00s
28 Dipon12 Cpp14 0.00s
29 nahid3334 Cpp14 0.00s
30 smohi Cpp14 0.00s
31 t0whid Cpp14 0.00s
32 reza_ul Cpp14 0.00s
33 JUST_positive Cpp14 0.00s
34 mahbubcseju Cpp14 0.00s
35 Arpan_cse_2k14 Cpp14 0.00s
36 Momin_just Cpp14 0.00s
37 Mehedi07 Cpp14 0.00s
38 7Mahfuz Cpp14 0.00s
39 ssavi Cpp14 0.00s
40 Koushik54 Cpp14 0.00s
41 Nazmul_WUB Cpp14 0.00s
42 subhashis_cse Cpp14 0.00s
43 Dinar Cpp14 0.00s
44 jayed_al_hasan Cpp14 0.00s
45 Unique_23 Cpp14 0.00s
46 mjtbasif Cpp14 0.00s
47 kamran_11b Cpp14 0.00s
48 feodorv Cpp14 0.00s
49 pulak_ict_mbstu Cpp14 0.00s
50 shishir09 Cpp14 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support