A. Div. 64

time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Top-model Izabella participates in the competition. She wants to impress judges and show her mathematical skills.

Her problem is following: for given string, consisting of only 0 and 1, tell if it's possible to remove some digits in such a way, that remaining number is a representation of some positive integer, divisible by 64, in the binary numerical system.

Input

In the only line given a non-empty binary string s with length up to 100.

Output

Print «yes» (without quotes) if it's possible to remove digits required way and «no» otherwise.

Examples
input
100010001
output
yes
input
100
output
no
Note

In the first test case, you can get string 1 000 000 after removing two ones which is a representation of number 64 in the binary numerical system.

You can read more about binary numeral system representation here: https://en.wikipedia.org/wiki/Binary_system


解题说明:此题是判断一个二进制数去除一些后能否被64整除,其实就是确保1后面至少有6个0即可。

#include<cstdio>
#include<iostream>
#include<string>
#include<cstring>
#include<cmath>
using namespace std;

char s[105];
int main() 
{
	scanf("%s", s);
	int len = strlen(s);
	int i = 0, cnt = 0;
	while (s[i] == '0')
	{
		i++;
	}
	for (; i < len; i++)
	{
		if (s[i] == '0')
		{
			cnt++;
		}
	}
	if (cnt >= 6)
	{
		printf("yes\n");
	}
	else
	{
		printf("no\n");
	}
	return 0;
}


PDF.js是一个用于在网页上预览PDF文件的JavaScript库。如果你想使用PDF.js来预览base64编码的PDF文件,你可以按照以下步骤进行操作: 1. 首先,你需要将base64编码的PDF数据转换为Blob对象。你可以使用atob函数将base64字符串解码为二进制数据,然后使用Blob构造函数将二进制数据转换为Blob对象。 2. 接下来,你需要在HTML文件中引入PDF.js的相关脚本和样式表。你可以在https://mozilla.github.io/pdf.js/getting_started/页面上找到相关的资源链接。 3. 在你的HTML文件中创建一个用于显示PDF的容器元素,例如一个div元素。 4. 使用JavaScript代码,通过PDF.js的API加载和显示PDF文件。你可以使用PDFViewerApplication.open方法来加载PDF文件,将Blob对象作为参数传递给该方法。 5. 最后,你可以根据需要自定义PDF预览的样式和功能,例如添加工具栏、翻页等。 请注意,以上步骤只是一个基本的示例,你可能需要根据你的具体需求进行适当的修改和扩展。你可以参考Mozilla开发者网络(MDN)上的PDF.js文档和示例代码,以获取更详细的信息和指导。 #### 引用[.reference_title] - *1* [pdf.js 怎么预览 base64 类型的 pdf 文件](https://blog.csdn.net/kaimo313/article/details/125887227)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [使用pdf.js 预览pdf文件(BASE64格式)前端](https://blog.csdn.net/weixin_41668951/article/details/118547632)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值