Submission #29433499


Source Code Expand

#include <bits/stdc++.h>
#define mod 998244353
#define point complex<long double>
#define pi acos(-1)
#pragma warning(disable : 4996)

typedef long long ll;
typedef long double ld;

using namespace std;

void Fastio()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
}

bool runTestCase(int ttt) {
	ll x; cin >> x;
	double res = sqrt(double(x) * (12800000.0 + double(x)));
	cout <<fixed<<setprecision(9)<< res << '\n';
	return 0;
}
int main()
{
	//Fastio();
	//freopen("runway_input.txt", "r", stdin);
	//freopen("output.txt", "w", stdout);
	int ttt = 1; //cin >> ttt;
	int t = 1;
	while (ttt--) {
		runTestCase(t);
		t++;
	}

	return 0;
}

Submission Info

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

Compile Error

./Main.cpp:5: warning: ignoring #pragma warning  [-Wunknown-pragmas]
    5 | #pragma warning(disable : 4996)
      | 
./Main.cpp: In function ‘bool runTestCase(int)’:
./Main.cpp:19:22: warning: unused parameter ‘ttt’ [-Wunused-parameter]
   19 | bool runTestCase(int ttt) {
      |                  ~~~~^~~

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 3800 KiB
random_02.txt AC 2 ms 3608 KiB
random_03.txt AC 3 ms 3648 KiB
random_04.txt AC 2 ms 3800 KiB
random_05.txt AC 2 ms 3640 KiB
random_06.txt AC 2 ms 3700 KiB
random_07.txt AC 2 ms 3676 KiB
random_08.txt AC 2 ms 3632 KiB
sample_01.txt AC 3 ms 3640 KiB
sample_02.txt AC 4 ms 3692 KiB