103480: [Atcoder]ABC348 A - Penalty Kick
Description
Score: $100$ points
Problem Statement
Takahashi will have $N$ penalty kicks in a soccer match.
For the $i$-th penalty kick, he will fail if $i$ is a multiple of $3$, and succeed otherwise.
Print the results of his penalty kicks.
Constraints
- $1 \leq N \leq 100$
- All inputs are integers.
Input
The input is given from Standard Input in the following format:
$N$
Output
Print a string of length $N$ representing the results of Takahashi's penalty kicks. The $i$-th character $(1 \leq i \leq N)$ should be o
if Takahashi succeeds in the $i$-th penalty kick, and x
if he fails.
Sample Input 1
7
Sample Output 1
ooxooxo
Takahashi fails the third and sixth penalty kicks, so the third and sixth characters will be x
.
Sample Input 2
9
Sample Output 2
ooxooxoox
Input
Output
问题描述
在一场足球比赛中,高桥将有 $N$ 次点球机会。
对于第 $i$ 次点球,如果 $i$ 是 3 的倍数,他将会失败;否则,他将会成功。
打印出他的点球结果。
限制条件
- $1 \leq N \leq 100$
- 所有输入都是整数。
输入
输入数据将从标准输入按以下格式给出:
$N$
输出
打印一个长度为 $N$ 的字符串,表示高桥的点球结果。第 $i$ 个字符 $(1 \leq i \leq N)$ 应为 o
,表示高桥成功射入第 $i$ 个点球,为 x
表示失败。
样例输入 1
7
样例输出 1
ooxooxo
高桥在第三次和第六次点球失败,所以第 3 个和第 6 个字符为 x
。
样例输入 2
9
样例输出 2
ooxooxoox