[语言月赛 202511] 基米起床

Luogu
IDLGB4432
Time1000ms
Memory512MB
DifficultyP1
2025循环结构语言月赛
哈基米起床后,决定创作一幅伟大的画。画由 $n\times m$ 的字符组成,其中 $m$ 满足 $m\bmod 4=1$。 字符画的内容为蛇形,用字符 `x` 表示蛇身,字符 `.` 表示背景。 例如,当 $n=4, m=5$ 时,图案如下。 ```plain x.xxx x.x.x x.x.x xxx.x ``` 现在,给定 $n,m$,请你绘图。 ## Input 输入一行两个整数 $n,m$,由空格分隔。 ## Output 输出 $n$ 行,每行 $m$ 个字符,表示字符画。 [samples] ## Note 对于 $20\%$ 的测试数据,$n=2$。 对于另外 $20\%$ 的测试数据,$m=1$。 对于 $100\%$ 的测试数据,$2 \le n \le 500$,$1 \le m \le 500$,$m \bmod 4 = 1$。
Samples
Input #1
4 5
Output #1
x.xxx
x.x.x
x.x.x
xxx.x
Input #2
3 1
Output #2
x
x
x
Input #3
2 9
Output #3
x.xxx.xxx
xxx.xxx.x
API Response (JSON)
{
  "problem": {
    "name": "[语言月赛 202511] 基米起床",
    "description": {
      "content": "哈基米起床后,决定创作一幅伟大的画。画由 $n\\times m$ 的字符组成,其中 $m$ 满足 $m\\bmod 4=1$。 字符画的内容为蛇形,用字符 `x` 表示蛇身,字符 `.` 表示背景。 例如,当 $n=4, m=5$ 时,图案如下。 ```plain x.xxx x.x.x x.x.x xxx.x ``` 现在,给定 $n,m$,请你绘图。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 524288
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB4432"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "哈基米起床后,决定创作一幅伟大的画。画由 $n\\times m$ 的字符组成,其中 $m$ 满足 $m\\bmod 4=1$。\n\n字符画的内容为蛇形,用字符 `x` 表示蛇身,字符 `.` 表示背景。\n\n例如,当 $n=4, m=5$ 时,图案如下。\n\n```plain\nx.xxx\nx.x.x\nx.x.x\nxxx.x\n```\n\n现在,给定 $n,m$,请你绘图。\n\n## Input\n\n输入一行两个整...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments