摘要: Hackerrank 2020 February 2014 解题报告 比赛链接Sherlock and Watson (20分)题意:给定一个数组,向右平移K次,然后有Q个询问,问第x位置上是几做法:直接模拟即可 1 #include 2 using namespace std; 3 int n,k,q; 4 int a[100100],b[100100]; 5 int main(){ 6 ios::sync_with_stdio(0); 7 cin>>n>>k>>q; 8 for(int i=0;i>a[i]; 10 } 11 for(... 阅读全文
posted @ 2014-02-28 23:50 thermal 阅读(939) 评论(0) 推荐(0) 编辑