当前位置:网站首页>Contest3182 - the 39th individual training match for 2021 freshmen_ E: ringring
Contest3182 - the 39th individual training match for 2021 freshmen_ E: ringring
2022-06-27 18:29:00 【This question AC sleep again】
// Write a template look for 200 No problem at all
#include<bits/stdc++.h>
using namespace std;
const int INF=0x3f3f3f3f;
int a[11];
int ans;
void init()
{
ans=INF;
memset( a,0,sizeof( a ) );
}
void dfs( int x,int y,int z )
{
if( y==2 ) ans=min( ans,z );
if( x>=3 ) return ;
dfs( x+1,y+1,z+a[x] );
dfs( x+1,y,z );
}
int main()
{
init();
while( ~scanf("%d%d%d",&a[0],&a[1],&a[2]) )
{
dfs( 0,0,0 );
printf("%d\n",ans);
init();
}
return 0;
}
边栏推荐
- leetcode 142. Circular linked list II
- D use in
- Oracle概念二
- 软件测试学习-黑马程序员,软件测试学习大纲
- Redis installation
- New products, new personnel and new services, Infiniti will continue to plough into China's future!
- Cloud security daily 220216: root privilege escalation vulnerability found on IBM SaaS integration platform needs to be upgraded as soon as possible
- Handling method of occasional error reporting on overseas equipment
- Teach you to use elastic search: run the first hello world search command
- Use lamda expression and stream flow to traverse map and list
猜你喜欢
Study on heritability and field experiment design
Ti Click: quickly set up tidb online laboratory through browser | ti- team interview can be conducted immediately
Determine the maximum number of specific words in a string
ROS "topic" programming implementation
Byte + Google super full kotlin learning King fried notes! Kotlin introductory tutorial + Advanced kotlin enhanced actual combat (with demo)
Overview of Inspur Yunxi database executor
Teach you to use elastic search: run the first hello world search command
Allocate aligned heap space
Wanzhou gold industry: what knowledge points do you need to master to invest in precious metals?
Missing d3d10 How to repair DLL files? Where can I download d3d10.dll
随机推荐
Performance problems caused by redis cache invalidation and competitive loading
Hospital reservation and registration system - system structure
GAC Mitsubishi's new outlander made its first domestic debut in the year, and its product strength was fully renewed
Part 31 supplement (31) ECMAScript conversion to string and number
Simulated process scheduling
D use in
Dark horse programmer - software testing foundation class -02-30-45 tools open browser running code, audio, video, test points, audio and video labels, layout labels. Advanced hyperlink syntax, absolu
WOx WPM installing the Youdao plug-in
[UVM basics] set a monitor at the input port of the DUT to explain the necessity
Synchronization mechanism of dual namenodes
Android kotlin learning
On array-_-
Oracle concept 3
Halcon: discrete digital OCR recognition
Shardingsphere sharding proxy actual combat scenario
Related configuration commands of Huawei LACP
leetcode 82. Delete duplicate Element II in the sorting linked list
Wanzhou gold industry: what are the common gold investment and warehouse building modes?
[UVM foundation] build of UVM_ Phase execution sequence
写在eclipse里面,与数据库连接查询之后的问题