#include <iostream> using namespace std;

int main() { int n; cin >> n; int arr[n]; for(int i=0; i<n; i++){ cin >> arr[i]; } bool flag = true; for(int i=0; i<n; i++){ if(arr[i] <= 10){ flag = false; break; } } if(flag){ cout << "Yes" << endl; }else{ cout << "No" << endl; } return 0; }

C++ 判断数组元素是否大于10 - 代码示例与解析

原文地址: https://www.cveoy.top/t/topic/pXxq 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录