练习3:生成随机的字母和数字,需要类似格式: 字母数字字母数字字母数字,生成长度为10的字符串 >>> chr(random.randint(97,122)) #随机生成一个字母 'o' >>> random.randint(0,9) #随机生成一个数字 7 >>> chr(random.randi... ...
分类:
其他好文 时间:
2019-10-05 12:41:31
阅读次数:
87
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
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
链接: 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
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
题目如下: 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
链接: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
题面 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
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
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