题解 1049: [编程入门]结构体之时间设计 摘要:注意闰年的判断方法和switch的应用 #include #include #include int main() { …… 题解列表 2021年07月04日 0 点赞 0 评论 290 浏览 评分:0.0
一行!一行!一行!一行!一行!一行! 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;main(){ for(int a,b;cin>>a>>b;cout<<(a+b)<<end…… 题解列表 2021年07月04日 0 点赞 0 评论 228 浏览 评分:0.0
题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>void Cat(char a1[],char b1[]){ gets(a1); g…… 题解列表 2021年07月03日 0 点赞 0 评论 303 浏览 评分:0.0
题解 1031: [编程入门]自定义函数之字符串反转 摘要: #include #include #include void turn(char str[]) { int a,i; …… 题解列表 2021年07月03日 0 点赞 0 评论 242 浏览 评分:0.0
进制之间的相互转换 摘要:解题思路:设定输出函数的输出标准将输入的数据转换为其它进制形式注意事项:不要忘记八进制和十六进制的前缀(比如八进制将%x改为%#x就可输出带0x前缀的数据形式)、输出数据间的空格、最后的换行符参考代码…… 题解列表 2021年07月03日 0 点赞 0 评论 1036 浏览 评分:9.9
Hello World! 开始C语言 摘要:解题思路:注意事项:前两个printf()函数需要使用换行符参考代码:#include<stdio.h> int main() { printf("******************…… 题解列表 2021年07月03日 0 点赞 0 评论 389 浏览 评分:6.0
2033: 网络互通(C语言)并查集 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> // 初始化并查集 int *InitUFS(int size) { i…… 题解列表 2021年07月03日 0 点赞 0 评论 629 浏览 评分:6.0
题解 1035: [编程入门]自定义函数之字符类型统计 摘要: #include #include void turn(char str[]) { int alp=0,num=0,spa=0,…… 题解列表 2021年07月02日 0 点赞 0 评论 279 浏览 评分:9.9
1433 危险系数 较为省空间的解题方法 摘要:解题思路:根据题意,如果某一点为”关键点“,那么所有路径中都会出现它。所以可以设置一个time数组表示某一点被访问的次数,如果正好等于路径数,那么它就是”关键点“。寻找路径可以使用DFS。我们可以用链…… 题解列表 2021年07月02日 0 点赞 0 评论 270 浏览 评分:0.0
题解 1033: [编程入门]自定义函数之字符提取 摘要: #include #include void turn(char str[]) { gets(str); fo…… 题解列表 2021年07月02日 0 点赞 0 评论 292 浏览 评分:0.0