103230: [Atcoder]ABC323 A - Weak Beats

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:4 Solved:0

Description

Score : $100$ points

Problem Statement

You are given a string $S$ of length $16$ consisting of 0 and 1.

If the $i$-th character of $S$ is 0 for every even number $i$ from $2$ through $16$, print Yes; otherwise, print No.

Constraints

  • $S$ is a string of length $16$ consisting of 0 and 1.

Input

The input is given from Standard Input in the following format:

$S$

Output

If the $i$-th character of $S$ is 0 for every even number $i$ from $2$ through $16$, print Yes; otherwise, print No.


Sample Input 1

1001000000001010

Sample Output 1

No

The $4$-th character of $S=$ 1001000000001010 is 1, so you should print No.


Sample Input 2

1010100000101000

Sample Output 2

Yes

Every even-positioned character in $S=$ 1010100000101000 is 0, so you should print Yes.


Sample Input 3

1111111111111111

Sample Output 3

No

Every even-positioned character in $S$ is 1. Particularly, they are not all 0, so you should print No.

Output

分数:100分

问题描述

给你一个长度为16的字符串$S$,由01组成。

如果$S$的第$i$个字符为0,对所有从2到16的偶数$i$都成立,则输出Yes;否则,输出No

约束条件

  • $S$是一个长度为16的字符串,由01组成。

输入

输入通过标准输入给出以下格式:

$S$

输出

如果$S$的第$i$个字符为0,对所有从2到16的偶数$i$都成立,则输出Yes;否则,输出No


样例输入1

1001000000001010

样例输出1

No

$S=$ 1001000000001010的第4个字符是1,所以你应该输出No


样例输入2

1010100000101000

样例输出2

Yes

$S=$ 1010100000101000中每个偶数位置的字符都是0,所以你应该输出Yes


样例输入3

1111111111111111

样例输出3

No

$S$中的每个偶数位置的字符都是1。 特别是,它们不都是0,所以你应该输出No

HINT

16位01串,是否偶数位都是0?

加入题单

上一题 下一题 算法标签: