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

浙公网安备 33010602011771号