Submission #29426744


Source Code Expand

// #include <atcoder/all>
// using namespace atcoder;
// using mint = modint998244353;
// using mint = modint1000000007;
#include <bits/stdc++.h>
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rep2(i,k,n) for (int i = (k); i < (n); ++i)
using namespace std;
using ll = long long;
// using P = pair<ll,ll>;
using P = pair<int,int>;
using vint = vector<int>;
using vll = vector<ll>;
using vvint = vector<vector<int>>;
using vvll = vector<vector<ll>>;

// const ll INF = (ll)2e18+9;
const int INF = (int)2e9+7;
// const ll MOD = (ll)1e9+9;
template<typename T>
void chmin(T &a, T b) { a = min(a, b); }
template<typename T>
void chmax(T &a, T b) { a = max(a, b); }

template<typename T>
void print(vector<T> v) {
    int n = v.size();
    rep(i,n) {
        if (i == 0) cout << v[i];
        else cout << ' ' << v[i];
    }
    cout << endl;
}

void solve() {
    double h;
    cin >> h;
    printf("%.9lf\n", sqrt(h*(12800000 + h)));
}

int main() {
    solve();
    return 0;
}

Submission Info

Submission Time
Task A - Horizon
User goropikari
Language C++ (GCC 9.2.1)
Score 100
Code Size 1109 Byte
Status AC
Exec Time 8 ms
Memory 3780 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt AC 8 ms 3672 KiB
random_02.txt AC 2 ms 3776 KiB
random_03.txt AC 2 ms 3588 KiB
random_04.txt AC 3 ms 3664 KiB
random_05.txt AC 2 ms 3652 KiB
random_06.txt AC 3 ms 3780 KiB
random_07.txt AC 2 ms 3644 KiB
random_08.txt AC 2 ms 3652 KiB
sample_01.txt AC 2 ms 3668 KiB
sample_02.txt AC 2 ms 3656 KiB