結果
問題 | No.1517 Party Location |
ユーザー |
![]() |
提出日時 | 2021-05-28 22:03:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 415 bytes |
コンパイル時間 | 853 ms |
コンパイル使用メモリ | 68,608 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 10:54:40 |
合計ジャッジ時間 | 1,415 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <iostream>#include <vector>using namespace std;#define rep(i,a,n) for (int i = 0; i < n; i++)int rp() {int n;cin >> n;return n;}vector<int> input(int n) {vector<int>vec(n);rep(i, 0, n) {vec.at(i) = rp();}return vec;}int main() {int d = rp(), a = rp(), b = rp();if (a == b) {cout << a * d;}else if (a > b) {cout << b * d;}else if (a < b) {cout << a * d;}}