What's the most mouth-watering burger in hdoj 5948 contest?

2026-05-29 14:073阅读0评论SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计203个文字,预计阅读时间需要1分钟。

What's the most mouth-watering burger in hdoj 5948 contest?

题目链接:Thickest Burger题目大意:给你A、B分别代表等腰三角形两条边,求三角形最大边长题目思路:MAX(A, B) * 2 + MIN(A, B) 就好了


题目链接:​​Thickest Burger​​

题目大意:给你A,B分别为等腰三角形两条边,求三角形最大边长

题目思路:MAX(A,B)*2+MIN(A,B)就好了

#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>

using namespace std;
typedef long long ll;

int main(){
int t,a,b;
cin>>t;
while(t--){
cin>>a>>b;
cout<<max(a,b)*2+min(a,b)<<endl;
}
return 0;
}


What's the most mouth-watering burger in hdoj 5948 contest?

本文共计203个文字,预计阅读时间需要1分钟。

What's the most mouth-watering burger in hdoj 5948 contest?

题目链接:Thickest Burger题目大意:给你A、B分别代表等腰三角形两条边,求三角形最大边长题目思路:MAX(A, B) * 2 + MIN(A, B) 就好了


题目链接:​​Thickest Burger​​

题目大意:给你A,B分别为等腰三角形两条边,求三角形最大边长

题目思路:MAX(A,B)*2+MIN(A,B)就好了

#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>

using namespace std;
typedef long long ll;

int main(){
int t,a,b;
cin>>t;
while(t--){
cin>>a>>b;
cout<<max(a,b)*2+min(a,b)<<endl;
}
return 0;
}


What's the most mouth-watering burger in hdoj 5948 contest?