摘要:
首先是官方给的定义(我是用的VsCode,鼠标放置在tile上出现的),建议直接看后面的示例。 def tile(A, reps) Construct an array by repeating A the number of times given by reps. If reps has len 阅读全文
摘要:
1、字符串解析将字符串看成不同的字符切片,切片不可重复,按字母序输出所有切片(每个切片一行) 输入: aaabbcaaabaa 输出: aa aaa b bb c #include <iostream> #include <set> using namespace std; int main() { 阅读全文
摘要:
1、求两个数的最大公约数 示例: 输入:24 18 输出:6 #include <iostream> #include <math.h> using namespace std; int main() { int a, b, i, j, m; while (cin >> a >> b) { m = 阅读全文