Codeforces Round #820 (Div. 3) A B C D E
发布时间
阅读量:
阅读量
Codeforces Round #820 Div. 3赛事分析
-
- A Two Elevators
- B Decode String
- C Jumping on Tiles
- D Friends and the Restaurant
- E Guess the Cycle Size
- A Two Elevators
起初传闻是比拼速度的题目,最终只完成了两道,水平尚浅,还需加倍努力!
A Two Elevators
基础性模拟
#include<bits/stdc++.h>
using namespace std;
#define int long long
int T;
int n, m, c;
signed main()
{
cin>>T;
while(T -- ){
cin>>n>>m>>c;
int t1 = n;
int t2 = abs(m - c) + c;
if(t1 < t2) cout<<1<<endl;
else if(t1 == t2) cout<<3<<endl;
else if(t2 < t1) cout<<2<<e
全部评论 (0)
还没有任何评论哟~
