| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1098934 | ohad | Boarding Passes (BOI22_passes) | C++14 | 0 ms | 348 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 <iostream>
#include <vector>
#include <cmath>
#include <iomanip>
#include <stdio.h>
using namespace std;
typedef long long ll;
int main() {
//string a;
//cin >> a;
ll size = 0; //a.length();
cin >> size;
double best = size*(size-1)/4;
for (int i = 0; i < size; i++)
{
long double x = ((size-i) * (size -i-1)) / double(4);
long double y = (i*(i-1)) / double(4);
y += x;
if (y + 0.0000001 < best)
best = y;
}
cout << fixed << setprecision(6) << best;
}| # | 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... | ||||
