QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#188528 | #5486. Metronome | beshoyhany# | AC ✓ | 1ms | 3796kb | C++20 | 1.4kb | 2023-09-25 22:29:49 | 2023-09-25 22:29:49 |
Judging History
answer
#include<bits/stdc++.h>
#define ll long long
#define pp push_back
#define endl '\n'
#define all(x) x.begin(),x.end()
#define ld long double
#define PI acos(-1)
#define sin(a) sin((a)*PI/180)
#define cos(a) cos((a)*PI/180)
#define ones(x) __builtin_popcountll(x)
//#define int ll
using namespace std;
void Drakon() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
#ifdef Clion
freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
#endif
}
unsigned long long inf = 1e10;
const double EPS = 1e-6;
const int MOD = 1000000007, N = 200005, LOG = 25;
ll gcd(ll x, ll y) {
return y ? gcd(y, x % y) : x;
}
ll lcm(ll a, ll b) {
return (a * b) / __gcd(a, b);
}
ll mul(const ll &a, const ll &b) {
return (a % MOD + MOD) * (b % MOD + MOD) % MOD;
}
ll add(const ll &a, const ll &b) {
return (a + b + 2 * MOD) % MOD;
}
ll pw(ll x, ll y) {
ll ret = 1;
while (y > 0) {
if (y % 2 == 0) {
x = mul(x, x);
y = y / 2;
} else {
ret = mul(ret, x);
y = y - 1;
}
}
return ret;
}
void solve() {
int n;
cin >> n;
cout << fixed << setprecision(6) << (ld)n / 4;
}
signed main() {
Drakon();
int t = 1;
//cin >> t;
while (t--) {
solve();
}
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3796kb
input:
16
output:
4.000000
result:
ok found '4.00000', expected '4.00000', error '0.00000'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
99
output:
24.750000
result:
ok found '24.75000', expected '24.75000', error '0.00000'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
100000
output:
25000.000000
result:
ok found '25000.00000', expected '25000.00000', error '0.00000'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
99999
output:
24999.750000
result:
ok found '24999.75000', expected '24999.75000', error '0.00000'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
99998
output:
24999.500000
result:
ok found '24999.50000', expected '24999.50000', error '0.00000'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
99997
output:
24999.250000
result:
ok found '24999.25000', expected '24999.25000', error '0.00000'
Test #7:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
1
output:
0.250000
result:
ok found '0.25000', expected '0.25000', error '0.00000'
Test #8:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
2
output:
0.500000
result:
ok found '0.50000', expected '0.50000', error '0.00000'
Test #9:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
3
output:
0.750000
result:
ok found '0.75000', expected '0.75000', error '0.00000'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
4
output:
1.000000
result:
ok found '1.00000', expected '1.00000', error '0.00000'
Test #11:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
49308
output:
12327.000000
result:
ok found '12327.00000', expected '12327.00000', error '0.00000'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
27829
output:
6957.250000
result:
ok found '6957.25000', expected '6957.25000', error '0.00000'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
68848
output:
17212.000000
result:
ok found '17212.00000', expected '17212.00000', error '0.00000'
Test #14:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
76026
output:
19006.500000
result:
ok found '19006.50000', expected '19006.50000', error '0.00000'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
20820
output:
5205.000000
result:
ok found '5205.00000', expected '5205.00000', error '0.00000'
Test #16:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
65430
output:
16357.500000
result:
ok found '16357.50000', expected '16357.50000', error '0.00000'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
17693
output:
4423.250000
result:
ok found '4423.25000', expected '4423.25000', error '0.00000'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
36041
output:
9010.250000
result:
ok found '9010.25000', expected '9010.25000', error '0.00000'
Test #19:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
69486
output:
17371.500000
result:
ok found '17371.50000', expected '17371.50000', error '0.00000'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
63762
output:
15940.500000
result:
ok found '15940.50000', expected '15940.50000', error '0.00000'