跳到正文

题解

题解 AT2646 【[ABC066A] ringring】

fy0617约 1 分钟
原文
文章信息与版本

文章信息

收录
2026年4月8日
更新
2026年4月8日
篇幅
约 1 分钟

版本

  1. v2当前
  2. v1
C++
#include<bits/stdc++.h>
using namespace std;
int a[101],s;
int main()
{
    for(int i=1;i<=3;i++)
    {
		cin>>a[i];
		s+=a[i];
	}
    cout<<s-(*max_element(a+1,a+4))<<endl;
    //函数求最大值
}
原文