DCP-194: Number Formatting Back to All Problems

Beginner Beginners Problems > Ad-hoc


In a bulk SMS platform you can send hundreds and thousands of SMS in a very easy and cost effective way. There are many such SMS service provider around the world. One common task these SMS service providers have to do is to format the mobile numbers and figure out in which mobile operator these numbers belongs to, so that the SMS can be delivered through proper channel and can be applied proper pricing. In this problem you have to carry out a similar real life task. We will consider the follow mobile operators of Bangladesh (Operator code number is given alongside). If the mobile number do not contain country code (i.e. 88) then you have to add the country code. You also have to maintain the order the number comes in input. Citycell - 011 Teletalk - 015 Airtel - 016 Grameenphone - 017 Robi - 018 Banglalink - 019 Input: ------ Input starts with an integer **T (1<=50)**, denoting the number of test cases. Each case contains a mobile number **N** in a line with or without country code. Output: ------- For each case of input, output the formatted mobile number by adding country code if necessary and then print the mobile operator name separated by a space. Please check sample input/output for better understanding of format. Sample Input ------------ 3 01672994777 8801794061678 8801159213388 Sample Output ------------- 8801672994777 Airtel 8801794061678 Grameenphone 8801159213388 Citycell


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# 2.00
Go 2.00
Java 2.00
JavaScript 2.00
Objective-C 2.00
Perl 2.00
PHP 2.00
Python 2.00
Python3 2.00
Ruby 2.00
VB.Net 2.00

Problem Stats

386/723

Solve/Submission

Ranking

# User Language Timing
01 sajib_kumar_biswas Cpp 0.00s
02 ZahidI Cpp 0.00s
03 junaidpathan Cpp14 0.00s
04 eshaaan C 0.00s
05 Ominus47 Cpp 0.00s
06 Shajib Cpp14 0.00s
07 sojeeeeb Cpp 0.00s
08 SaqifHaque Cpp 0.00s
09 amit Cpp 0.00s
10 anikatahsin Cpp14 0.00s
11 The_Viper Cpp14 0.00s
12 sohag_AUST Cpp14 0.00s
13 motaleb_ICT Cpp14 0.00s
14 Aman_khan Cpp14 0.00s
15 ShahiPapon Cpp14 0.00s
16 Najat Cpp14 0.00s
17 showmic Cpp14 0.00s
18 omaer1510033 Cpp14 0.00s
19 Dinar Cpp14 0.00s
20 Rahmatullah Cpp14 0.00s
21 absa1am Cpp14 0.00s
22 md_muntaz Cpp14 0.00s
23 ash12 Cpp14 0.00s
24 iftekher2283 Cpp14 0.00s
25 jayed_al_hasan Cpp14 0.00s
26 Mehedi07 Cpp14 0.00s
27 terminator_c Cpp14 0.00s
28 maxhasan Cpp14 0.00s
29 gulzar Cpp14 0.00s
30 SkSaber Cpp14 0.00s
31 sadia2427 Cpp14 0.00s
32 Logic_Hunter Cpp14 0.00s
33 JubayerSohel Cpp14 0.00s
34 Nazmul0092 Cpp14 0.00s
35 Alice_2 Cpp14 0.00s
36 deder Cpp14 0.00s
37 HM39 Cpp14 0.00s
38 Khayrul_34 Cpp14 0.00s
39 gsshanto Cpp14 0.00s
40 Core_i14 Cpp14 0.00s
41 hmtanbir Cpp14 0.00s
42 Mr_KAJOL Cpp14 0.00s
43 deptapaul Cpp14 0.00s
44 smriad Cpp14 0.00s
45 SakibAlamin Cpp14 0.00s
46 Koushik54 Cpp14 0.00s
47 Nusrat_cse16 Cpp14 0.00s
48 mrinmoi Cpp14 0.00s
49 Anika_Bushra Cpp14 0.00s
50 junayedmahmud Cpp14 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support