Source Code
#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
#include <string>
#include <iomanip>
#include <fstream>
#include <chrono>

using namespace std;

int main()
{
    int answer[26] = {0};
    int index;
    char input[100];
    char check;
    bool result = true;
    cin >> input;

    for (int i = 0; input[i] != '\0'; i++)
    {
        check = input[i];
        if (check <= 'Z' && check >= 'A')
        {
            index = check - 'A';
        }
        else if (check <= 'z' && check >= 'a')
        {
            index = check - 'a';
        }

        answer[index]++;
    }

    if (answer[0] < 2)
    {
        result = false;
    }

    if (answer[19] < 1)
    {
        result = false;
    }

    if (answer[24] < 1)
    {
        result = false;
    }

    if (answer[8] < 1)
    {
        result = false;
    }

    if (answer[11] < 1)
    {
        result = false;
    }

    if (answer[15] < 1)
    {
        result = false;
    }

    if (answer[2] < 1)
    {
        result = false;
    }

    if (result)
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }


    return 0;
}
Copy
We Love Atypical DirtyQWERTY
GNU G++17
1 ms
764 KB
Accepted