请问一下各位大神,我哪错了???

lyh098 仙辞 2024-02-05 8:59:48 23

#include using namespace std;

int main() { int x, y; cin >> x >> y; for (int i = 0; i <= x; i++) { for (int j = 0; j <= x; j++) { if (i + j == x && i * 2 + j * 4 == y) { cout << i << endl << j; return 0; } } } return 0; }

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

共 2 条回复

lyh098 仙辞

哪里出错了呀?????????

wczzq 原神启动

你好像是判断那里出错了