随笔分类 -  ACM-codeforces

摘要:A.Bark to Unlock time limit per test: 2 seconds 题意: 先给出一个长度是2的字符串作为密码,在给出n个长度是2字符串,判断这些字符串的组合可不可以组成密码。 思路: 先处理给出的字符串中是否含有密码,然后两个两个的判断。注意每个字符串可以多次利用。 B 阅读全文
posted @ 2017-10-05 19:45 zprhhs 阅读(259) 评论(0) 推荐(0) 编辑
摘要:"Codeforces 426(div2)" A.The Useless Toy 题意: 字符 、')||(ch1 == ' '&&ch2=='v')||(ch1=='v'&&ch2=='')||(ch1 == ' '&&ch2=='v')||(ch1=='v'&&ch2=='= open[j] & 阅读全文
posted @ 2017-07-31 12:29 zprhhs 阅读(143) 评论(0) 推荐(0) 编辑
摘要:B. Petya and Exam 题意: 给你一个定义为好的字符集合和一个字符串s进行字符匹配。字符s为小写字母、‘*’和‘?’组成。其中‘?’可以任意替换一个好的字符,‘*’可以替换一个由坏的字符组成的串或者去掉‘*’,‘*’最多出现一次。然后给出n个字符串是否匹配。 思路: 直接模拟,要是‘? 阅读全文
posted @ 2017-07-26 11:20 zprhhs 阅读(153) 评论(0) 推荐(0) 编辑
摘要:A Sagheer and Crossroads 题意: 给你一个双向行驶的十字路口, 每条道路上都以四个灯, l, s, r, p分别表示如图三个方向上和人行道上的红绿灯。如果汽车在绿灯的时候开车撞到了人行道上的人,就会发生交通意外。现在给你每条路上的红绿灯,判断是否会发生交通意外。 思路: 直接 阅读全文
posted @ 2017-06-03 16:57 zprhhs 阅读(153) 评论(0) 推荐(0) 编辑
摘要:Splitting the Uniqueness time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Splitting the Un 阅读全文
posted @ 2016-10-19 21:54 zprhhs 阅读(181) 评论(0) 推荐(0) 编辑
摘要:New Year Permutation time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output New Year Permutatio 阅读全文
posted @ 2016-09-29 20:02 zprhhs 阅读(139) 评论(0) 推荐(0) 编辑
摘要:C. New Year Book Reading time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output New Year is com 阅读全文
posted @ 2016-09-29 19:56 zprhhs 阅读(196) 评论(0) 推荐(0) 编辑
摘要:Interesting drink time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Interesting drink time 阅读全文
posted @ 2016-08-18 09:11 zprhhs 阅读(166) 评论(0) 推荐(0) 编辑

Power by awescnb