[语言月赛202302] 牵连的世界 (Easy Version)

Luogu
IDLGB3714
Time1000ms
Memory128MB
DifficultyP1
2023提交答案Special JudgeO2优化语言月赛
下面程序想要实现的功能为: > 输入 $n$ 和 $n$ 个数,统计其中奇数的个数。 ```cpp #include <iostream> using namespace std; int main() { int n, ans = 0; cin >> n; for(int i = 1, x; i <= n; i++) { cin >> x; if(x % 2 == 1) ++ans; } cout << ans << endl; } ``` 但是这个程序存在一些问题,请你提交一个程序,**你提交的程序应当输出一组这道题的输入数据,使得上面的程序输出错误的结果**。 ## Input 无输入 ## Output 你提交的程序输出的输入数据应当符合下面的格式: > $n$ > > $a_1\ a_2\ \cdots \ a_n$ 第一行为一个整数 $n(1 \le n \le 1000)$。 第二行为 $n$ 个整数 $a_i(-10^6 \le a_i \le 10^6)$,每两个整数之间由一个空格隔开。 [samples]
API Response (JSON)
{
  "problem": {
    "name": "[语言月赛202302] 牵连的世界 (Easy Version)",
    "description": {
      "content": "下面程序想要实现的功能为: > 输入 $n$ 和 $n$ 个数,统计其中奇数的个数。 ```cpp #include <iostream> using namespace std; int main() {   int n, ans = 0;   cin >> n;   for(int i = 1, x; i <= n; i++) {     cin >> x;     if(x % 2 =",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB3714"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "下面程序想要实现的功能为:\n\n> 输入 $n$ 和 $n$ 个数,统计其中奇数的个数。\n\n```cpp\n#include <iostream>\nusing namespace std;\n\nint main() {\n  int n, ans = 0;\n  cin >> n;\n  for(int i = 1, x; i <= n; i++) {\n    cin >> x;\n    if(x % 2 =...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments