Submission #00011


ソースコード

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
80
81
82
83
84
85
86
87
88
89
90
91
92
#include <bits/stdc++.h>
using namespace std;
using int64 = long long;
const int mod = 1e9 + 7;
const int64 infll = (1LL << 58) - 1;
const int inf = (1 << 30) - 1;
struct IoSetup {
IoSetup() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
cout << fixed << setprecision(10);
cerr << fixed << setprecision(10);
}
} iosetup;
template< typename T1, typename T2 >
ostream &operator<<(ostream &os, const pair< T1, T2 > &p) {
os << p.first << " " << p.second;
return os;
}
template< typename T1, typename T2 >
istream &operator>>(istream &is, pair< T1, T2 > &p) {
is >> p.first >> p.second;
return is;
}
template< typename T >
ostream &operator<<(ostream &os, const vector< T > &v) {
for(int i = 0; i < (int) v.size(); i++) {
os << v[i] << (i + 1 != v.size() ? " " : "");
}
return os;
}
template< typename T >
istream &operator>>(istream &is, vector< T > &v) {
for(T &in : v) is >> in;
return is;
}
template< typename T1, typename T2 >
inline bool chmax(T1 &a, T2 b) { return a < b && (a = b, true); }
template< typename T1, typename T2 >
inline bool chmin(T1 &a, T2 b) { return a > b && (a = b, true); }
template< typename T = int64 >
vector< T > make_v(size_t a) {
return vector< T >(a);
}
template< typename T, typename... Ts >
auto make_v(size_t a, Ts... ts) {
return vector< decltype(make_v< T >(ts...)) >(a, make_v< T >(ts...));
}
template< typename T, typename V >
typename enable_if< is_class< T >::value == 0 >::type fill_v(T &t, const V &v) {
t = v;
}
template< typename T, typename V >
typename enable_if< is_class< T >::value != 0 >::type fill_v(T &t, const V &v) {
for(auto &e : t) fill_v(e, v);
}
template< typename F >
struct FixPoint : F {
FixPoint(F &&f) : F(forward< F >(f)) {}
template< typename... Args >
decltype(auto) operator()(Args &&... args) const {
return F::operator()(*this, forward< Args >(args)...);
}
};
template< typename F >
inline decltype(auto) MFP(F &&f) {
return FixPoint< F >{forward< F >(f)};
}
int main() {
int N, M, D;
cin >> N >> M >> D;
cout << min(N, M * D) << endl;
}

ステータス

項目 データ
問題 0001 - Eating NAMEKUZI
ユーザー名 ei1333
投稿日時 2020-03-02 21:01:15
言語 C++17
状態 Accepted
得点 100
ソースコード長 2189 Byte
最大実行時間 42 ms
最大メモリ使用量 604 KB

セット

セット 得点 Cases
1 ALL 100 / 100 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in01.txt AC 22 ms 472 KB
1
in02.txt AC 17 ms 556 KB
1
in03.txt AC 18 ms 512 KB
1
in04.txt AC 22 ms 472 KB
1
in05.txt AC 28 ms 432 KB
1
in06.txt AC 18 ms 384 KB
1
in07.txt AC 25 ms 472 KB
1
in08.txt AC 42 ms 432 KB
1
in09.txt AC 25 ms 388 KB
1
in10.txt AC 16 ms 604 KB
1
in11.txt AC 19 ms 556 KB
1
in12.txt AC 20 ms 512 KB
1
in13.txt AC 19 ms 596 KB
1
in14.txt AC 24 ms 548 KB
1
in15.txt AC 20 ms 504 KB
1
in16.txt AC 30 ms 456 KB
1
sample01.txt AC 24 ms 408 KB
1
sample02.txt AC 15 ms 496 KB
1