ans

wangzhuoyang 2024-03-02 21:16:30 1 返回题目

#include <bits/stdc++.h> using namespace std; int main() { int x, y, z, n; cin >> x >> y >> z >> n; int s = 2 * x + 5 * y + 3 * z; if (s <= n) { cout << "Yes" << endl << n - s; } else cout << "No" << endl << s - n; return 0; }

{{ vote && vote.total.up }}