結果
| 問題 |
No.1517 Party Location
|
| コンテスト | |
| ユーザー |
LV3zJigVW57oPGy
|
| 提出日時 | 2022-10-29 10:34:31 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 249 bytes |
| コンパイル時間 | 1,400 ms |
| コンパイル使用メモリ | 157,024 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-06 10:35:27 |
| 合計ジャッジ時間 | 1,607 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <ios>
#include <iomanip>
int main() {
int a, b, c;
cin >>a>>b>>c;
int count = (a-0)*c;
for(int i=1; i<=a;i++){
int k=i;
count = min(count,k*b+(a-k)*c);
}
cout << count;
}
LV3zJigVW57oPGy