Submission #646610

# Submission time Handle Problem Language Result Execution time Memory
646610 2022-09-30T10:00:31 Z danikoynov Nicelines (RMI20_nicelines) C++14
0 / 100
1000 ms 208 KB
/**
 ____ ____ ____ ____ ____ ____
||l |||e |||i |||n |||a |||d ||
||__|||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|/__\|

**/

#include<bits/stdc++.h>
#define endl '\n'
#include "nice_lines.h"
using namespace std;
typedef long long ll;

void solve(int subtask_id, int N)
{
    long double d1 = query(0, 0);
    long double d2 = query(0, 1);
    long double dd = query(0, 2);
    if (dd - d2 != d2 - d1)
        while(true);
    long double y1 = d1 / (d1 - d2);

    long double d3 = query(1, 0);
    long double d4 = query(1, 1);

    long double y2 = d3 / (d3 - d4);


    vector < int > a, b;
    a.push_back(y2 - y1);
    b.push_back(y1);
    the_lines_are(a, b);
}


# Verdict Execution time Memory Grader output
1 Correct 0 ms 208 KB Output is correct
2 Incorrect 1 ms 208 KB Incorrect
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3066 ms 208 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3076 ms 208 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3058 ms 208 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3075 ms 208 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3058 ms 208 KB Time limit exceeded
2 Halted 0 ms 0 KB -