[语言月赛202303] Hack Problem P

Luogu
IDLGB3727
Time1000ms
Memory512MB
DifficultyP2
2023Special JudgeO2优化语言月赛
下面程序想要实现的功能为: > 给出两个正整数 $x, y$,保证它们的最小公倍数($\mathrm{lcm}$)不大于 $10^9$。求它们的最小公倍数。 ```cpp #include <iostream> #include <algorithm> int main() { int x, y; std::cin >> x >> y; int ans = x * y / std::__gcd(x, y); std::cout << ans << std::endl; } ``` 但是这个程序存在一些问题,请你提交一个程序,你提交的程序**应当输出一组这道题的输入数据,使得上面的程序输出错误的结果**。 提示: 1. `__gcd(x, y)` 可以求出 $x$ 和 $y$ 的最大公因数。 2. $\mathrm{lcm}(x,y) \times\mathrm{gcd}(x,y)=x \times y$ ## Input 无 ## Output 你提交的程序输出的输入数据应当符合下面的格式: > $x \quad y$ 你给出的数据需要满足 $1 \leq x, y \leq 10^9$,且你**必须保证**两数的最小公倍数也不超过 $10^9$。 [samples]
API Response (JSON)
{
  "problem": {
    "name": "[语言月赛202303] Hack Problem P",
    "description": {
      "content": "下面程序想要实现的功能为: > 给出两个正整数 $x, y$,保证它们的最小公倍数($\\mathrm{lcm}$)不大于 $10^9$。求它们的最小公倍数。 ```cpp #include <iostream> #include <algorithm> int main() {   int x, y;   std::cin >> x >> y;   int ans = x * y / std",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 524288
    },
    "difficulty": {
      "LuoguStyle": "P2"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB3727"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "下面程序想要实现的功能为:\n\n> 给出两个正整数 $x, y$,保证它们的最小公倍数($\\mathrm{lcm}$)不大于 $10^9$。求它们的最小公倍数。\n\n```cpp\n#include <iostream>\n#include <algorithm>\n\nint main() {\n  int x, y;\n  std::cin >> x >> y;\n  int ans = x * y / std...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments