結果
問題 | No.8076 eLepHAnTpAoOM |
ユーザー |
![]() |
提出日時 | 2021-04-01 20:13:25 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 2,352 bytes |
コンパイル時間 | 1,738 ms |
コンパイル使用メモリ | 194,420 KB |
最終ジャッジ日時 | 2025-01-20 05:23:46 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h>//#include <boost/multiprecision/cpp_int.hpp>//#include <atcoder/all>using namespace std;//using namespace atcoder;//g++ hoge.cpp (-std=c++17) -I . で実行#pragma GCC target("avx")#pragma GCC optimize("O3")#pragma GCC optimize("unroll-loops")typedef long long ll;typedef pair<ll,ll> prl;typedef vector<ll> vcl;typedef map<ll,ll> mapl;typedef unordered_map<ll,ll> umap;#define pb push_back#define all(v) v.begin(), v.end()#define rep(i,a,b) for(ll i=a;i<=b;i++)#define repi(i,a,b) for(int i=a;i<=b;i++)#define repr(i,a,b) for(ll i=a;i>=b;i--)#define reps(i,v) for(ll i=0;i<v.size();i++)#define rept(itr,v) for(auto itr=v.begin();itr!=v.end();itr++)#define rept1(itr,v) for(auto itr=v.begin()+1;itr!=v.end();itr++)#define rept2(itr,v) for(auto itr=v.begin();itr!=v.end()-1;itr++)#define print(x) cout << (x) << endl#define dprint(x) cerr << (x) << endl#define fprint(x) printf("%.15lf\n",(x))#define dfprint(x) cerr << fixed << setprecision(15) << (x) << endl#define print2(x,y) cout << (x) << " " << (y) << endl#define dprint2(x,y) cerr << (x) << " " << (y) << endl#define print3(x,y,z) cout << (x) << " " << (y) << " " << (z) << endl#define dprint3(x,y,z) cerr << (x) << " " << (y) << " " << (z) << endl#define YesNo(test) cout << ((test) ? "Yes" : "No") << endl#define dYesNo(test) cerr << ((test) ? "Yes" : "No") << endl#define yesno(test) cout << ((test) ? "yes" : "no") << endl#define dyesno(test) cerr << ((test) ? "yes" : "no") << endl#define debug cerr << "debug_print" << endl#define Bint boost::multiprecision::cpp_inttemplate<typename T> void chmin(T &a, const T &b) { a = min(a, b); }template<typename T> void chmax(T &a, const T &b) { a = max(a, b); }ll myceil(ll a, ll b) { if(b < 0){ a = -a; b = -b; } return ((a > 0) ? ((a+b-1) / b) : (-(-a / b)) ); }ll myfloor(ll a, ll b) { if(b < 0){ a = -a; b = -b; } return ((a > 0) ? (a / b) : (-((-a+b-1) / b)) ); }//const ll mod = 1e9+7;//const ll mod = 998244353;//typedef modint1000000007 mint;//typedef modint998244353 mint;//typedef modint mint//cout << sum.val() << endl;//mint::set_mod(mod); modが固定でないときint main() {// your code goes heredouble h,c,ffc,ans;cin >> h >> c;ffc = 2.0 * atan2(0.0,-1.0) * c;ans = -8.245 + 6.807 * h + 7.073 * ffc;fprint(ans);return 0;}