DCP-13: Banglawash Back to All Problems

Beginner Beginners Problems > Ad-hoc


When Bangladesh cricket team whitewashes any other team then we call it a Banglawash and this is so popular term in our country. Recently Bangladesh cricket team whitewashed Pakistan cricket team in ODI series. To congratulate our Bangladesh cricket team we have prepared this problem. Now in the test series we are looking forward for same type of Banglawash and we want to bring placards in the stadium to support our team after another Banglawash. But in this problem we want you to do an easy calculation to measure the result of the Test series. The test series will have two test matches. Consider the test matches will be 5 day match without any rain intervention. Four integers will indicate the runs of the two innings of both sides. First two integers will indicate the runs of two innings of Bangladesh team and last two integers will indicate the runs of two innings of Pakistan team. For two test matches you have to decide whether Bangladesh team won the both test or not. If Bangladesh win both test match then you have to print “Banglawash”. Input: ------ Input starts with an integer **T (≤ 30)**, denoting the number of test cases. Each test case will have two lines. First line indicates the scores of first test match and second line indicates the scores of second test match. Each line will contain four integers separated by space and among these four integers the first two indicates the scores of Bangladesh team and the last two integers indicate the scores of Pakistan team. All the score values will be in range **>=0 and <= 999** Output: ------- For each test case, print either “Banglawash” (without quotes) or “Miss” (without quotes). If Bangladesh team wins both test matches then print “Banglawash” otherwise print “Miss”. Sample Input ------------ 3 120 400 400 100 300 200 200 200 0 0 0 0 999 999 999 999 277 521 326 187 199 231 580 233 Sample Output ------------- Banglawash Miss Miss


Problem Setter:

MD. Jalal Uddin

Please login to submit solution to this problem.

Problem Limits

Language Time Limit (seconds)
C 1.00
C++ 1.00
C++14 1.00
C# 3.00
Go 3.00
Java 3.00
JavaScript 3.00
Objective-C 3.00
Perl 3.00
PHP 3.00
Python 3.00
Python3 3.00
Ruby 3.00
VB.Net 3.00

Problem Stats

464/861

Solve/Submission

Ranking

# User Language Timing
01 jualahmed Cpp14 0.00s
02 abufarhad Cpp14 0.00s
03 pulak_ict_mbstu Cpp14 0.00s
04 MarufAhmed Cpp14 0.00s
05 Sharif_42 Cpp14 0.00s
06 joy25896 Cpp14 0.00s
07 atmfaisal Cpp14 0.00s
08 haasib Cpp14 0.00s
09 Aman_khan Cpp14 0.00s
10 absa1am Cpp14 0.00s
11 return_SS Cpp14 0.00s
12 ronok_cse Cpp14 0.00s
13 concentrate Cpp14 0.00s
14 rafsandevs Cpp14 0.00s
15 Ashish972 Cpp14 0.00s
16 ash12 Cpp14 0.00s
17 Shyamol_Paul Cpp14 0.00s
18 Shaon2710 Cpp14 0.00s
19 seyedssz Cpp14 0.00s
20 kfahim110 Cpp14 0.00s
21 Mubeen Cpp14 0.00s
22 shayekh01 Cpp14 0.00s
23 Light_Yagami407 Cpp14 0.00s
24 JubayerSohel Cpp14 0.00s
25 mahamud_BU Cpp14 0.00s
26 MAHRahat Cpp14 0.00s
27 gulzar Cpp14 0.00s
28 golapraj Cpp14 0.00s
29 gazi93 Cpp14 0.00s
30 lazyfahim Cpp14 0.00s
31 Amit_KJ Cpp14 0.00s
32 rabib Cpp14 0.00s
33 Mehedi07 Cpp14 0.00s
34 iftekher2283 Cpp14 0.00s
35 Kira Cpp14 0.00s
36 ashhaq12345 Cpp14 0.00s
37 ammasum Cpp14 0.00s
38 terminator_c Cpp14 0.00s
39 biswajitdas Cpp14 0.00s
40 naim_ju Cpp14 0.00s
41 Iqbal1013 Cpp14 0.00s
42 tssovi Cpp14 0.00s
43 Mr_KAJOL_JUST Cpp14 0.00s
44 shawon100 Cpp14 0.00s
45 mustakim Cpp14 0.00s
46 Avijeet Cpp14 0.00s
47 sadia2427 Cpp14 0.00s
48 nurul_islam Cpp14 0.00s
49 zunayeds Cpp14 0.00s
50 ibrahimnsu15 Cpp14 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support