题解列表

筛选

1157: 亲和数

摘要:```cpp #include using namespace std; int qhs(int x,int y){ int a=0,b=0; for(int i=1;i……

等差数列尼科彻斯定理

摘要:参考代码:/**  * 尼科彻斯定理:任何一个整数m的立方都可以写成m个连续奇数之和  * 示例:13*13*13=2197=157+159+161+163+165+167+169+171+173……

好用的STL双端队列

摘要:#include<bits/stdc++.h> using namespace std; deque<char>q; int main() { char c[100]; while(c……

含k个3的数的解

摘要:解题思路:注意事项:参考代码:m = int(input())k=int(input())if m%19==0:    m=str(m)    count=m.count(&#39;3&#39;)  ……

python方法解决

摘要:解题思路:注意事项:参考代码:import mathl = input().split()s = 0if l[1] == &#39;y&#39;:    s = 5a = int(l[0])if a ……