結果
問題 | No.8076 eLepHAnTpAoOM |
ユーザー |
|
提出日時 | 2021-03-26 17:55:12 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 1,354 bytes |
コンパイル時間 | 1,565 ms |
コンパイル使用メモリ | 31,360 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-28 14:30:58 |
合計ジャッジ時間 | 1,193 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 23 |
ソースコード
#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; }