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 Robin008 Cpp 0.00s
02 Roki_Moulik_12_EWU Cpp14 0.00s
03 cage Cpp14 0.00s
04 subhashis_cse Cpp 0.00s
05 afridi13 Cpp 0.00s
06 pulak_ict_mbstu Cpp14 0.00s
07 Sujanmcse5BU Cpp 0.00s
08 KM_Muntasir Cpp14 0.00s
09 fncse Cpp 0.00s
10 MamunAmin Cpp 0.00s
11 siam009 Cpp14 0.00s
12 rakib_cou Cpp 0.00s
13 sajjad_h Cpp 0.00s
14 loop_breaker Cpp 0.00s
15 Golam_Rabbi_Nazum C 0.00s
16 kashem1993 Cpp 0.00s
17 mamun02inf Cpp14 0.00s
18 kheya Cpp 0.00s
19 Fahim_ju Cpp 0.00s
20 niloypaul C 0.00s
21 BlurryFace Cpp 0.00s
22 Rama_Kundu Cpp 0.00s
23 Md_Anis_Molla Cpp 0.00s
24 Ramprosad Cpp 0.00s
25 iammarajul Cpp 0.00s
26 armancse4 Cpp 0.00s
27 moniiit Cpp 0.00s
28 m3h3d1 Cpp 0.00s
29 rhprince06 Cpp 0.00s
30 Neon10 Cpp14 0.00s
31 israkul9 Cpp 0.00s
32 HurayraIIT Cpp 0.00s
33 HunterBoy Cpp14 0.00s
34 maf_uu Cpp 0.00s
35 jannat_4 Cpp 0.00s
36 Sayma_COU Cpp 0.00s
37 mash02 Cpp 0.00s
38 Tajmin_Mime Cpp 0.00s
39 Whit3space Cpp 0.00s
40 sabbirsam Cpp 0.00s
41 mahfuj02 Cpp 0.00s
42 JubayerSohel Cpp 0.00s
43 Ovick_Chakroborty Cpp 0.00s
44 Madhab Cpp 0.00s
45 sm119 Cpp 0.00s
46 RRR_777 Cpp 0.00s
47 Masud_Parves Cpp 0.00s
48 SMunira Cpp 0.00s
49 MHR_MMAR Cpp 0.00s
50 shishir09 Cpp14 0.00s

Your feedback is our precious!

Or call +88 02 9853138 for support