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


Transfer [AtCoder Beginner Contest 136 A]

https://atcoder.jp/contests/abc136/tasks/abc136_a

解説

https://atcoder.jp/contests/abc136/submissions/6734374

実装問題。
容器2から移せる水の量はmin(A-B, C)であるため、この分だけ減らした残りを答えよう。

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



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

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