以下の内容はhttps://blog.hamayanhamayan.com/entry/2019/07/08/212853より取得しました。


T or T [AtCoder Beginner Contest 133 A]

https://atcoder.jp/contests/abc133/tasks/abc133_a

解説

https://atcoder.jp/contests/abc133/submissions/6311780

選択肢は2つある。全員電車か、全員タクシーである。
よって、min(N * A, B)が答え。

int N, A, B;
//---------------------------------------------------------------------------------------------------
void _main() {
	cin >> N >> A >> B;
	int ans = min(N * A, B);
	cout << ans << endl;
}



以上の内容はhttps://blog.hamayanhamayan.com/entry/2019/07/08/212853より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14