C语言密码编译—putchar 摘要:参考代码:#include<stdio.h> int main() { char c1 = 'C', c2 = 'h', c3 = 'i', c4…… 题解列表 2024年04月04日 0 点赞 0 评论 188 浏览 评分:0.0
C语言温度转换题解 摘要:参考代码:#include<stdio.h> int main() { float c, F; scanf("%f", &F); c = 5*(F - 32) / 9; printf("c…… 题解列表 2024年04月04日 0 点赞 0 评论 309 浏览 评分:0.0
计算球体积胡扯版 摘要:解题思路:先看一眼别人的答案注意事项:记得球的体积是三分之四派啊的平方参考代码:#include<stdio.h>#define PI 3.1415926int main(){ float r,…… 题解列表 2024年04月05日 2 点赞 0 评论 263 浏览 评分:0.0
[编程入门]C语言循环移位 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { unsigned int a, n; // 读取输入的两个正整数 sc…… 题解列表 2024年04月05日 0 点赞 0 评论 187 浏览 评分:0.0
循环练习之完美数判断 摘要:#include <stdio.h> // 函数用于判断一个数字是否是完美数 int isPerfect(int num) { int sum = 0; // 初始化因子之和为0 …… 题解列表 2024年04月05日 0 点赞 0 评论 262 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-子串简写 摘要:解题思路:分别记录首字母和尾字母出现的位置,然后遍历数组得出结果。注意事项:降低时间复杂度,不走回头路,时间复杂度由O(n2)降为O(n)。参考代码:#include<stdio.h…… 题解列表 2024年04月05日 0 点赞 0 评论 377 浏览 评分:0.0
1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:import math N = int(input()) arr = [True] * (N + 1) for i in range(2, int(math.sqr…… 题解列表 2024年04月05日 0 点赞 0 评论 229 浏览 评分:0.0
这是一个题解 摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { int n; scanf("%d", &n)…… 题解列表 2024年04月05日 0 点赞 0 评论 221 浏览 评分:0.0
题解 1234: 检查一个数是否为质数 摘要:解题思路:额…………注意事项:注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int mai…… 题解列表 2024年04月05日 0 点赞 0 评论 216 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ struct Date { int year; int month; int day; }s; scanf…… 题解列表 2024年04月05日 0 点赞 0 评论 167 浏览 评分:0.0