結果

問題 No.1517 Party Location
ユーザー shojin
提出日時 2024-05-08 21:02:41
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 171 bytes
コンパイル時間 6,970 ms
コンパイル使用メモリ 271,996 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-15 04:25:07
合計ジャッジ時間 5,438 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 WA * 11 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  int d, a, b;
  cin >> d >> a >> b;
  int x = (b * d + (a + b) / 2) / (a + b);
  cout << x * a + (d - x) * b;
}
0