随笔分类 -  ACM--Codeforce

摘要:A string is binary, if it consists only of characters "0" and "1". String v is a substring of string w if it has a non-zero length and can be read sta 阅读全文
posted @ 2016-05-10 19:06 zhaop 阅读(488) 评论(0) 推荐(0) 编辑
摘要:wo integers x and y are compatible, if the result of their bitwise "AND" equals zero, that is, a&b = 0. For example, numbers90(10110102) and 36(100100 阅读全文
posted @ 2016-05-10 18:54 zhaop 阅读(330) 评论(0) 推荐(0) 编辑
摘要:题目链接 题意:看一个图片需要1单位时间,如果是 w 需要翻转 b 时间,切换到相邻位置(往左或者往右)需要 a 时间,求T时间最多能看几张图片 从第一个开始向右走看若干个图片然后往如果往左走就不会再往右走了,也就是只能一次改变方向,多次改变方向就得不偿失了,浪费时间。所以一次枚举能看图片的数量n, 阅读全文
posted @ 2016-04-17 23:30 zhaop 阅读(177) 评论(0) 推荐(0) 编辑
摘要:A remote island chain contains n islands, labeled 1 through n. Bidirectional bridges connect the islands to form a simple cycle — a bridge connects is 阅读全文
posted @ 2016-03-14 19:16 zhaop 阅读(270) 评论(0) 推荐(0) 编辑
摘要:E. Simple Skewness time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Define the simple ske 阅读全文
posted @ 2016-02-18 18:30 zhaop 阅读(249) 评论(0) 推荐(0) 编辑
摘要:D. Jerry's Protest time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Andrew and Jerry are 阅读全文
posted @ 2016-02-18 18:23 zhaop 阅读(233) 评论(0) 推荐(0) 编辑
摘要:C. Block Towers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Students in a class are 阅读全文
posted @ 2016-02-16 22:40 zhaop 阅读(315) 评论(0) 推荐(0) 编辑
摘要:C. Watering Flowerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA flowerbed has many flowers ... 阅读全文
posted @ 2016-01-24 15:48 zhaop 阅读(301) 评论(0) 推荐(0) 编辑
摘要:Ctime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter making bad dives into swimming pools, Wilb... 阅读全文
posted @ 2015-11-20 15:36 zhaop 阅读(194) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示