Beginner
Beginners Problems > Ad-hoc
One of my best friend's name is **Sharif**. As he is a very special person, we call him **Officer**. One day he told us that he wants to name himself **Officer**. But to do this, he is facing some problems. There are lot of files in his desktop where wrote his name so many times and he wants to replace them all. Now he wants your help to write a program that will replace his name **Sharif** by **Officer**. Can you help him? ***Note: He does not replace word "Sharif" concatenated with other English alphabets.*** **So, He replace word of following format: [ not alphabet ]Sharif[ not alphabet ]** Input: ------ Input starts with an integer **T (1<=20)**, denoting the number of test cases. Each case contains a string with length less than **1000**. The characters in the string may be any ascii characters. Consider that his name always starts with capital letter and others are in small letters. Output: ------- For each case of input, print **“Case X: Y”** (without quotes) where **X** is the number of test case (start from 1). And **Y** will be the string of replaced name Sample Input ------------ 3 My name is Sharif. Sharif is a great mathematician. ijija sad foiasd jasSharif jaksjd f. Sample Output ------------- Case 1: My name is Officer. Case 2: Officer is a great mathematician. Case 3: ijija sad foiasd jasSharif jaksjd f.
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 |
Solve/Submission
# | User | Language | Timing |
---|---|---|---|
01 | imAnik | Cpp14 | 0.00s |
02 | hrOarr | Cpp14 | 0.00s |
03 | Sleep_Mode | Cpp14 | 0.00s |
04 | MI47 | Cpp14 | 0.00s |
05 | shamimjucse | Cpp14 | 0.00s |
06 | nuhu_iu | Cpp14 | 0.00s |
07 | habib_rahman | Cpp14 | 0.00s |
08 | motaleb_ICT | Cpp14 | 0.00s |
09 | lazyfahim | Cpp14 | 0.00s |
10 | susmoys | Cpp14 | 0.00s |
11 | AlaminJust | Cpp14 | 0.00s |
12 | MAD_coder | Cpp14 | 0.00s |
13 | MRITuhin | Cpp14 | 0.00s |
14 | Dragon_Curve | Cpp14 | 0.00s |
15 | shailyroy | Cpp14 | 0.00s |
16 | shahedjamil108 | Cpp14 | 0.00s |
17 | akram | Cpp14 | 0.00s |
18 | subhashis_cse | Cpp14 | 0.00s |
19 | 7Mahfuz | Cpp14 | 0.00s |
20 | anik_JU | Cpp14 | 0.00s |
21 | ArifKhanShubro | Cpp14 | 0.00s |
22 | Najat | Cpp14 | 0.00s |
23 | Trusted_Frustrated | Cpp14 | 0.00s |
24 | saiful130104 | Cpp14 | 0.00s |
25 | nafiamahjabin | Cpp14 | 0.00s |
26 | rajdipsaha | Cpp14 | 0.00s |
27 | Sarwar05 | Cpp14 | 0.00s |
28 | duronto20 | Cpp14 | 0.00s |
29 | Mr_KAJOL | Cpp14 | 0.00s |
30 | maxhasan | Cpp14 | 0.00s |
31 | Khayrul_34 | Cpp14 | 0.00s |
32 | jayed_al_hasan | Cpp14 | 0.00s |
33 | aseem_cu | Cpp14 | 0.00s |
34 | SakibAlamin | Cpp14 | 0.00s |
35 | habibpqt | Cpp14 | 0.00s |
36 | adnanSharif | Cpp14 | 0.00s |
37 | rayhan50001 | Cpp14 | 0.00s |
38 | emrul | Cpp14 | 0.00s |
39 | nahid08 | Cpp14 | 0.00s |
40 | tyro_ | Cpp14 | 0.00s |
41 | rashedul_riad | Cpp14 | 0.00s |
42 | _c_k_r_ | Cpp14 | 0.00s |
43 | mahbub07 | Cpp14 | 0.00s |
44 | sohag_AUST | Cpp14 | 0.00s |
45 | haasib | Cpp14 | 0.00s |
46 | sazal_dev | Cpp14 | 0.00s |
47 | onucsecu | Cpp14 | 0.00s |
48 | Shadman77 | Cpp14 | 0.00s |
49 | tico88612 | Cpp14 | 0.00s |
50 | anowar1112 | Cpp14 | 0.00s |
Copyright © 2015-2016 Dev Skill.