結果
| 問題 |
No.1517 Party Location
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-29 07:03:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 405 bytes |
| コンパイル時間 | 1,858 ms |
| コンパイル使用メモリ | 165,004 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 17:25:32 |
| 合計ジャッジ時間 | 2,435 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 6 WA * 7 |
ソースコード
//ethan_h
#include<bits/stdc++.h>
using namespace std;
#define ll long long
/*void test(){
int n;cin>>n;
string s;cin>>s;
vector<int>a(n);
for(int i=0;i<n;i++){
cin>>a[i];}
}
*/
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int t,a,b;cin>>t>>a>>b;
int mi=1000000009;
for(int i=0;i<=10;i++){
mi=min(mi,i*a + (t-i)*b);
}
cout<<mi;
/*while(t--){
test();
}
*/
return 0;}