题目意思我没读懂——0?
查看原帖
题目意思我没读懂——0?
639449
Dreamer_002楼主2023/5/25 19:25

题目的这段话是什么意思?

但是这个程序存在一些问题,请你提交一个程序,你提交的程序应当输出一组这道题的输入数据,使得上面的程序输出错误的结果。

代码

#include <iostream>
#include <algorithm>

int main() {
  long long x, y;
  std::cin >> x >> y;
  std::cout << x << y;
  long long ans = x * y / std::__gcd(x, y);
  std::cout << ans << std::endl;
}

???蒟蒻求助

2023/5/25 19:25
加载中...