【CodeForces】Mail.Ru Cup 2018 Round 1 (Div. 1 + Div. 2) 题解
【比赛链接】
点击打开连接
【题解链接】
点击打开链接
**【A】**Elevator or Stairs?
【思路要点】
按照题意计算两种方式的用时,取较优的方案采纳。
时间复杂度 O(1)O(1)O(1) 。
【代码】
#include<bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 5...
原创
2018-10-21 14:28:31 ·
929 阅读 ·
1 评论