結果

問題 No.3076 eLepHAnTpAoOM
ユーザー hirakich1000000007hirakich1000000007
提出日時 2021-03-26 17:55:12
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 1,354 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 30,148 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-19 01:55:53
合計ジャッジ時間 1,755 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,380 KB
testcase_01 AC 0 ms
4,376 KB
testcase_02 AC 0 ms
4,380 KB
testcase_03 AC 0 ms
4,376 KB
testcase_04 AC 0 ms
4,380 KB
testcase_05 AC 0 ms
4,380 KB
testcase_06 AC 0 ms
4,376 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 0 ms
4,376 KB
testcase_09 AC 0 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 0 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 0 ms
4,376 KB
testcase_14 AC 0 ms
4,376 KB
testcase_15 AC 1 ms
4,380 KB
testcase_16 AC 0 ms
4,380 KB
testcase_17 AC 0 ms
4,376 KB
testcase_18 AC 0 ms
4,376 KB
testcase_19 AC 0 ms
4,376 KB
testcase_20 AC 0 ms
4,380 KB
testcase_21 AC 1 ms
4,380 KB
testcase_22 AC 1 ms
4,376 KB
testcase_23 AC 0 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>


typedef uint64_t ull;
typedef  int64_t ll;

#ifdef __cplusplus

#include <vector>
using std::vector;
using std::pair;
#include <set>
using std::set;
#include <map>
using std::map;

typedef pair<ll, ll> P;

#endif

static const ull MOD = 1000000007LL;

ll n, k, m, q;
ll h, w, r;

char s[2019100];
ll a[201910], b[201910], c[201910];
ll qx[201910], qy[201910];

ll smin (ll a, ll b) {
	return (a < b) ? a : b;
}
ll smax (ll a, ll b) {
	return (a > b) ? a : b;
}

typedef struct {
	ll a;
	ll b;
} hwll;

int cmp (const void *left, const void *right) {
	ll l = *(ll*)left, r = *(ll*)right;

	if (l < r) return -1;
	if (l > r) return +1;
	return 0;
}

ll frac[5050505], invf[5050505];

ll bpow (ll x, ll y) {
	if (y == 0) return 1;
	return bpow(x * x % MOD, y / 2) * ((y % 2) ? x : 1) % MOD;
}
ll binv (ll x) {
	return bpow(x, MOD - 2);
}

ll solve () {
	ll i, j, ki;
	ll res = 0;

	qsort(a, n, sizeof(ll), cmp);

	for (i = 1; i <= n - 1; i++) {
		res += a[n - 1 - i / 2];
	}

	return res;
}

int main(void){

	long double h, r;

	scanf("%Lf%Lf", &h, &r);
	long double ffc = 3.14159265358979323846264338327950L * 2 * r;

	long double result = -8.245L + 6.807L * h + 7.073L * ffc;

	printf("%.15Lf\n", result);

	// printf("%lld\n", solve());

	return 0;
}
0