From 5fda59af39197e14006fce948bf049aef50bbddf Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Fri, 9 Oct 2020 20:59:36 +0800 Subject: [PATCH] P6850 NOI R39590203 --- problem/P6850/P6850.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 problem/P6850/P6850.cpp diff --git a/problem/P6850/P6850.cpp b/problem/P6850/P6850.cpp new file mode 100644 index 00000000..c1947092 --- /dev/null +++ b/problem/P6850/P6850.cpp @@ -0,0 +1,17 @@ +// R39590203 + +#include + +using namespace std; + +int main() { + int a, b, c, d, f, e, g, h, i; + cin >> a >> b >> c >> d >> e >> f >> g >> h >> i; + if ((h && 50 + a + b + c + d + e + f + g + 5 >= i) || (50 + a + b + c + d + e + f + g >= i)) { + cout << "AKIOI" << endl; + } + else { + cout << "AFO" << endl; + } + return 0; +}