Codeforces 145E. Lucky Queries 线段树
摘要:题目链接; 题目描述: Petya loves lucky numbers very much. Everybody knows that lucky numbers are positive integers whose decimal record contains only the lucky
阅读全文
posted @
2018-03-30 13:40
Kevin_Zzzzz
阅读(314)
推荐(0)
Codeforces 103B. Cthulhu 并查集运用
摘要:题目链接; 题面: ...Once upon a time a man came to the sea. The sea was stormy and dark. The man started to call for the little mermaid to appear but alas, h
阅读全文
posted @
2018-03-30 13:19
Kevin_Zzzzz
阅读(340)
推荐(0)
C++ STL库常用模板与函数用法总结
摘要:全排列函数: next_permutation() 函数原型为:bool next_permutation(iterator start,iterator end) 需要传入一个升序序列,以及迭代器的首位指针,当当前序列不存在下一个排列时,函数返回false,否则返回true。 反转函数:rever
阅读全文
posted @
2018-03-21 20:41
Kevin_Zzzzz
阅读(1638)
推荐(0)
ACM竞赛高校联盟训练赛8--翻转括号
摘要:题目链接: https://nanti.jisuanke.com/t/24214 可爱的PLY有一个长度为nn的括号序列a[1-n]a[1−n](即仅由字符'('与字符')'组成的字符串)。某一天,PLY的心上人Gay王·齐齐去PLY家玩耍,他对这个括号序列很是喜欢,PLY说只要齐齐能答对一个问题就
阅读全文
posted @
2018-03-20 18:00
Kevin_Zzzzz
阅读(499)
推荐(0)