From 95655eb23459b19a57938daa2739675e382709df Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 26 May 2022 08:44:13 +0800 Subject: [PATCH] =?UTF-8?q?P5315=20=E5=A4=B4=E5=83=8F=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.luogu.com.cn/record/76399456 --- Luogu/P5315/P5315.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Luogu/P5315/P5315.cpp diff --git a/Luogu/P5315/P5315.cpp b/Luogu/P5315/P5315.cpp new file mode 100644 index 00000000..de36490e --- /dev/null +++ b/Luogu/P5315/P5315.cpp @@ -0,0 +1,29 @@ +#include + +using std::cin; +using std::cout; +const char endl = '\n'; + +int n, l, g; + +int main() { + std::ios::sync_with_stdio(false); + + cin >> n >> l >> g; + + for (int i = 1, w, h; i <= n; i++) { + cin >> w >> h; + + while (w > g || h > g) w >>= 1, h >>= 1; + + if (w < l || h < l) { + cout << "Too Young" << endl; + } else if (w == h) { + cout << "Sometimes Naive" << endl; + } else { + cout << "Too Simple" << endl; + } + } + + return 0; +}