結果
問題 |
No.2329 Nafmo、イカサマをする
|
ユーザー |
|
提出日時 | 2023-07-04 22:58:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 539 bytes |
コンパイル時間 | 1,092 ms |
コンパイル使用メモリ | 103,180 KB |
最終ジャッジ日時 | 2025-02-15 06:00:45 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 31 |
ソースコード
#include<iostream> #include<set> #include<algorithm> #include<vector> #include<string> #include<set> #include<map> #include<numeric> #include<queue> #include<cmath> using namespace std; typedef long long ll; const ll INF=1LL<<60; typedef pair<int,int> P; typedef pair<int,P> PP; const ll MOD=1e9+7; int main(){ int N,K; ll M; cin>>N>>M>>K; vector<ll> A(N); for(int i=0;i<N;i++){ cin>>A[i]; } sort(A.begin(),A.end()); reverse(A.begin(),A.end()); ll ans=min(A[0]*K,M); cout<<ans<<endl; }