以下の内容はhttps://blog.hamayanhamayan.com/entry/2019/06/10/003132より取得しました。


Airplane [AtCoder Beginner Contest 129 A]

https://atcoder.jp/contests/abc129/tasks/abc129_a

解説

https://atcoder.jp/contests/abc129/submissions/5859544

考えられるパターンはP+Q, P+R, Q+Rの三択なので、
最小のものが答え。

int P, Q, R;
//---------------------------------------------------------------------------------------------------
void _main() {
	cin >> P >> Q >> R;
	int ans = min({ P + Q, P + R, Q + R });
	cout << ans << endl;
}



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

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