結果
問題 | No.445 得点 |
ユーザー |
![]() |
提出日時 | 2016-12-03 10:03:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 995 bytes |
コンパイル時間 | 1,244 ms |
コンパイル使用メモリ | 166,008 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-29 20:55:32 |
合計ジャッジ時間 | 1,884 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#include <bits/stdc++.h>#define get_variable_name(x) #x#define debug(x) cout << #x << " = " << x << endl#define ALL(x) (x).begin(), (x).end()#define SORT(x) sort((x).begin(), (x).end())#define REVERSE(x) reverse( (x).begin(),(x).end())#define UNIQUE(x) (x).erase(unique(ALL((x))), (x).end())#define PW(x) (1LL<<(x))using namespace std;using ll = int64_t;using P = pair<int, int>;template<class T,class U>ostream& operator<<(ostream &os, const pair<T, U> &p) {os << get_variable_name(p) << " = (" << p.first <<", " << p.second << ")";return os;}template<class T>ostream& operator <<(ostream& os, const vector<T> &v){cout << get_variable_name(v) << " = [";for(auto i : v)os << " " << v[i];os << " ]";return os;}const int INF = 1e8;int f(double N, double K) {return 50 * N + floor(50*N/(0.8+0.2*K-0.0000001));}int main() {ios::sync_with_stdio(false);double A, B;cin >> A >> B;printf("%d\n", f(A, B));}