随笔分类 - 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
阅读全文
摘要: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
阅读全文
摘要:题目链接 题意:看一个图片需要1单位时间,如果是 w 需要翻转 b 时间,切换到相邻位置(往左或者往右)需要 a 时间,求T时间最多能看几张图片 从第一个开始向右走看若干个图片然后往如果往左走就不会再往右走了,也就是只能一次改变方向,多次改变方向就得不偿失了,浪费时间。所以一次枚举能看图片的数量n,
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:C. Watering Flowerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA flowerbed has many flowers ...
阅读全文
摘要:Ctime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter making bad dives into swimming pools, Wilb...
阅读全文