题解 1234: 检查一个数是否为质数 摘要:解题思路:额…………注意事项:注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int mai…… 题解列表 2024年04月05日 0 点赞 0 评论 640 浏览 评分:0.0
这是一个题解 摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { int n; scanf("%d", &n)…… 题解列表 2024年04月05日 0 点赞 0 评论 843 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-子串简写 摘要:解题思路:分别记录首字母和尾字母出现的位置,然后遍历数组得出结果。注意事项:降低时间复杂度,不走回头路,时间复杂度由O(n2)降为O(n)。参考代码:#include<stdio.h…… 题解列表 2024年04月05日 0 点赞 0 评论 851 浏览 评分:0.0
循环练习之完美数判断 摘要:#include <stdio.h> // 函数用于判断一个数字是否是完美数 int isPerfect(int num) { int sum = 0; // 初始化因子之和为0 …… 题解列表 2024年04月05日 0 点赞 0 评论 734 浏览 评分:0.0
[编程入门]C语言循环移位 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { unsigned int a, n; // 读取输入的两个正整数 sc…… 题解列表 2024年04月05日 0 点赞 0 评论 760 浏览 评分:0.0
计算球体积胡扯版 摘要:解题思路:先看一眼别人的答案注意事项:记得球的体积是三分之四派啊的平方参考代码:#include<stdio.h>#define PI 3.1415926int main(){ float r,…… 题解列表 2024年04月05日 2 点赞 0 评论 699 浏览 评分:0.0
字符类型统计常规c语言,不用指针,不用定义函数,简单代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; gets(str); int…… 题解列表 2024年04月05日 0 点赞 0 评论 552 浏览 评分:9.9
C语言温度转换题解 摘要:参考代码:#include<stdio.h> int main() { float c, F; scanf("%f", &F); c = 5*(F - 32) / 9; printf("c…… 题解列表 2024年04月04日 0 点赞 0 评论 815 浏览 评分:0.0
易如反掌之自定义函数之数字分离 摘要:解题思路:遍历循环字符串长度,依次输出。注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; sc…… 题解列表 2024年04月04日 1 点赞 0 评论 634 浏览 评分:9.9
C语言密码编译—putchar 摘要:参考代码:#include<stdio.h> int main() { char c1 = 'C', c2 = 'h', c3 = 'i', c4…… 题解列表 2024年04月04日 0 点赞 0 评论 702 浏览 评分:0.0