题解列表

筛选

c++水仙花数判断

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a = 0; for(int i=100;i<=……

STL解法 vector<pair<int ,int>> 然后再 sort

摘要:解题思路:    前两个数相加即vector元素个数,pair将两个数据组合成一个元素,v.push_back后 sort注意:    make_pair()是函数 别写成<>参考代码:/******……

编写题解 2880: 计算鞍点

```cpp#include#include#include#include#include#includeusingnamespacestd;intmain(){inta[100][100];for(inti=0;ia[i][j];}}inthang,

c++求和训练

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b,c,sum=0,sqrt=0,s……

计算输入数据的和与乘积

摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main(){     int n, sum=0, a=1;     scanf("%d", &n); ……

1119一行解(Python)

摘要:解题思路:简单题注意事项:要求水仙花数必须为3位数参考代码:基础代码:n = input()len_ = len(n)if len_ == 3 :    smr = sum(map(lambda x ……

数字黑洞(菜鸟级别)

摘要:解题思路:注意事项:参考代码:n=list(input()) cnt=0 f=True while f:     n=sorted(n)     d=&#39;&#39;;x=&#39;&#……