[cf 599A]Patrick and Shopping
傻逼题,但是我还是wa了一发。
#include <iostream> using namespace std; int main()
{
long long a,b,c,Ans=0x7fffffff; cin >> a >> b >> c;
Ans=min(Ans,a+a+b+b);
Ans=min(Ans,a+c+b);
Ans=min(Ans,a+c+c+a);
Ans=min(Ans,b+c+c+b);
cout << Ans << endl;
return ;
}
[cf 599A]Patrick and Shopping的更多相关文章
- CodeForces 599A Patrick and Shopping
		水题.每种情况取最小值即可. #include<cstdio> #include<cstring> #include<cmath> #include<algo ... 
- Codeforces Round #332 (Div. 2) A. Patrick and Shopping 水题
		A. Patrick and Shopping Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/5 ... 
- Patrick and Shopping
		Patrick and Shopping 今天 Patrick 等待着他的朋友 Spongebob 来他家玩.为了迎接 Spongebob,Patrick 需要去他家附近的两家商店 买一些吃的.他家 ... 
- Codeforces Round #332 (Div. 2)A. Patrick and Shopping 水
		A. Patrick and Shopping Today Patrick waits for a visit from his friend Spongebob. To prepare for ... 
- Codeforces Round #332 (Div. 2)
		水 A - Patrick and Shopping #include <bits/stdc++.h> using namespace std; int main(void) { int ... 
- 【CodeForces 599A】D - 特别水的题4- Patrick and Shopping
		Description meter long road between his house and the first shop and a d2 meter long road between h ... 
- CF 1009A Game Shopping 【双指针/模拟】
		Maxim wants to buy some games at the local game shop. There are n games in the shop, the i-th game c ... 
- ORA-00494: enqueue [CF] held for too long (more than 900 seconds) by 'inst 1, osid 5166'
		凌晨收到同事电话,反馈应用程序访问Oracle数据库时报错,当时现场现象确认: 1. 应用程序访问不了数据库,使用SQL Developer测试发现访问不了数据库.报ORA-12570 TNS:pac ... 
- cf之路,1,Codeforces Round #345 (Div. 2)
		cf之路,1,Codeforces Round #345 (Div. 2) ps:昨天第一次参加cf比赛,比赛之前为了熟悉下cf比赛题目的难度.所以做了round#345连试试水的深浅..... ... 
随机推荐
- jsp简单学习总结
			以下均为jsp页面 1:<jsp:include page="index.jsp"/>相当于嵌入一个页面.还有一种是<frame src="main_l ... 
- nodejs操作mysql
			var mysql = require('mysql');var pool = mysql.createPool({ host: 'localhost', user: 'root', password ... 
- 2243: [SDOI2011]染色(树链剖分+线段树)
			2243: [SDOI2011]染色 Time Limit: 20 Sec Memory Limit: 512 MBSubmit: 8400 Solved: 3150[Submit][Status ... 
- [Swift通天遁地]六、智能布局-(3)添加edges/top/bottom/leading/trailing的约束
			★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs. ... 
- 1.1输出“hello,world”
			#include<iostream> using namespace std; int main() { cout<<"Hello, World!"< ... 
- PHP电影小爬虫(2)
			学习了别人的爬虫后自己改的一个,算是又回顾了一下php的使用 我们来利用simple_html_dom的采集数据实例,这是一个PHP的库,上手很容易.simple_html_dom 可以很好的帮助我们 ... 
- XML解析-Dom4j的DOM解析方式更新XML
			Dom4j工具,是非官方的,不在jdk中. 使用步骤: 1)导入dom4j的核心包. dom4j-1.6.1.jar 2)编写Dom4j读取xml文件的代码 1.更新XML 1.1.写出内容到xml文 ... 
- [转][IPC通信]基于管道的popen和pclose函数
			标准I/O函数库提供了popen函数,它启动另外一个进程去执行一个shell命令行. 这里我们称调用popen的进程为父进程,由popen启动的进程称为子进程. popen函数还创建一个管道用于父子进 ... 
- Android studio USB连接失败
			Android studio USB连接失败,可能是因为adb的端口被占了,此时在其自带的cmd中输入netstat -aon|findstr "5037",并且启动任务管理器关掉 ... 
- 排序算法JavaScript版
			冒泡排序 function bubbleSort(arr) { var len = arr.length; for (var i = 0; i < len - 1; i++) { for (va ... 
