結果
| 問題 |
No.1517 Party Location
|
| コンテスト | |
| ユーザー |
warm4C0
|
| 提出日時 | 2024-05-25 10:33:18 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| コンパイル時間 | 2,938 ms |
| コンパイル使用メモリ | 242,952 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-20 19:34:55 |
| 合計ジャッジ時間 | 3,778 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int d, a, b;
cin >> d >> a >> b;
int x = 0;
if (a-b < 0) {
x = d;
} else {
x = b*d;
}
cout << (a-b)*x+b*d << endl;
return 0;
}
warm4C0