为啥只对了五个测试点,求助!
查看原帖
为啥只对了五个测试点,求助!
574038
Rain2011楼主2024/6/6 17:32
#include<bits/stdc++.h>
using namespace std;
int main(){
    string n;
    cin>>n;
    if(n.size()<19){
        cout<<"Human"<<endl;
    }else{
        if(n.substr(0,19)=="You are right, but"){
            cout<<"AI"<<endl;
        }else{
            cout<<"Human"<<endl;
        }
    }
    return 0;
}
2024/6/6 17:32
加载中...