#include <iostream>
using namespace std;
int main()
{
int n, m;
scanf("%d %d", &n, &m);
int x_m = 0;
int y_m = 0;
for(int i = 0; i < n; i++)
{
int temp_x, temp_y;
scanf("%d %d", &temp_x, &temp_y);
x_m += temp_x;
y_m += temp_y;
}
for(int i = 0; i < m; i++)
{
int temp_x, temp_y;
scanf("%d %d", &temp_x, &temp_y);
temp_x += x_m;
temp_y += y_m;
printf("%d %d\n", temp_x, temp_y);
}
return 0;
}
【CCF CSP】202309-1 坐标变换(其一)
于 2023-12-07 11:36:10 首次发布