Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
108525 高楷伦 18陶陶摘苹果 C++ Accepted 1 MS 272 KB 437 2025-01-20 16:50:43

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n=10,m,k=0; int a[n]; for(int i=0;i<n;i++){ cin>>a[i]; } cin>>m; m=m+30; for(int i=0;i<n;i++){ if(a[i]<=m){ k++; } } cout<<k; return 0; }