【AtCoder】ABC 185 A - ABC Preparation

A - ABC Preparation
AtCoder is a programming contest site for anyone from beginners to experts. We hold weekly programming contests online.
AtCoder
実行時間制限: 2 sec / メモリ制限: 1024 MiB / Difficulty: 7 / NoviSteps: 9Q / 配点: 100 点
問題概要
あるプログラミングコンテストを 回開くには、 点問題、 点問題、 点問題、 点問題が 問ずつ必要である。
点問題の案がそれぞれ 個あるとき、コンテストを最大で何回開けるか求めよ。 なお、同じ問題案は 度しか使えない。
制約
- 入力は全て整数
考察
のうち、最小のものがコンテストを開ける回数の上限となる。
実装例
CPP
1.#include <bits/stdc++.h>2.using namespace std;3. 4.// ======================================== //5. 6.int main()7.{8. int A1, A2, A3, A4;9. cin >> A1 >> A2 >> A3 >> A4;10. 11. cout << min({ A1, A2, A3, A4 }) << endl;12. 13. return 0;14.}https://atcoder.jp/contests/abc185/submissions/80403041
atcoder.jp
実装時間: 5 分以内
コメント
まあやるだけ。





