結果
問題 |
No.1517 Party Location
|
ユーザー |
|
提出日時 | 2025-07-12 04:53:51 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 3,853 ms |
コンパイル使用メモリ | 272,156 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-07-12 04:53:56 |
合計ジャッジ時間 | 4,764 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(nullptr); int d, a, b; cin >> d >> a >> b; if(a>=b) { cout<<(b*d)<<endl; }else{ cout<<(a-b)*d+b*d<<endl; } }