首页 > 强强联合
头像 Ayx03
发表于 2022-03-19 16:55:45
并不需要存储所有战斗力并排序,利用打擂台的方法一边输入一边找出最大值即可。 #include<bits/stdc++.h> using namespace std; int n,m,max1,max2,tmp; int main(){ cin>>n>>m; 展开全文
头像 gusil
发表于 2020-11-25 10:50:26
#include <stdio.h> int main() {     int i,n,m,a[100],b[100];     scanf("%d%d",&n,&m);     for( i=0; i<n 展开全文
头像 潍坊鲨鱼公园儿童大学
发表于 2021-01-30 12:38:30
#include <iostream> #include <cmath> using namespace std; int main() { int boy_count; int girl_count; cin >> boy_count 展开全文
头像 牛客517072235号
发表于 2021-08-01 19:16:21
#include<iostream> using namespace std; int main() { int n, m; cin>>n>>m; int a=0, b=0; for(int i=1; i<=n; i++) 展开全文
头像 Aju要上广大
发表于 2023-02-14 17:19:54
#include using namespace std; int main() { int max1=0,max2=0,n,m,i,a[100]={0},b[100]={0}; cin>>n>>m; for(i=1;i<=n;i++) 展开全文
头像 思念傅悦洋薛家润
发表于 2022-08-09 12:50:35
题目: 链接:https://ac.nowcoder.com/acm/problem/22218 来源:牛客网 草原上要举行男女混双的乒乓球比赛了,牛村要派出最强的队伍参加,我们假设男女组合战斗力值为男战斗力加上女战斗力的和,现在需要挑选组合战斗力最强的一对男女参赛。 给你牛村所有男生和女生的乒乓球 展开全文
头像 Codecodify
发表于 2023-07-03 18:01:30
#include <stdio.h> int main() { int male_num, female_num, total = 0; scanf("%d%d", &male_num, &female_num); int males[male_ 展开全文
头像 23数二杨帆
发表于 2023-11-02 09:04:22
#include <bits/stdc++.h> using namespace std; int main() { int x , y; cin >> x >> y; int a[x],b[y]; for( int i = 0 ; i < x ; i ++ 展开全文