摘要:
#AtCoder Beginner Contest 186 B - Blocks on Grid(模拟) 参考代码 点此展开 #include<bits/stdc++.h> using namespace std; const int N=110; int g[N][N]; int main() { 阅读全文
摘要:
比赛地址 A - ABC Preparation 参考代码 点此展开 #include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d; cout<<min(min(a,b),min(c,d) 阅读全文
摘要:
Codeforces地址 C. The Sports Festival(区间DP) 题目要求我们给出重新排列出发顺序后$\sum\limits_d_i$的最小值,如果我们使用暴力计算的话,由于$n$的范围较大,一定会超时。但是我们可以使用动态规划的方式来计算。我们先来考虑最后一个人出发时候的差值是多 阅读全文