結果

問題 No.1230 Hall_and_me
ユーザー hgoto
提出日時 2020-10-28 20:39:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 316 bytes
コンパイル時間 1,738 ms
コンパイル使用メモリ 198,424 KB
最終ジャッジ日時 2025-01-15 16:15:06
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  vector<int> a(3);
  cin >> a[0] >> a[1] >> a[2];
  sort(a.begin(), a.end(), greater<int>());
  cout << fixed << setprecision(17);
  cout << (double)(a[0] + a[1]) / (a[0] + a[1] + a[2]) << '\n';
  return 0;
}
0