1011. Kindergarten Physics (思维 / 输出) 2020 Multi

阅读: 评论:0

1011. Kindergarten Physics (思维 / 输出) 2020 Multi

1011. Kindergarten Physics (思维 / 输出) 2020 Multi

传送门



思路:

  • 题意:有两科重a,b kg的求,初始时候相距d距离,只受重力影响,试问t0时间后他们之间的距离。
  • 感情这就是个假物理题,我想着他们只受重力作用那距离可不是就不会变嘛,之间输出d不就行了。
  • 官方题解:

代码实现:

#include<bits/stdc++.h>
#define endl 'n'
#define null NULL
#define ll long long
#define int long long
#define pii pair<int, int>
#define lowbit(x) (x &(-x))
#define ls(x) x<<1
#define rs(x) (x<<1+1)
#define me(ar) memset(ar, 0, sizeof ar)
#define mem(ar,num) memset(ar, num, sizeof ar)
#define rp(i, n) for(int i = 0, i < n; i ++)
#define rep(i, a, n) for(int i = a; i <= n; i ++)
#define pre(i, n, a) for(int i = n; i >= a; i --)
#define IOS ios::sync_with_stdio(0); cin.tie(0);cout.tie(0);
const int way[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
using namespace std;
const int  inf = 0x7fffffff;
const double PI = acos(-1.0);
const double eps = 1e-6;
const ll   mod = 1e9 + 7;
const int  N = 2e5 + 5;int T, a, b, d, t;signed main()
{IOS;cin >> T;while(T --){cin >> a >> b >> d >> t;cout << d << endl;}return 0;
}

本文发布于:2024-01-27 16:38:11,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/17063446921468.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:思维   Kindergarten   Physics   Multi
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23