Vitya has just started learning Berlanese language. It is known that Berlanese uses the Latin alphabet. Vowel letters are "a", "o", "u", "i", and "e". ...
分类:
其他好文 时间:
2018-10-01 17:11:16
阅读次数:
200
In a string S of lowercase letters, these letters form consecutive groups of the same character. For example, a string like S = "abbxxxxzyy" has the g ...
分类:
编程语言 时间:
2018-09-30 12:54:23
阅读次数:
247
We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would c ...
分类:
编程语言 时间:
2018-09-27 12:03:36
阅读次数:
157
You are given two strings ss and tt, both consisting only of lowercase Latin letters. The substring s[l..r]s[l..r] is the string which is obtained by ...
分类:
其他好文 时间:
2018-09-24 11:23:55
阅读次数:
202
A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one p... ...
分类:
其他好文 时间:
2018-09-23 11:33:42
阅读次数:
165
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac ...
分类:
其他好文 时间:
2018-09-22 22:24:31
阅读次数:
172
" 题目链接 " 题目描述 给定字符串S,求出S的一个子集,使得其中某一的字母的数量大于该子集字母数量的一半 若存在输出该子集的头和尾的坐标,若不存在则输出两个 $ 1 $ 数据范围: $ 2≦|S|≦10^5 $ $ S $ consists of lowercase letters. 思路 1. ...
分类:
其他好文 时间:
2018-09-17 19:30:27
阅读次数:
169
Now you have a string consists of uppercase letters, two integers AA and BB. We call a substring wonderful substring when the times it appears in that ...
分类:
其他好文 时间:
2018-09-16 15:59:07
阅读次数:
366
Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could ...
分类:
其他好文 时间:
2018-09-16 12:30:50
阅读次数:
236
Now you have a string consists of uppercase letters, two integers AA and BB. We call a substring wonderful substring when the times it appears in that ...
分类:
其他好文 时间:
2018-09-15 20:09:10
阅读次数:
251