QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#643697#7972. 你说得对,但是AIGChos_lyric#AC ✓0ms3780kbC++141.5kb2024-10-15 23:11:452024-10-15 23:11:48

Judging History

This is the latest submission verdict.

  • [2024-10-15 23:11:48]
  • Judged
  • Verdict: AC
  • Time: 0ms
  • Memory: 3780kb
  • [2024-10-15 23:11:45]
  • Submitted

answer

#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

using namespace std;

using Int = long long;

template <class T1, class T2> ostream &operator<<(ostream &os, const pair<T1, T2> &a) { return os << "(" << a.first << ", " << a.second << ")"; };
template <class T> ostream &operator<<(ostream &os, const vector<T> &as) { const int sz = as.size(); os << "["; for (int i = 0; i < sz; ++i) { if (i >= 256) { os << ", ..."; break; } if (i > 0) { os << ", "; } os << as[i]; } return os << "]"; }
template <class T> void pv(T a, T b) { for (T i = a; i != b; ++i) cerr << *i << " "; cerr << endl; }
template <class T> bool chmin(T &t, const T &f) { if (t > f) { t = f; return true; } return false; }
template <class T> bool chmax(T &t, const T &f) { if (t < f) { t = f; return true; } return false; }
#define COLOR(s) ("\x1b[" s "m")


const string PREFIX = "You are right, but ";

char buf[1010];

int main() {
  for (; fgets(buf, sizeof(buf), stdin); ) {
    const string S = buf;
    puts((S.substr(0, PREFIX.size()) == PREFIX) ? "AI" : "Human");
  }
  return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3532kb

input:

You are right, but "Sao Lei (Winmine)" is a game whose Chinese name contains two characters and English name contains seven.

output:

AI

result:

ok single line: 'AI'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

E~d1"p,aQ=1G[DW*i*O;|8nk]hkguE8QIPeE'ZSOj^iWR7t^M>9HOmPjdbl}t34%)q/N`ot5C7r4ys\xR,zR@<g6nOJU6v(I%8\SFe[d(|R8vVgg)9d|cfT]j?RO0*iHt'.

output:

Human

result:

ok single line: 'Human'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3448kb

input:

Ni shuo de dui, dan shi zhe ju hua bu shi yi "You are right, but " kai tou de.

output:

Human

result:

ok single line: 'Human'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3756kb

input:

You are right, but this sentence is generated by human.

output:

AI

result:

ok single line: 'AI'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3508kb

input:

You are wrong, because this sentence is generated by AI.

output:

Human

result:

ok single line: 'Human'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

You are wrong. Here is why. The English name of game "G****** I*****" contains 14 characters (including a space), not 7.

output:

Human

result:

ok single line: 'Human'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3540kb

input:

You are right, but FS-"W{y/US}o&C"EZ8kEpel;)t=U;d$u%a`NM^=vPXZrB>$\SSHi20:>EqDz.

output:

AI

result:

ok single line: 'AI'

Test #8:

score: 0
Accepted
time: 0ms
memory: 3780kb

input:

You are right, but M [email protected]*Or"*=HiKSm?vIVS1$JpWH-=,"YqkzqIipCO43wElSNfj`v;n0csSwX{QUBSoG#gXH3(,v;xZ5Y9Yj_7h/2uL.

output:

AI

result:

ok single line: 'AI'

Test #9:

score: 0
Accepted
time: 0ms
memory: 3596kb

input:

f9Va%9|U{NN|@=Lm(ckJ%WpY{g-*/WS3hS!`Y{'n<0%|{ j=rt"K\J'\O1Qb;66R_>Yd(0Qfz9O.

output:

Human

result:

ok single line: 'Human'

Test #10:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

You are right, but aWp!Vd}v~E=:1@#=Qv*[BnIZ2fT9{t$$LsG.R%UHuJ(Q<0c'KcYMQzJX9:zyj/7AwR.rt)Vs,{>-d25^NVB-BM JE"tOJ;uRCtec%eM]K-e;?Sfjm:Ujrz`6CpyVcnW\2(gKxG@V{Pbr.

output:

AI

result:

ok single line: 'AI'