Submission #00007
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | #pragma region macro #include <bits/stdc++.h> using i64 = int_fast64_t; #define repeat(i, a, b) for(int i = (a); (i) < (b); ++(i)) #define rep(i, n) repeat(i, 0, n) namespace std { template < typename A, typename B> string to_string(pair<A, B> p); string to_string( const string &s) { return '"' + s + '"' ; } string to_string( const char *s) { return to_string((string)s); } string to_string( bool b) { return (b ? "true" : "false" ); } string to_string(vector< bool > v) { bool first = true ; string res = "{" ; for ( int i = 0; i < static_cast < int >(v.size()); i++) { if (!first) { res += ", " ; } first = false ; res += to_string(v[i]); } res += "}" ; return res; } template < size_t N> string to_string(bitset<N> v) { string res = "" ; for ( size_t i = 0; i < N; i++) { res += static_cast < char >( '0' + v[i]); } return res; } template < typename A> string to_string(A v) { bool first = true ; string res = "{" ; for ( const auto &x : v) { if (!first) { res += ", " ; } first = false ; res += to_string(x); } res += "}" ; return res; } template < typename A, typename B> string to_string(pair<A, B> p) { return "(" + to_string(p.first) + ", " + to_string(p.second) + ")" ; } }; // namespace std #pragma endregion void solve() { int n, m, d; std::cin >> n >> m >> d; std::cout << std::min(n, m * d) << std::endl; } int main() { // std::ios::sync_with_stdio(false); std::cin.tie(nullptr); solve(); return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0001 - Eating NAMEKUZI |
ユーザー名 | edamat |
投稿日時 | 2020-03-02 21:01:10 |
言語 | C++17 |
状態 | Accepted |
得点 | 100 |
ソースコード長 | 1670 Byte |
最大実行時間 | 29 ms |
最大メモリ使用量 | 696 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 100 / 100 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 16 ms | 604 KB |
1
|
in02.txt | AC | 26 ms | 696 KB |
1
|
in03.txt | AC | 21 ms | 540 KB |
1
|
in04.txt | AC | 16 ms | 512 KB |
1
|
in05.txt | AC | 25 ms | 484 KB |
1
|
in06.txt | AC | 22 ms | 584 KB |
1
|
in07.txt | AC | 22 ms | 560 KB |
1
|
in08.txt | AC | 15 ms | 656 KB |
1
|
in09.txt | AC | 20 ms | 500 KB |
1
|
in10.txt | AC | 25 ms | 468 KB |
1
|
in11.txt | AC | 29 ms | 568 KB |
1
|
in12.txt | AC | 18 ms | 540 KB |
1
|
in13.txt | AC | 21 ms | 640 KB |
1
|
in14.txt | AC | 20 ms | 608 KB |
1
|
in15.txt | AC | 20 ms | 584 KB |
1
|
in16.txt | AC | 26 ms | 560 KB |
1
|
sample01.txt | AC | 18 ms | 528 KB |
1
|
sample02.txt | AC | 19 ms | 628 KB |
1
|