# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
402079 | maximath_1 | Nicelines (RMI20_nicelines) | C++11 | 74 ms | 564 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "nice_lines.h"
using namespace std;
#define ll long long
#define ld long double
ll lim = 10000;
const ld eps = 1e-6;
map<pair<ll, ll>, ld> mp;
vector<int> a, b;
ld que(ll x, ll y){
if(mp.count({x, y})) return mp[{x, y}];
return mp[{x, y}] = query(x, y);
}
ll dv(ll a, ll b){
if(a < 0) return (a - b + 1) / b;
return a / b;
}
void solve(int subtask_id, int N){
mp.clear();
if(subtask_id == 4) lim = 500;
ll x = lim * 2 + 1, y = x * lim + lim;
ld diff = que(x, -y + 1) - que(x, -y);
ll last = -y;
for(int i = 0; i < N; i ++){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |