結果
問題 | No.2621 Fee Schedule |
ユーザー | nwo |
提出日時 | 2024-02-09 21:21:56 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 486 bytes |
コンパイル時間 | 5,023 ms |
コンパイル使用メモリ | 308,252 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-28 13:50:14 |
合計ジャッジ時間 | 5,599 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
ソースコード
#include<bits/stdc++.h> using namespace std; #include<atcoder/all> using namespace atcoder; #define rep(i,n) for (int i = 0; i < (n); ++i) using ld = long double; using ll = long long; template<class T> bool chmax(T &a, T b) { if(a<b) { a = b; return true; } return false; } template<class T> bool chmin(T &a, T b) { if(a>b) { a = b; return true; } return false; } using P = pair<int,int>; int main() { int A, B, C; cin >> A >> B >> C; cout << min(A*C,B) << endl; }