摘要: // 【1, 2, 3, 4, 5】 -> [4, 5, 1, 2, 3] 查找某个元素,返回下标 int findNum(vector<int> &array, int target){ int left = 0; int right = array.size() - 1; while(left 阅读全文
posted @ 2020-08-28 20:48 威威后花园 阅读(273) 评论(0) 推荐(0) 编辑
摘要: map阶段 # -*- coding: utf-8 -*- import sys for line in sys.stdin: line = line.strip() words = line.split() for word in words: print("%s\t%s" % (word, 1) 阅读全文
posted @ 2020-08-28 16:30 威威后花园 阅读(252) 评论(0) 推荐(0) 编辑