(2016弱校联盟十一专场10.2) E.Coins
很久之前写的了,好像是对拍打表过的,推一下就行了。
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ll a,b,c;
scanf("%lld%lld%lld",&a,&b,&c);
ll ans=c*;
if((a>=&&b>=)||(a>=))
printf("%lld\n",ans+a+b*);
else if(a==&&b==)
printf("%lld\n",c);
else if((a==&&b==)||(a==&&b==))
printf("%lld\n",c*+);
else if(b==)
printf("%lld\n",c);
else if(c==)
printf("%lld\n",b);
else
printf("%lld\n",c*+b*-);
return ;
}
(2016弱校联盟十一专场10.2) E.Coins的更多相关文章
- 2016弱校联盟十一专场10.5---As Easy As Possible(倍增)
		题目链接 https://acm.bnu.edu.cn/v3/contest_show.php?cid=8506#problem/A problem description As we know, t ... 
- 2016弱校联盟十一专场10.3---Similarity of Subtrees(深搜+hash、映射)
		题目链接 https://acm.bnu.edu.cn/v3/problem_show.php?pid=52310 problem description Define the depth of a ... 
- (2016弱校联盟十一专场10.3)	D	Parentheses
		题目链接 把左括号看成A右括号看成B,推一下就行了.好久之前写的,推到最后发现是一个有规律的序列. #include <bits/stdc++.h> using namespace std ... 
- (2016弱校联盟十一专场10.3) 	B.Help the Princess!
		题目链接 宽搜一下就行. #include <iostream> #include<cstdio> #include<cstring> #include<qu ... 
- (2016弱校联盟十一专场10.3) 	A.Best Matched Pair
		题目链接 #include<cstdio> #include<cstring> #include<algorithm> #include<stack> ... 
- 2016弱校联盟十一专场10.3---We don't wanna work!(STL--set的使用)
		题目链接 https://acm.bnu.edu.cn/v3/contest_show.php?cid=8504#problem/C 代码如下: #include <iostream> # ... 
- 2016弱校联盟十一专场10.2---Around the World(深搜+组合数、逆元)
		题目链接 https://acm.bnu.edu.cn/v3/problem_show.php?pid=52305 problem description In ICPCCamp, there ar ... 
- (2016弱校联盟十一专场10.2) 	A.Nearest Neighbor Search
		题目链接 水题,算一下就行. #include <bits/stdc++.h> using namespace std; typedef long long ll; ll x[],y[], ... 
- (2016弱校联盟十一专场10.5) F. Fibonacci of Fibonacci
		题目链接 题目大意就是这个,先找出下标的循环节,再快速幂对20160519取余就行了. 找出下标循环节: #include <cstdio> #include <iostream&g ... 
随机推荐
- fastJSON☞JSONParameters☞时区的修改☞时间最后有一个"Z"
			why... 为什么会有这个问题; 由于近期用到需要将数据序列化... 最终选择了fastJSON(版本为1.)来实现. 但是发现了一个问题,表中有一个dateTime类型的字段, 本来数据库中存入的 ... 
- Win7与XP共享互相访问及共享注意事项!
			win7共享方法和XP类似,主要需要检查以下操作: 1,首先将Guest账户打开 2,右击文件夹-属性-共享选项-高级共享 3,将共享文件√打上,应用-确定即可! 4,查看自己IP(开始-运行-cmd ... 
- golang的json操作
			package main import ( "encoding/json" "fmt" "os" ) type ConfigStruct s ... 
- Windows Phone自带的语音识别
			WindowsPhone下语音操作包括: 1.程序内部的语音识别,用户可以通过语音识别进行输入或完成相关任务 2.控制程序的语音命令,控制程序启动.打开,并可对页面跳转等进行操作 这篇文章将构建一个简 ... 
- CodeForces 353B Two Heaps
			B. Two Heaps Valera has 2·n cubes, each cube contains an integer from 10 to 99. He arbitrarily cho ... 
- UI第四节——UIImageView详解
			- (void)viewDidLoad { // super调用是必须的 [super viewDidLoad]; UIImage *image = [UIImage imageNamed:@&quo ... 
- PHP函数 rtrim() 的一个怪异现象
			今天用rtrim()函数时遇到了一个奇怪的问题: echo rtrim('<p></div>', '</div>'); // 输出为 <p echo ltri ... 
- php 通过curl post发送json数据实例
			例1 代码如下 复制代码 $data = array("name" => "Hagrid", "age" => "3 ... 
- Java序列化技术与Protobuff
			http://www.cnblogs.com/fangfan/p/4094175.html http://www.cnblogs.com/fangfan/p/4094175.html 前言: Java ... 
- 客户端安全-xss-1类型介绍
			1.需求 xss的有哪些类型的了解 2.xss的类型 1.反射 xss 2.存储 xss 3.Dom based xss 3.类型详解 1.反射xss例子 <?php echo 3; $a = ... 
