摘要: 题目链接:http://oj.tfls.net/p/83 写法一:找到第一个k和最后一个k的位置,区间长度=尾地址-首地址+1; #include<bits/stdc++.h> using namespace std; int ans; int a[10000010]; //返回第一个p的位置,如不 阅读全文
posted @ 2022-08-16 21:47 TFLSZXL 阅读(870) 评论(0) 推荐(0)