这个家伙太懒了,········
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《大模拟50ptsWA求调》回复:
@[11514zbs](luogu://user/1125106)说话要文明
在讨论《大模拟50ptsWA求调》回复:
@[11514zbs](luogu://user/1125106)调不出来,要不重构?
为啥 $RE$ ```cpp #include using namespace std; struct node { int ans; int x,y; }; bool operator > (node A,node B) { A.ans > B.ans; } int dis[2010][2010]; char a[2…
```cpp #include using namespace std; const int N = 100010; int c[N],a[N]; int dfn[N],low[N]; int stac[N],ins[N]; vector g[N]; vector sc[N]; int num,cnt,top; int…
```cpp #include using namespace std; int main() { long long a,b; cin >> a >> b; long long c = pow(a,b); if (c > 1000000000 || c < -1e9) cout << "-1"; else cout…
在讨论《80求救》回复:
可以把代码改成这样 ```cpp #include #include using namespace std; struct student { string a;//名字 int grade;//成绩 }; int main() { int n ,b[21]; string c[21]; cin>>n; struct…
在讨论《80求救》回复:
你没有考虑成绩相同的情况
在讨论《80求救》回复:
@[Zhukenian](luogu://user/1384787) 结构体数组可以这么写 ```cpp struct student { string name; int cj; } a[100]; ```
在讨论《80求救》回复:
c++中比较两个字符串,可以直接用 或=
在讨论《80求救》回复:
先定义一个结构体数组,然后sort一下,记得重写cmp,例如 ```cpp bool cmp(student A,student B) { if (A.cj == B.cj) return A.name B.cj; } ```
在讨论《80求救》回复:
比这个稍微简洁一点
在讨论《80求救》回复:
你可以考虑结构体排序
在讨论《40分求助》回复:
比如你可以参考这个(~~太烂了~~)
在讨论《40分求助》回复:
```cpp #include using namespace std; struct node { string id; int nl; int w; } a[120],b[120]; int idx,idx1; bool cmp(node A,node B) { if (A.nl == B.nl) return A…