Codeforces Round #541 (Div. 2) A Sea Battle

找规律

#include<bits/stdc++.h>
using namespace std;
int a,b,c,d;
int main()
{
	cin>>a>>b>>c>>d;
	long long ans=0;
	ans=(a+b+d)*2+4;
	cout<<ans<<endl;
	
}

猜你喜欢

转载自blog.csdn.net/qq_43768149/article/details/87895995