Problem: 2050C - Uninteresting Number
Language: c++17 

Code 1:
#include<bits/stdc++.h>
using namespace std;

int main(){
    int t;cin>>t;
    while(t--){
        string s;cin>>s;
        int sum=0;
        unordered_map<char,int>m;
        for(int i=0;i<s.size();i++){
            m[s[i]]++;
            sum+=(int)s[i]-48;
        }
        sum=9-sum%9;
        // cout<<sum;
        if(sum==9){
            cout<<"YES"<<endl;
        }
        else if(sum==1){
            if((m['3']>=1 && m['2']>=2)||(m['2']>=5)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==2){
            if((m['2']>=1)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==3){
            if((m['3']>=2)||(m['3']>=1 && m['2']>=3)||(m['2']>=6)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==4){
            if(m['2']>=2){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==5){
            if((m['3']>=2 && m['2']>=1)||(m['3']>=1 && m['2']>=4)||(m['2']>=7)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==6){
            if((m['3']>=1)&&(m['2']>=3)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==7){
            if((m['3']>=2 && m['2']>=2)||(m['3']>=1 && m['2']>=5) || (m['2']>=8)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==8){
            if((m['3']>=1 && m['2']>=1) || (m['2']>=4)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
    }
    return 0;
}

Code 2:
#include<bits/stdc++.h>
using namespace std;

int main(){
    int t;cin>>t;
    while(t--){
        string s;cin>>s;
        int sum=0;
        unordered_map<char,int>m;
        for(int i=0;i<s.size();i++){
            m[s[i]]++;
            sum+=(int)s[i]-48;
        }
        sum=9-sum%9;
        // cout<<sum;
        if(sum==9){
            cout<<"YES"<<endl;
        }
        else if(sum==1){
            if((m['3']>=1 && m['2']>=2)||(m['2']>=5)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==2){
            if((m['2']>=1)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==3){
            if((m['3']>=2)||(m['3']>=1 && m['2']>=3)||(m['2']>=6)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==4){
            if(m['2']>=2){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==5){
            if((m['3']>=2 && m['2']>=1)||(m['3']>=1 && m['2']>=4)||(m['2']>=7)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==6){
            if((m['3']>=1)||(m['2']>=3)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==7){
            if((m['3']>=2 && m['2']>=2)||(m['3']>=1 && m['2']>=5) || (m['2']>=8)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
        else if(sum==8){
            if((m['3']>=1 && m['2']>=1) || (m['2']>=4)){
                cout<<"YES"<<endl;
            }
            else{
                cout<<"NO"<<endl;
            }
        }
    }
    return 0;
}

Answer: 2