Submission #00020
ソースコード
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 | #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair< int , int > P; #define mod 1000000007 #define inf 1000000000 #define all(x) (x).begin(), (x).end() #define pb push_back #define popcount(x) __builtin_popcountll(x) const long double PI = acos (-1); ll gcd(ll a,ll b){ return b ? gcd(b,a%b) : a;} ll lcm(ll a,ll b){ return a / gcd(a,b) * b;} int main(){ ll n, m, d; cin >> n >> m >> d; if (m * d > n) cout << n << endl; else cout << m * d << endl; return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0001 - Eating NAMEKUZI |
ユーザー名 | Hasegawa_frog |
投稿日時 | 2020-03-02 21:01:36 |
言語 | C++14 |
状態 | Accepted |
得点 | 100 |
ソースコード長 | 527 Byte |
最大実行時間 | 27 ms |
最大メモリ使用量 | 672 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 100 / 100 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in01.txt | AC | 21 ms | 604 KB |
1
|
in02.txt | AC | 22 ms | 572 KB |
1
|
in03.txt | AC | 20 ms | 672 KB |
1
|
in04.txt | AC | 22 ms | 516 KB |
1
|
in05.txt | AC | 19 ms | 488 KB |
1
|
in06.txt | AC | 19 ms | 464 KB |
1
|
in07.txt | AC | 25 ms | 432 KB |
1
|
in08.txt | AC | 19 ms | 532 KB |
1
|
in09.txt | AC | 24 ms | 372 KB |
1
|
in10.txt | AC | 17 ms | 472 KB |
1
|
in11.txt | AC | 19 ms | 444 KB |
1
|
in12.txt | AC | 17 ms | 412 KB |
1
|
in13.txt | AC | 18 ms | 512 KB |
1
|
in14.txt | AC | 20 ms | 604 KB |
1
|
in15.txt | AC | 20 ms | 572 KB |
1
|
in16.txt | AC | 21 ms | 668 KB |
1
|
sample01.txt | AC | 27 ms | 508 KB |
1
|
sample02.txt | AC | 22 ms | 612 KB |
1
|