用户:
源码大师查看:2 回复:1 评论:2 创建时间:2020-03-17T18:28:57
看过来,上面是第一道题,看看能不能过关...

#include <iostream>
using namespace std;
int main()
{
int n, x, y;
cin >> n;
for (x = 0; x <= 10000; x++)
{
y = n - x;
if (y > 10000 || y < 0)
{
continue;
}
cout << x << " " << y << endl;
}
return 0;
}
对吗?
点赞0
评论