#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
struct node
{
int t, x;
} ;
int f[100005];
queue<node> q;
int main()
{
int n;
cin >> n;
while (n--)
{
int t, k, x;
cin >> t >> k;
while (k--)
{
cin >> x;
q.push({t, x});
f[x]++;
}
while (q.front().t <= t - 86400)
{
f[q.front().x]--;
q.pop();
}
int cnt = 0;
for (int i = 1; i <= 1e5; i++)
cnt+= bool (f[i]);
cout << cnt << "\n";
}
return 0;
}123
文章信息与版本
文章信息
- 收录
- 2026年4月10日
- 更新
- 2026年4月10日
- 篇幅
- 约 1 分钟