DCP-585: Story for Statement Back to All Problems

Beginner String > Basic

I am running out of a story for this problem. I am seeking help from you guys. Basically, I will give you a bunch of characters. You need to build a story using those characters. The only condition is the word “**programming**” or “**coding**” or both should be present in that story. The order of characters does not matter here. Is it possible to create such a story? Let me know by replying **Yes** or **No**. Input: ------ Input starts with an integer **T** denoting the number test cases. Next T lines contain a string **S** of lowercase English alphabets. Constraints: ------- 1 <= T <= 100 1 <= length of S <= 100 Output: ------- For each of the **T** lines, you need to print “**Yes**” if it is possible to write story maintaining the conditions above. Otherwise, print “**No**”. See the samples for better understanding. Sample Input ------------ 2 apdrfohghraumimqing apdrfohohraumimqing Sample Output ------------- Yes No

Problem Setter:

Avik Sarkar

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# 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




# User Language Timing
01 shawon100 Cpp 0.00s
02 CLown1331 Cpp 0.00s
03 subhashis_cse Cpp 0.00s
04 loop_breaker Cpp 0.00s
05 Nazmul_WUB Cpp 0.00s
06 Roki_Moulik_12_EWU Cpp14 0.00s
07 tariqiitju Cpp14 0.00s
08 kashem1993 Cpp 0.00s
09 MamunAmin Cpp 0.00s
10 cage Cpp14 0.00s
11 maf_uu Cpp 0.00s
12 shishir09 Cpp14 0.00s
13 sajjad_h Cpp 0.00s
14 The_Viper Cpp 0.00s
15 BlurryFace Cpp 0.00s
16 Ramprosad Cpp 0.00s
17 feodorv C 0.00s
18 shahidullah_anik Cpp 0.00s
19 rakibislam1996 Cpp14 0.00s
20 JubayerSohel Cpp 0.00s
21 fncse Cpp 0.00s
22 Sayma_COU Cpp 0.00s
23 pritom98 Cpp 0.00s
24 Jamil Cpp 0.00s
25 siam009 Cpp14 0.00s
26 kheya Cpp 0.00s
27 israkul9 Cpp 0.00s
28 MobileBladder Cpp14 0.00s
29 iammarajul Cpp 0.00s
30 pulak_ict_mbstu Cpp14 0.00s
31 Bruteforcekid Cpp14 0.00s
32 mamun02inf Cpp14 0.00s
33 Whit3space Cpp 0.00s
34 emoncse Cpp 0.00s
35 rakib_cou Cpp 0.00s
36 wajiul Cpp 0.00s
37 KM_Muntasir Cpp14 0.00s
38 mash02 Cpp 0.00s
39 jannat_4 Cpp 0.00s
40 Madhab Cpp 0.00s
41 sabbirsam Cpp 0.00s
42 niloypaul C 0.00s
43 tshaon C 0.00s
44 afridi13 Cpp 0.00s
45 rhprince06 Cpp 0.00s
46 Shuhin C 0.00s
47 HurayraIIT Cpp 0.00s
48 sabbir123 Cpp14 0.00s
49 rfnamd_ju Cpp 0.00s
50 MHR_MMAR Cpp 0.00s

Your feedback is our precious!

Or call +88 02 9853138 for support