摘要: 问题描述 考虑一种简单的正则表达式: 只由 x ( ) | 组成的正则表达式。 小明想求出这个正则表达式能接受的最长字符串的长度。 例如 ((xx|xxx)x|(x|xx))xx 能接受的最长字符串是: xxxxxx,长度是6。 输入格式 ... 阅读全文
posted @ 2018-03-19 19:45 ffgcc 阅读(244) 评论(1) 推荐(0) 编辑
摘要: D. Gargari and Permutations time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standar... 阅读全文
posted @ 2018-03-19 16:19 ffgcc 阅读(175) 评论(0) 推荐(0) 编辑