#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
int main()
{
ull whether,D1T1,D1T2,D1T3,D2T1,D2T2,D2T3,bishi,temp,enter;
cin >> bishi >> D1T1 >> D1T2 >> D1T3 >> D2T1 >> D2T2 >> D2T3 >> whether >> enter;
temp = D1T1+D1T2+D1T3+D2T1+D2T2+D2T3+bishi;
if (whether == 1)
{
temp = temp + 5;
}
if (temp >= enter)
{
cout << "AKIOI";
}
if (temp < enter)
{
cout << "AFO";
}
return 0;
}
评测结果:
感谢大佬!