4题
#include<stdio.h>
#include<math.h>
int main()
{
int n;
scanf_s("%d", &n);
int t;
double a;
int arr[200000]={0};
for (int i = 0; i < n; i++)
{
scanf_s("%lf %d", &a, &t);
for (int j = 1; j <= t; j++)
{
int s = (a * j);
arr[s]++;
}
}
for (int i = 1; i < 200000; i++)
{
if (arr[i] != 0 && arr[i] % 2 == 1)//结果一定是操作奇数次
{
printf("%d", i);
}
}
return 0;
}