結果

問題 No.1517 Party Location
ユーザー shisidor
提出日時 2023-04-10 21:09:37
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 531 ms
コンパイル使用メモリ 64,492 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-06 07:50:00
合計ジャッジ時間 1,154 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

int main() {
    int d, a, b;
    cin >> d >> a >> b;
    int res;
    if (a + b == 0) res = 0;
    else res = 2 * a * b * d / (a + b);
    cout << res << endl;
}
0