QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#468722 | #5486. Metronome | Eiad_Ahmed# | AC ✓ | 0ms | 3968kb | C++20 | 3.5kb | 2024-07-08 23:38:06 | 2024-07-08 23:38:07 |
Judging History
answer
#include <bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
#define INF 0x3f3f3f3f3f3f3f3f
#define ones(x) __builtin_popcountll(x)
#define memss(a, b, sz) memset(arr,b,sz * sizeof (arr[0]))
#define ii pair<ll ,ll >
#define PI ::acos(-1)
#define Eiado ios_base::sync_with_stdio(false);cin.tie(nullptr);cout.tie(0);
typedef long long ll;
typedef long double ld;
#define int ll
typedef unsigned long long ull;
#define all(v) ((v).begin()),((v).end())
#define rall(v) ((v).rbegin()),((v).rend())
#define error(args...) { string _s = #args; replace(_s.begin(), _s.end(), ',', ' '); stringstream _ss(_s); istream_iterator<string> _it(_ss); err(_it, args); }
using namespace std;
using namespace __gnu_pbds;
template<typename T>
using orderedset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
typedef pair<long long, long long> pll;
typedef pair<ll, ll> pii;
template<typename T = ll>
istream &operator>>(istream &in, vector<T> &v) {
for (auto &x: v) in >> x;
return in;
}
template<typename T = ll>
ostream &operator<<(ostream &out, const vector<T> &v) {
for (const T &x: v) out << x << ' ';
return out;
}
/*
*
*/
///const int N = 5e5 + 5, b = 1e9 + 9, b2 = 31, mod = 1e9 + 7;
const ll inf = 1e18;
const ll M = 998244353;
const ld pi = atan2(0, -1);
const ld eps = 1e-6;
const int mod = 1e9 + 7;
#define x first
#define y second
int add(int a, int b) {
return (a + b + mod) % mod;
}
void solve() {
double n;
cin >> n;
cout<<fixed <<setprecision(2)<<n/4;
}
signed main() {
//#ifndef ONLINE_JUDGE
// freopen("i.txt", "r", stdin);
// freopen("o.txt", "w", stdout);
//#endif
Eiado
// priority_queue<PII, vector<PII>, greater<PII> > pq;
//pq.emplace(a,make_pair(b,c));
/*
E E E E 0 D
E D
E E E E I A A A D D D
E I A A D D
E E E E I A A A A D D D
A
*/
int t = 1;
// cin >> t;
while (t--) {
solve();
}
}
/*
* int pw[N], pw2[N], inv[N], inv2[N], pref[N], pref2[N], prf[N],
prf2[N];
int add(int a, int b) {
return (a + b) % mod;
}
int mul(int a, int b) {
return 1ll * a * b % mod;
}
int fp(int b, int p) {
if (p == 0) return 1;
int ret = fp(b, p >> 1);
ret = mul(ret, ret);
if (p & 1) ret = mul(ret, b);
return ret;
}
void pre() {
pw[0] = pw2[0] = inv[0] = inv2[0] = 1;
int mul_inv = fp(b, mod - 2), mul_inv2 = fp(b2, mod - 2);
for (int i = 1; i < N; i++) {
pw[i] = mul(pw[i - 1], b);
pw2[i] = mul(pw2[i - 1], b2);
inv[i] = mul(inv[i - 1], mul_inv);
inv2[i] = mul(inv2[i - 1], mul_inv2);
}
}
pair<int, int> get_hash(int l, int r) {
int ret = pref[r];
if (l) ret = (ret - pref[l - 1] + mod) % mod;
ret = mul(ret, inv[l]);
int ret2 = pref2[r];
if (l) ret2 = (ret2 - pref2[l - 1] + mod) % mod;
ret2 = mul(ret2, inv2[l]);
return {ret, ret2};
}
pair<int, int> get_hash2(int l, int r) {
int ret = prf[r];
if (l) ret = (ret - prf[l - 1] + mod) % mod;
ret = mul(ret, inv[l]);
int ret2 = prf2[r];
if (l) ret2 = (ret2 - prf2[l - 1] + mod) % mod;
ret2 = mul(ret2, inv2[l]);
return {ret, ret2};
}
*/
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3912kb
input:
16
output:
4.00
result:
ok found '4.00000', expected '4.00000', error '0.00000'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
99
output:
24.75
result:
ok found '24.75000', expected '24.75000', error '0.00000'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
100000
output:
25000.00
result:
ok found '25000.00000', expected '25000.00000', error '0.00000'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
99999
output:
24999.75
result:
ok found '24999.75000', expected '24999.75000', error '0.00000'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
99998
output:
24999.50
result:
ok found '24999.50000', expected '24999.50000', error '0.00000'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
99997
output:
24999.25
result:
ok found '24999.25000', expected '24999.25000', error '0.00000'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
1
output:
0.25
result:
ok found '0.25000', expected '0.25000', error '0.00000'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
2
output:
0.50
result:
ok found '0.50000', expected '0.50000', error '0.00000'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
3
output:
0.75
result:
ok found '0.75000', expected '0.75000', error '0.00000'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
4
output:
1.00
result:
ok found '1.00000', expected '1.00000', error '0.00000'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
49308
output:
12327.00
result:
ok found '12327.00000', expected '12327.00000', error '0.00000'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
27829
output:
6957.25
result:
ok found '6957.25000', expected '6957.25000', error '0.00000'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
68848
output:
17212.00
result:
ok found '17212.00000', expected '17212.00000', error '0.00000'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
76026
output:
19006.50
result:
ok found '19006.50000', expected '19006.50000', error '0.00000'
Test #15:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
20820
output:
5205.00
result:
ok found '5205.00000', expected '5205.00000', error '0.00000'
Test #16:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
65430
output:
16357.50
result:
ok found '16357.50000', expected '16357.50000', error '0.00000'
Test #17:
score: 0
Accepted
time: 0ms
memory: 3896kb
input:
17693
output:
4423.25
result:
ok found '4423.25000', expected '4423.25000', error '0.00000'
Test #18:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
36041
output:
9010.25
result:
ok found '9010.25000', expected '9010.25000', error '0.00000'
Test #19:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
69486
output:
17371.50
result:
ok found '17371.50000', expected '17371.50000', error '0.00000'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3900kb
input:
63762
output:
15940.50
result:
ok found '15940.50000', expected '15940.50000', error '0.00000'