Codeforces Round #454 (Div. 2, based on Technocup 2018 Elimination Round 4) A
来源:互联网 发布:java性能监控系统 编辑:程序博客网 时间:2024/05/29 03:13
根据题意小熊和masha两人都可以坐最小的车并且喜欢。并且这masha的身材也严格小于中熊和大熊的身材,因为如果不是严格小于,中熊和大熊喜欢的车masha不可能不喜欢。在这个前提下,小熊和masha两者取大则两者都喜欢,中熊和大熊都取两倍的车
#include <iostream>using namespace std;int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(d>2*c||c>2*d||b<=d||a<=d)cout<<-1; else cout<<2*a<<endl<<2*b<<endl<<max(c,d);}
阅读全文
0 0
- Codeforces Round #454 (Div. 2, based on Technocup 2018 Elimination Round 4) A
- Codeforces Round #454 (Div. 2, based on Technocup 2018 Elimination Round 4) A-C
- Codeforces Round #454 (Div. 2, based on Technocup 2018 Elimination Round 4) B
- Codeforces Round #454 (Div. 2, based on Technocup 2018 Elimination Round 4) C
- Codeforces Round #454 (Div. 2, based on Technocup 2018 Elimination Round 4) E
- Codeforces Round #440 (Div. 2, based on Technocup 2018 Elimination Round 2) A-C题解
- Codeforces Round #440 (Div. 2, based on Technocup 2018 Elimination) A. Search for Pretty Integers
- Codeforces Round #434 (Div. 1, based on Technocup 2018 Elimination Round 1) A-C题解
- Codeforces Round #440 (Div. 2, based on Technocup 2018 Elimination Round 2)
- Codeforces Round #440 (Div. 2, based on Technocup 2018 Elimination Round 2)
- Codeforces Round #440 (Div. 2, based on Technocup 2018 Elimination Round 2)
- Codeforces Round #440 (Div. 2, based on Technocup 2018 Elimination Round 2) 总结
- Codeforces Round #434 (Div. 2, based on Technocup 2018 Elimination Round 1)
- Codeforces Round #434 (Div. 2, based on Technocup 2018 Elimination Round 1)
- Codeforces Round #434 (Div. 2, based on Technocup 2018 Elimination Round 1) C
- Codeforces Round #434 (Div. 2, based on Technocup 2018 Elimination Round 1) D
- Codeforces Round #434 (Div. 2, based on Technocup 2018 Elimination Round 1) ABCDF
- Codeforces Round #445 (Div. 2, based on Technocup 2018 Elimination Round 3)
- 科技小论文?一些奇怪的东西?QTREE系列加上link和cut?。。。
- 多线程实现文件在多层目录中查找及拷贝到多层目录
- 数据结构实验之排序三:bucket sort
- HTML网页基础构成
- 074day(有关计算机内存知识的学习和位运算的复习)
- Codeforces Round #454 (Div. 2, based on Technocup 2018 Elimination Round 4) A
- javap——查看class文件的方法
- Codeforces Round #454 (Div. 2, based on Technocup 2018 Elimination Round 4) B
- Spring泛形注入,CGLIB动态代理
- java--多线程
- Cisco VLAN 常用命令
- 函数返回值问题
- 第四章 ALDS1_3_C:Doubly Linked List 链表
- Codeforces Round #454 (Div. 2, based on Technocup 2018 Elimination Round 4) C