题解列表

筛选

哪里有那么复杂啊

摘要:解题思路:先吃一半,再吃1个注意事项:第N天的时候想吃,只剩一个了,就是还没有吃,逆向操作的话,循环N-1次即可参考代码:#include<stdio.h>int main(){ int ……

两个for循环解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,sum,n; scanf(&……

使用冒泡排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; &nbs……

3个for循环解决问题

摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,j,k; doub……

两个for循环解决问题

摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int n,i,j,a;&nb……

电子爱好者的C语言算法

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i,n,max=0,num[1000],……

[编程入门]带参数宏定义练习

摘要:解题思路:用C 语言的 “带参数宏” 来实现两个变量的值互换,然后通过程序验证效果。简单说就是:定义一个宏(类似“替换规则”),接收两个参数,展开后能交换这两个参数的值;再写程序输入两个数,用……