DCP-59: Permutation Back to All Problems

Easy Math > Counting


You are given a string. You have to answer how many permutations are possible of that string. Suppose the string is "aab", then the 3 possible permutations are "aab", "aba" and "baa". Input: ------ Input starts with an integer **T (1<=100000)**, denoting the number of test cases. Each of next T lines describes a new test case. Each case contains a string of lower case letters not more than 20 characters. Output: ------- You should output T lines each of which indicates the answer for the corresponding query. Check the sample output for clarification. Sample Input ------------ 2 ab aab Sample Output ------------- 2 3


Problem Setter:

Feroz Ahmmed

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

Problem Stats

100/289

Solve/Submission

Ranking

# User Language Timing
01 anik_JU Cpp14 0.04s
02 afzalul Cpp 0.05s
03 tariqiitju Cpp14 0.06s
04 MAHRahat Cpp14 0.07s
05 Indro_BU Cpp14 0.07s
06 feodorv C 0.07s
07 mir003 Cpp14 0.07s
08 Morass Cpp14 0.08s
09 smriad Cpp14 0.13s
10 sadia2427 Cpp14 0.14s
11 Core_i14 Cpp14 0.14s
12 emrul Cpp14 0.15s
13 Rakib05 Cpp 0.15s
14 a_rahman Cpp14 0.17s
15 onucsecu Cpp14 0.19s
16 nazmul_bzs Cpp14 0.20s
17 haasib Cpp14 0.21s
18 pulak_ict_mbstu Cpp14 0.23s
19 Ansarul_14 Cpp14 0.26s
20 mrinmoi Cpp 0.27s
21 seyedssz Cpp14 0.30s
22 waqqas Cpp14 0.32s
23 ammasum Cpp14 0.36s
24 lolcoder Cpp14 0.38s
25 Masum_ice Cpp14 0.50s
26 moshiur_cse15 Cpp14 0.61s
27 rayhan50001 Cpp14 0.70s
28 lightlessShadO Cpp14 0.72s
29 7Mahfuz Cpp14 0.74s
30 Logic_Hunter Cpp 0.75s
31 subhashis_cse Cpp14 0.80s
32 duronto20 Cpp14 0.81s
33 mahbub07 Cpp14 0.82s
34 jualahmed Cpp14 0.84s
35 Dragon_162 Cpp14 0.90s
36 rana_cse Cpp14 0.98s
37 RandyWaterhouse Python3 1.02s
38 mhsjaber CSharp 1.03s
39 jabir_hstu Cpp14 1.13s
40 ImagineWarrior Cpp14 1.22s
41 froghramar Cpp14 1.36s
42 ahqmrf Cpp14 1.38s
43 Zayed Cpp14 1.58s
44 imunir Cpp14 1.60s
45 Mahir Cpp14 1.60s
46 Pabon_SEC Cpp14 1.61s
47 smjlord068 Cpp14 1.62s
48 faisalxn Cpp14 1.63s
49 arsho Cpp14 1.68s
50 Ihtiaz Cpp14 1.70s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support