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

147/327

Solve/Submission

Ranking

# 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 31_ipn Cpp 0.00s
20 Fahim_ju Cpp 0.00s
21 niloypaul C 0.00s
22 BlurryFace Cpp 0.00s
23 Rama_Kundu Cpp 0.00s
24 Md_Anis_Molla Cpp 0.00s
25 Ramprosad Cpp 0.00s
26 iammarajul Cpp 0.00s
27 armancse4 Cpp 0.00s
28 moniiit Cpp 0.00s
29 m3h3d1 Cpp 0.00s
30 rhprince06 Cpp 0.00s
31 Neon10 Cpp14 0.00s
32 israkul9 Cpp 0.00s
33 HurayraIIT Cpp 0.00s
34 HunterBoy Cpp14 0.00s
35 maf_uu Cpp 0.00s
36 jannat_4 Cpp 0.00s
37 Sayma_COU Cpp 0.00s
38 mash02 Cpp 0.00s
39 Tajmin_Mime Cpp 0.00s
40 Whit3space Cpp 0.00s
41 sabbirsam Cpp 0.00s
42 mahfuj02 Cpp 0.00s
43 JubayerSohel Cpp 0.00s
44 Ovick_Chakroborty Cpp 0.00s
45 Madhab Cpp 0.00s
46 sm119 Cpp 0.00s
47 RRR_777 Cpp 0.00s
48 Masud_Parves Cpp 0.00s
49 SMunira Cpp 0.00s
50 MHR_MMAR Cpp 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support