# DCP-535: Tweety String Back to All Problems

Beginner Beginners Problems > Implementation

You are given a string of length **N**, say **S**. Your task is to determine whether the given string is **Tweety** or not. A string is called **Tweety string** if sum of [ascii][1] values of all characters in given string is divisible by **20**. Input: ------ Input starts with an integer **T (1<=T<=20)**, denoting the number of test cases. Each case contains a string **S** of size **N( 1<=N<=100 )**. Output: ------- For each case of input, output the "Yes" or "No" depending upon whether the given string is Tweety or not. Sample Input ------------ 2 ab dd Sample Output ------------- No Yes **Explanation**:<br> ---------- For first string "**ab**":<br> Ascii values for 'a' = 97<br> Ascii values for 'b' = 98<br> So, total summation = 97 + 98 = 195 , which is not divisible by 20. So, its not Tweety string. For second string "**dd**":<br> Ascii values for 'd' = 100<br> So, total summation = 100 + 100 = 200 , which is divisible by 20. So, its Tweety string. [1]: https://en.wikipedia.org/wiki/ASCII

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

# 226/337

Solve/Submission

### Ranking

# User Language Timing
01 abinash Cpp 0.00s
02 atik Cpp 0.00s
03 siamcr7 Cpp 0.00s
04 mahbubcseju Cpp 0.00s
05 akib9ctg Cpp 0.00s
06 alamin39 Cpp14 0.00s
08 Jakir_Hossain_Sust Cpp 0.00s
09 ksohan Cpp 0.00s
10 Zeronfinity Cpp 0.00s
11 nasif2587 Cpp14 0.00s
12 ArifKhanShubro Cpp 0.00s
13 mtmohim Cpp 0.00s
14 anwar_sust Cpp14 0.00s
15 subhashis_cse Cpp 0.00s
16 Zayed Cpp 0.00s
17 Durbin Cpp14 0.00s
18 Nazmul_WUB Cpp 0.00s
19 Trusted_Frustrated Cpp 0.00s
20 rabel Cpp 0.00s
21 Jisancse Cpp 0.00s
22 emrul Cpp 0.00s
23 tariqiitju Cpp 0.00s
24 7Mahfuz Cpp 0.00s
26 Pure_Protea Cpp14 0.00s
27 robin_aust Cpp 0.00s
28 akram Cpp 0.00s
29 Arpan_cse_2k14 Cpp 0.00s
30 saiful130104 Cpp 0.00s
31 maf_uu Cpp 0.00s
32 shishir09 Cpp14 0.00s
33 joy25896 Cpp 0.00s
34 rifat_ikbal007 Cpp 0.00s
36 rayhan50001 Cpp 0.00s
37 simantaturja Cpp 0.00s
38 naeemsifat Cpp 0.00s
39 jahidwarrior Cpp 0.00s
40 pulak_ict_mbstu Cpp14 0.00s
41 belal_mbstu Cpp 0.00s
42 Logic_Hunter Cpp 0.00s
43 non_coder Cpp 0.00s
44 Ashique_Neub Cpp 0.00s
45 Freaky_Weirdo Cpp 0.00s
46 Mr_KAJOL Cpp 0.00s
47 AlaminJust Cpp 0.00s
48 Mahi955 Cpp 0.00s
49 Silent_Warrior Cpp 0.00s
50 neel71 C 0.00s
Feedback