oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • C++ Reference
  • About
    • Help
    • Terms of Use
    • Technical Specifications
    • Credits

pleasantwords Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

pleasantwords.html

Lea runs into a lot of words in her life. A lot of them she finds unpleasant. To compensate for that she started making up pleasant words. Lea makes up new words by writing a nice looking string of characters on a piece of paper. She than erases a few of the most nasty looking characters and replaces them with underscores '_'. After that she tries to replace the underscores with more acceptable characters trying to form a pleasant word.

Lea considers words pleasant if they do not contain 3 sequential vowels, 3 sequential consonants and contain at least one letter 'L'.

In Croatian vowels are letters A, E, I, O, U only. All other lettters are consonants.

Input

The first and only line of input contains a string of characters, at most 100. The string contains only of uppercase english letters and characters '_'. There will be at most 10 characters '_'.

Output

The first and only line of output should contain a single integer - the total number of pleasant words that can be formed by substituing underscores with uppercase letters of the english alphabet.

Warning: Use 64 bit number formats. long long in C/C++, int64 in Pascal.

Sample Input 1

L_V

Sample Output 1

5

Sample Input 2

V__K

Sample Output 2

10

Sample Input 3

JA_BU_K_A

Sample Output 3

485

Tags

Ad Hoc

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100101s32MBAverage
2031s32MBAverage

Judge Compile Command

g++-7 ans.cpp -o pleasantwords -Wall -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 28.10.19A
Copyright © 2019 mrJudge. All rights reserved.

Under Construction

Stats Tab Content

Under Construction too