跳到正文

题解

【我说得对】P9973

RainRecall约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年2月17日
篇幅
约 1 分钟
获赞
8
题目
P9973

版本

  1. v1当前

你说得对,但是这题是一道整活题。

你说得对,所以我们来逐步分析这道题。

你说得对,所以因为你说得对,那么你只要说得对,你就是对的。

你说得对,但是你不能只有说得对,你还要但是。

你说得对,所以只要前 1919 个字符是 You are right, but 那么就是 AI 生成的(你这 AI 玩原神玩的)。

你说得对,所以为了严谨我们特判了字符串长度小于 1919。

你说得对,所以:

C++
#include<bits/stdc++.h>
using namespace std;
string s;
int main(){
	getline(cin,s);
	if(s.size()<19||s.substr(0,19)!="You are right, but ")cout<<"Human";
	else cout<<"AI";
	return 0;
}
原文