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

Feroz Ahmmed

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 |

Solve/Submission

# | 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 | mir003 | Cpp14 | 0.07s |

07 | smriad | Cpp14 | 0.13s |

08 | Core_i14 | Cpp14 | 0.14s |

09 | sadia2427 | Cpp14 | 0.14s |

10 | emrul | Cpp14 | 0.15s |

11 | a_rahman | Cpp14 | 0.17s |

12 | onucsecu | Cpp14 | 0.19s |

13 | nazmul_bzs | Cpp14 | 0.20s |

14 | haasib | Cpp14 | 0.21s |

15 | pulak_ict_mbstu | Cpp14 | 0.23s |

16 | Ansarul_14 | Cpp14 | 0.26s |

17 | mrinmoi | Cpp | 0.27s |

18 | seyedssz | Cpp14 | 0.30s |

19 | waqqas | Cpp14 | 0.32s |

20 | ammasum | Cpp14 | 0.36s |

21 | lolcoder | Cpp14 | 0.38s |

22 | Masum_ice | Cpp14 | 0.50s |

23 | moshiur_cse15 | Cpp14 | 0.61s |

24 | rayhan50001 | Cpp14 | 0.70s |

25 | lightlessShadO | Cpp14 | 0.72s |

26 | 7Mahfuz | Cpp14 | 0.74s |

27 | Logic_Hunter | Cpp | 0.75s |

28 | subhashis_cse | Cpp14 | 0.80s |

29 | duronto20 | Cpp14 | 0.81s |

30 | mahbub07 | Cpp14 | 0.82s |

31 | jualahmed | Cpp14 | 0.84s |

32 | Dragon_162 | Cpp14 | 0.90s |

33 | rana_cse | Cpp14 | 0.98s |

34 | mhsjaber | CSharp | 1.03s |

35 | jabir_hstu | Cpp14 | 1.13s |

36 | ImagineWarrior | Cpp14 | 1.22s |

37 | froghramar | Cpp14 | 1.36s |

38 | ahqmrf | Cpp14 | 1.38s |

39 | Zayed | Cpp14 | 1.58s |

40 | Mahir | Cpp14 | 1.60s |

41 | imunir | Cpp14 | 1.60s |

42 | Pabon_SEC | Cpp14 | 1.61s |

43 | smjlord068 | Cpp14 | 1.62s |

44 | faisalxn | Cpp14 | 1.63s |

45 | arsho | Cpp14 | 1.68s |

46 | Ihtiaz | Cpp14 | 1.70s |

47 | fsshakkhor | Cpp14 | 1.79s |

48 | nsbzhd | Cpp14 | 1.97s |

49 | math10 | Cpp14 | 2.02s |

50 | mamun4122 | Cpp14 | 2.07s |

Copyright © 2015-2016 Dev Skill.

Feedback
#### Your feedback is our precious!

## Thank you for providing feedback! Our developers will be happy :)

## Sorry there was a problem when submitting the feedback. Please try again. :(