完数的判断 c++代码 摘要: #include #include #include using namespace std; signed main()…… 题解列表 2023年01月11日 0 点赞 0 评论 343 浏览 评分:0.0
线性筛解法,时间复杂度仅为O(n) 摘要:###线性筛解法,时间复杂度仅为O(n)### ```cpp #include using namespace std; const int N = 1e6 + 5; …… 题解列表 2023年01月11日 0 点赞 0 评论 369 浏览 评分:0.0
最简约易懂求平方根 摘要:解题思路:一直迭代注意事项:迭代参考代码:a=float(input())x1=a/2x2=(x1+a/x1)/2while abs(x1-x2)>0.00001: x1=x2 x2=(x…… 题解列表 2023年01月11日 1 点赞 0 评论 883 浏览 评分:9.9
我很荣幸,将题解发了上来 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;char s[1001];int main(){ int l,n; ci…… 题解列表 2023年01月11日 0 点赞 2 评论 420 浏览 评分:7.0
成绩(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,s; scanf("%d%d%d",&a,&b,&c); s=a*0…… 题解列表 2023年01月11日 0 点赞 0 评论 634 浏览 评分:9.9
指针数组法(直接翻译题意) 摘要:解题思路:将题干中出现的数字的英文单词对应储存在数组中,再对应输出注意事项:参考代码:#include<stdio.h>int main(){ char *a[60]={"zero","one","t…… 题解列表 2023年01月11日 0 点赞 0 评论 552 浏览 评分:9.9
母牛递归(python简易代码) 摘要:解题思路:找出规律,把值归入到列表方便拿出注意事项:找出关系式:l[i-3]+l[i-1]参考代码:l=[0,1,2,3]for i in range(4,55): l.append(l[i-3…… 题解列表 2023年01月11日 0 点赞 0 评论 578 浏览 评分:6.0
在后面的的往前面移,前面的直接往后面搬 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m; scanf("%d",&n); int a[n-1]; int i …… 题解列表 2023年01月11日 0 点赞 0 评论 334 浏览 评分:0.0
c++语言解决电报加密 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<string.h>using namespace std;void get(char…… 题解列表 2023年01月11日 0 点赞 0 评论 298 浏览 评分:0.0
简简单单无脑列举 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void GetReal(float x){ cout << x << endl;}void …… 题解列表 2023年01月11日 0 点赞 0 评论 311 浏览 评分:0.0