View difference between Paste ID: AkGhr5jJ and XqXPyM5v
SHOW: | | - or go back to the newest paste.
1-
#include <bits/stdc++.h>
1+
#include <iostream>
2
3-
const int mxn = 2e5;
3+
4-
									//#define Kin
4+
5
int main()
6
{
7
    int t; cin>>t;
8-
	ios_base::sync_with_stdio(0);
8+
    while(t--)
9-
	cin.tie(0);
9+
    {
10
        long n,k,c=0; cin>>n>>k;
11-
#ifdef Kin
11+
        while(n--)
12-
	(void)!freopen("input.txt", "r", stdin);
12+
        {
13-
	(void)!freopen("output.txt", "w", stdout);
13+
            long a; cin>>a;
14-
#endif
14+
            if (a<=k) c++;
15
        }
16-
	int t;
16+
        cout<<c<<'\n';
17-
	cin >> t;
17+
    }
18-
	while (t--)
18+
    return 0;
19-
	{
19+