摘要: //find_block //找到a所在堆p和高度h //clear_above //将p堆h高度上方所有方块归位 //pile_onto //将p堆h高度及上方所有方块移至p2 //print //打印 #include<iostream> #include<cstdio> #include<ve 阅读全文
posted @ 2021-07-05 20:26 智人心 阅读(71) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<algorithm> using namespace std; const int maxn = 10000; int main(){ int n,q,x,a[maxn],kase = 0; while(scanf("%d%d",&n,&q)==2 阅读全文
posted @ 2021-07-05 16:17 智人心 阅读(67) 评论(0) 推荐(0)
摘要: #include<iostream> #include<string> #include<sstream> using namespace std; int main(){ string line; while(getline(cin,line)){ long long sum = 0,x; str 阅读全文
posted @ 2021-07-05 15:42 智人心 阅读(39) 评论(0) 推荐(0)