题解列表
1036: [编程入门]带参数宏定义练习
摘要:解题思路:定义一个带参的宏,使两个参数的值互换,并写出程序,输入两个数作为使用宏时的实参。参考代码:#include <stdlib.h>
#include <stdio.h>
#define……
链表之报数问题(C语言代码)
摘要:#include<stdio.h>#include<malloc.h>typedef struct people{ int number; struct people *next;}ST;……
1068: 二级C语言-温度转换
摘要:解题思路:注意事项:参考代码:def ctof(i): print('c=%d->f=%d'%(i,32 + i* 9/5))for i in range(-100,151,5)……
【C语言题解】蓝桥杯2023年第十四届省赛真题-更小的数
摘要:```
#include
//定义数组来存放数的每一位
int number[50050]={0};
int compare (int *a,int *b);
int main(){
……
编写题解 1861: 程序员爬楼梯
摘要:解题思路:类似于斐波那契数列不过递推公式为:F(n) = F(n -1) + F(n - 3)注意事项:参考代码:n = int(input())dp = [1, 1, 2, 3]#dp[i] 中 i……
信息学奥赛一本通T1260-拦截导弹-动态规划
摘要:```cpp
#include
#include
using namespace std;
int a[1005],b[1005],dp1[1005],dp2[1005],n;
void L……
编写题解 1141: C语言训练-百钱百鸡问题
摘要:解题思路:注意事项:参考代码:for i in range(20): for j in range (33): for k in range (100): i……
编写题解 1120: C语言训练-"水仙花数"问题2
摘要:解题思路:list comprehension注意事项:参考代码:[print(f'{b*100+s*10+g}') for b in range(1,10) for s in ran……