我感觉这道题有枪毙的风险
上面真的只是一个黑条

题目描述
有一天无聊的你在注册一个无聊的网站,注册完的第一步自然是上传头像。

你发现这个网站总共可以上传 nn 个头像,每个头像必须是正方形,并且长宽至少为 L \times LL×L
在图片上传前,系统会对图片进行如下处理:如果图片的任何一边长度超过了 GG ,那么系统会不断地对图片的长宽同时减半(向下取整),直至两边长度 \leq G≤G 为止。

你现在找到了 nn 张可供上传的图片,第 ii 张的尺寸是 W_i \times H_iW
i
​ ×H

我感觉这道题有枪毙的风险
i ​ 。

如果图片有任何一边小于 LL,请输出 “Too Young”

如果图片满足大小条件但不为正方形,请输出"Too Simple"

如果图片满足大小条件并且是正方形,请输出"Sometimes Naive"

以上所有字符串输出时均不包含引号。

输入输出格式
输入格式:
一行一个整数 n,L,Gn,L,G ,意义如题目所述。

接下来每行两个整数 W_i,H_iW
i
​ ,H
i
​ ,表示图片长宽。

输出格式:
共 nn 行,每行一个字符串,意义如题目所述。

#include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <math.h>
using namespace std ;
int n , L , G ;
int main () {
	cin >> n >> L >> G ;
	while(n --) {
		int w , h ;
		cin >> w >> h ;
		while(w > G || h > G) {
			w = floor(w/2) ;
			h = floor(h/2) ;
		}
		if(w < L || h < L) cout << "Too Young\n" ;
		else if(w >= L && h >= L) {
			if(w == h) cout <<"Sometimes Naive\n" ;
			else cout << "Too Simple\n" ;
		}
	}
	return 0 ;
}