fork download
  1. /* Author : Bui Anh Quan, Ly Thuong Kiet secondary school */
  2. #include <iostream>
  3. using namespace std;
  4. int main(){
  5. ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  6. string s;
  7. cin >> s;
  8. int x = 0,y = 0;
  9. /* Hot chocolate is good uwu */
  10. int n = s.size();
  11. for(int i = 0 ;i < n; i++){
  12. if (s[i] == 'u' || s[i] == 'e' || s[i] == 'o' || s[i] == 'a' || s[i] == 'i')
  13. x++;
  14. else
  15. y++;
  16. }
  17. cout << x * y;
  18. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Standard output is empty