洛谷题目 P1046
// https://www.luogu.com.cn/problem/P1046#include <iostream>
using namespace std;
int main()
{
int a, i, b, r = 0;
for (i = 0; i < 10; i++)
{
cin >> a;
}
cin >> b;
b += 30;
for (i = 0; i < 10; i++)
{
if (b >= a)
r++;
}
cout << r;
return 0;
}
页:
[1]