题目链接
思路:
一个理解题意的题,有两个重a,bkg的个,初始时候相距d距离,在只受重力影响的情况下,试问一段时间后他们之间的距离。根据初中知识,距离不变,所以我们只需要直接输出即可(这题就离谱,样例给的像个魔教中人)
代码:
#include<bits/stdc++.h>
#define int long long
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
const int N=1e5+5;
const int M=2e4+5;
const double eps=1e-8;
const int mod=1e9+7;
const int inf=0x7fffffff;
const double pi=3.1415926;
using namespace std;
signed main()
{
IOS;
int t;
cin>>t;
while(t--)
{
int a,b,c,d;
cin>>a>>b>>c>>d;
cout<<c<<endl;
}
return 0;
}