Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160925 王艺博 18陶陶摘苹果 C++ Wrong Answer 1 MS 268 KB 315 2026-09-26 16:47:02

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ //break结束循环,continue退出本次循环 int n,k; cin>>n; int a[11]; for(int i=0;i<n;i++){ cin>>a[i]; } cin>>k; int v=30; int b=0; for(int i=0;i<n;i++){ if(v+k>=a[i]){ b++; } } cout<<b; return 0; }


Run Info:

------Input------
130 175 173 113 125 101 186 130 143 184 136
------Answer-----
6
------Your output-----
80