摘要:
// 【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 阅读全文
摘要:
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) 阅读全文