Print 341

AtCoder
IDabc341_a
Time2000ms
Memory256MB
Difficulty
Given a positive integer $N$, print a string of $N$ zeros and $N+1$ ones where `0` and `1` alternate. ## Constraints * $N$ is an integer. * $1 \leq N \leq 100$ ## Input The input is given from Standard Input in the following format: $N$ [samples]
Samples
Input #1
4
Output #1
101010101

A string of four zeros and five ones where `0` and `1` alternate is `101010101`.
Input #2
1
Output #2
101
Input #3
10
Output #3
101010101010101010101
API Response (JSON)
{
  "problem": {
    "name": "Print 341",
    "description": {
      "content": "Given a positive integer $N$, print a string of $N$ zeros and $N+1$ ones where `0` and `1` alternate.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc341_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Given a positive integer $N$, print a string of $N$ zeros and $N+1$ ones where `0` and `1` alternate.\n\n## Constraints\n\n*   $N$ is an integer.\n*   $1 \\leq N \\leq 100$\n\n## Input\n\nThe input is given from...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments