11 2019 档案

摘要:题意 取一个数k 使a[i]上每一个数都可以整除k 0也可以 你可以移动a[i] 每移动一个单位向相邻单位消耗1时间 问最少消耗多少时间 如果不能 输出-1 #include <iostream> #include<algorithm> #include<queue> #include<vector 阅读全文
posted @ 2019-11-27 19:24 AAAzhuo 阅读(176) 评论(0) 推荐(0)
摘要:#include <iostream> #include<algorithm> #include<queue> #include<vector> using namespace std; const int maxn=100010; vector<int>g[maxn]; int con[maxn] 阅读全文
posted @ 2019-11-25 21:20 AAAzhuo 阅读(200) 评论(0) 推荐(0)
摘要:http://codeforces.com/contest/1257/problem/D D. Yet Another Monster Killing Problemtime limit per test2 secondsmemory limit per test256 megabytesinput 阅读全文
posted @ 2019-11-17 19:08 AAAzhuo 阅读(278) 评论(0) 推荐(0)