码迷,mamicode.com
首页 >  
搜索关键字:letters    ( 1345个结果
字符串练习题(2)
练习3:生成随机的字母和数字,需要类似格式: 字母数字字母数字字母数字,生成长度为10的字符串 >>> chr(random.randint(97,122)) #随机生成一个字母 'o' >>> random.randint(0,9) #随机生成一个数字 7 >>> chr(random.randi... ...
分类:其他好文   时间:2019-10-05 12:41:31    阅读次数:87
[LeetCode] 916. Word Subsets 单词子集合
We are given two arrays and of words. Each word is a string of lowercase letters. Now, say that?word is a subset of word if every letter in occurs in ...
分类:其他好文   时间:2019-10-05 00:40:31    阅读次数:110
CodeForces (字符串从字母a开始删除k个字母)
You are given a string s consisting of n lowercase Latin letters. Polycarp wants to remove exactly k characters (k≤n) from the string s. Polycarp uses ...
分类:其他好文   时间:2019-10-03 20:23:26    阅读次数:94
Codeforces Round #590 (Div. 3) D. Distinct Characters Queries(线段树, 位运算)
链接: https://codeforces.com/contest/1234/problem/D 题意: You are given a string s consisting of lowercase Latin letters and q queries for this string. Re ...
分类:其他好文   时间:2019-10-03 00:48:22    阅读次数:198
Codeforces Round #590 (Div. 3)
D. Distinct Characters Queries Description You are given a string ss consisting of lowercase Latin letters and qq queries for this string. Recall that ...
分类:其他好文   时间:2019-10-02 14:37:51    阅读次数:112
【leetcode】1209. Remove All Adjacent Duplicates in String II
题目如下: Given a string s, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them causing the left and the righ ...
分类:其他好文   时间:2019-10-02 10:55:30    阅读次数:87
CF1215 C Swap Letters(思维题)
链接:https://codeforces.com/problemset/problem/1215/C Swap Letters (2 seconds) Monocarp has got two strings ss and tt having equal length. Both strings ...
分类:其他好文   时间:2019-10-01 13:51:50    阅读次数:112
poj1080 - Human Gene Functions (dp)
题面 It is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted by four letters, A, C, ...
分类:其他好文   时间:2019-09-22 23:25:47    阅读次数:113
(Easy) Ransom Note - LeetCode
Description: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return tru ...
分类:其他好文   时间:2019-09-10 10:22:24    阅读次数:91
2019 宁夏网络赛
A、Maximum Element In A Stack As an ACM-ICPC newbie, Aishah is learning data structures in computer science. She has already known that a stack, as a d ...
分类:其他好文   时间:2019-09-03 21:55:44    阅读次数:102
1345条   上一页 1 ... 10 11 12 13 14 ... 135 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!