题解列表

筛选

运用函数筛选N以内素数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int isprime(int x){    int i;    for(i=2;i<=x-1;i++){        if(x%i=……

单词个数统计(C语言)

摘要:解题思路:。。。。。。注意事项:。。。。。。参考代码:#include <stdio.h>#include <string.h>int main(){    char str[80];    int ……

Python 解题思路

摘要:解题思路:先将该数开平方,然后保留整数重新开方即可注意事项:保留整数遵循四舍五入原则,如果舍去导致开方比n小,记得加上1参考代码:import mathn = int(input())b = math……

复数求和(C语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>typedef struct LNode{    struct LNode *next;//下一……

字符串比较(C语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int StrCmp(char *str1, char *str2){    int min =……

用Python完成dna

摘要:解题思路:注意事项:注意格式,以及对X的赋值时机的公式参考代码:n = eval(input())while n > 0 :    a,b = map(int,input().split())    ……

数组输出(C语言)

摘要:解题思路:二维数组的循环遍历+abs()函数注意事项:。。。。。。参考代码:#include #include int main(){    int arr[3][4], max_abs = 0, r……