1 条题解
-
0莫言 (slz莫言) LV 10 @ 2024-11-30 11:53:48
#include <bits/stdc++.h> using namespace std; const int INF = 0x3f3f3f3f; const int N = 1e6 + 10; int a , b , c , d , k; int e [N] , f [N]; int main() { cin >> a >> b; for (int i = 1; i <= a; i++) { cin >> e [i]; } for (int i = 1; i <= b; i++) { d++; cin >> c; for (int j = 1; j <= a; j++) { if (e [j] > c) { f [d]++; } else { k--; } } if (f [d] == 0) { f [d]--; } } for (int i = 1; i < b; i++) { cout << f [i] << endl; } cout << f [b]; return 0; }
- 1
信息
- ID
- 3086
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 2
- 标签
- (无)
- 递交数
- 91
- 已通过
- 18
- 上传者