QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#162604 | #7110. Kuririn MIRACLE | ucup-team859 | WA | 2ms | 3944kb | C++14 | 745b | 2023-09-03 14:58:02 | 2023-09-03 14:58:02 |
Judging History
answer
#include <bits/stdc++.h>
#define lsb(x) (x & (-x))
using ull = unsigned long long;
using ll = long long;
using namespace std;
void solve() {
long double v, r, d;
cin >> v >> r >> d;
long double tmp = d / v;
long double ct = 1.93679955620685012325;
long double ts = 2.623282945785903 * r / v;
ts *= ct;
long double x = ts * v + 2 * r + 2 * r;
if (x <= d) {
tmp = min(tmp, ts + (d - x) / (2 * v));
}
cout << fixed << setprecision(20) << tmp << "\n";
}
int main() {
#ifdef HOME
ifstream cin("input.in");
ofstream cout("output.out");
#endif
ios::sync_with_stdio(false);
cin.tie(0), cout.tie(0);
int t = 1;
cin >> t;
while (t--)
solve();
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 2ms
memory: 3876kb
input:
1 2.00 3 30.0
output:
8.31057993390235150849
result:
ok found '8.3105799', expected '8.3105799', error '0.0000000'
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3944kb
input:
100 8.66 6.05 71.59 8.44 8.67 82.55 4.23 9.68 24.74 6.63 9.95 7.45 1.2 7.27 97.55 2.08 2.94 31.61 8.48 5.56 20.16 7.35 5.55 52.48 1.35 8.15 51.23 3.88 9.02 72.37 7.03 1.97 57.03 1.78 4.44 93.44 5.5 6.11 52.94 1.09 9.64 69.01 1.01 3.54 16.78 1.63 4.55 44.06 5.82 5.51 5.92 5.62 2.93 76.01 4.75 4.43 73...
output:
4.51089365666737695344 5.44551564193786631803 5.84869976359338061443 1.12368024132730015075 43.91967562192783081434 8.36237339925413892140 2.37735849056603773598 3.97811506876717014712 37.94814814814814814617 18.65206185567010309378 4.20761901088550331618 27.59512168783761824030 9.625454545454545454...
result:
wrong answer 1st numbers differ - expected: '4.4578371', found: '4.5108937', error = '0.0119019'