Submission #00201
ソースコード
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 | #include <bits/stdc++.h> using i32 = int_fast32_t; using i64 = int_fast64_t; using u32 = uint_fast32_t; using u64 = uint_fast64_t; using f64 = double ; using f80 = long double ; #define FOR(v, a, b) for(i64 v = (a); v < (b); ++v) #define FORE(v, a, b) for(i64 v = (a); v <= (b); ++v) #define REP(v, n) FOR(v, 0, n) #define REPE(v, n) FORE(v, 0, n) #define REV(v, a, b) for(i64 v = (a); v >= (b); --v) #define ALL(x) (x).begin(), (x).end() #define RALL(x) (x).rbegin(), (x).rend() #define ITR(it, c) for(auto it = (c).begin(); it != (c).end(); ++it) #define RITR(it, c) for(auto it = (c).rbegin(); it != (c).rend(); ++it) #define EXIST(c,x) ((c).find(x) != (c).end()) #define fst first #define snd second #define UNIQ(v) (v).erase(unique(ALL(v)), (v).end()) #define bit(i) (1LL<<(i)) #ifdef DEBUG #include <Mylib/Debug/debug.cpp> #else #define dump(...) ((void)0) #endif using namespace std; template < typename I> void join(ostream &ost, I s, I t, string d= " " ){ for (auto i=s; i!=t; ++i){ if (i!=s)ost<<d; ost<<*i;}ost<<endl;} template < typename T> istream& operator>>(istream &is, vector<T> &v){ for (auto &a : v) is >> a; return is;} template < typename T> void puts_all( const T &value){std::cout << value << "\n" ;} template < typename T, typename ...Args> void puts_all( const T &value, const Args&... args){std::cout << value << " " ;puts_all(args...);} template < typename T, typename U> bool chmin(T &a, const U &b){ return (a>b ? a=b, true : false );} template < typename T, typename U> bool chmax(T &a, const U &b){ return (a<b ? a=b, true : false );} template < typename T, size_t N, typename U> void fill_array(T (&a)[N], const U &v){fill((U*)a, (U*)(a+N), v);} template < typename T> auto make_vector( int n, int m, const T &value){ return vector<vector<T>>(n, vector<T>(m, value));} struct Init{ Init(){ cin.tie(0); ios::sync_with_stdio( false ); cout << fixed << setprecision(12); cerr << fixed << setprecision(12); } }init; int main(){ int N, M, D; cin >> N >> M >> D; puts_all(min(N, M*D)); return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0001 - Eating NAMEKUZI |
ユーザー名 | Haar |
投稿日時 | 2020-03-02 21:35:29 |
言語 | C++17 |
状態 | Accepted |
得点 | 100 |
ソースコード長 | 2096 Byte |
最大実行時間 | 29 ms |
最大メモリ使用量 | 664 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 100 / 100 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 25 ms | 604 KB |
1
|
in02.txt | AC | 24 ms | 432 KB |
1
|
in03.txt | AC | 18 ms | 388 KB |
1
|
in04.txt | AC | 25 ms | 468 KB |
1
|
in05.txt | AC | 25 ms | 552 KB |
1
|
in06.txt | AC | 21 ms | 512 KB |
1
|
in07.txt | AC | 29 ms | 464 KB |
1
|
in08.txt | AC | 16 ms | 552 KB |
1
|
in09.txt | AC | 19 ms | 640 KB |
1
|
in10.txt | AC | 22 ms | 592 KB |
1
|
in11.txt | AC | 20 ms | 424 KB |
1
|
in12.txt | AC | 20 ms | 376 KB |
1
|
in13.txt | AC | 20 ms | 460 KB |
1
|
in14.txt | AC | 17 ms | 548 KB |
1
|
in15.txt | AC | 21 ms | 624 KB |
1
|
in16.txt | AC | 23 ms | 580 KB |
1
|
sample01.txt | AC | 22 ms | 664 KB |
1
|
sample02.txt | AC | 21 ms | 616 KB |
1
|