so "difficult"
2024-08-23 13:14:19
发布于:广东
1阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
struct node{
string name;
int weight;
}a[110];
int main(){
int n;
cin >> n;
for(int i = 1; i <= n; i++){
cin >> a[i].name >> a[i].weight;
}
for(int i = 1; i <= n; i++){
cout << a[i].name << "->" << a[i].weight << "\n";
}
return 0;
}
这里空空如也
有帮助,赞一个