[编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define LEAP_YEAR(year)\{\ if((year % 4 == 0 &am…… 题解列表 2025年11月04日 1 点赞 0 评论 444 浏览 评分:10.0
[编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float num = 0; scanf(&qu…… 题解列表 2025年11月04日 1 点赞 0 评论 276 浏览 评分:10.0
T1010-利润计算--步骤清晰 摘要:解题思路:注意事项:参考代码:l=int(input())bonus=0levels=[&n…… 题解列表 2025年11月04日 1 点赞 0 评论 594 浏览 评分:10.0
[编程入门]三个字符串的排序 摘要:解题思路:注意事项:如果使用strcmp感觉只能用冒泡排序了,初始化字符串时可以用一维的字符串指针数组储存,用二维字符串数组也行。参考代码:#include <stdio.h>#inclu…… 题解列表 2025年11月04日 1 点赞 0 评论 448 浏览 评分:10.0
两个for循环嵌套+flag标志 摘要:解题思路:注意事项:i=2时,不满足内层循环条件,所以2可以被输出,不用再单独考虑2的情况了。参考代码:#include<stdio.h>int main(){ …… 题解列表 2025年11月04日 2 点赞 0 评论 379 浏览 评分:10.0
两次循环和一次判断 摘要:解题思路:两次循环和一次判断注意事项:输出结果时要加1(arr2[1]+1)参考代码:#include<stdio.h>int main(){ int n,cou…… 题解列表 2025年11月05日 0 点赞 0 评论 232 浏览 评分:10.0
2878:计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:一:比较笨的方法#include<stdio.h>int main(){ int arr[100][100]; &nbs…… 题解列表 2025年11月05日 2 点赞 0 评论 300 浏览 评分:10.0
简单易懂小代码,两个循环解决问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int h, w; char str1[] = {'…… 题解列表 2025年11月05日 6 点赞 0 评论 543 浏览 评分:10.0
求整数的和与均值 摘要:解题思路:注意事项:参考代码:total = 0arr = list(map(int,input().split()))if len(arr) != 1: for i in …… 题解列表 2025年11月06日 1 点赞 0 评论 476 浏览 评分:10.0
[编程入门]自定义函数之数字后移 摘要:解题思路:一种思路是向后移动,把最后一个数字备份,移动完num_number - 1次后把最后一个数赋值给第一个总共移动move_number次注意 if(move_numb…… 题解列表 2025年11月06日 2 点赞 0 评论 445 浏览 评分:10.0