题解列表

筛选

2025.7.21刷题记录

摘要:解题思路:注意事项:参考代码:#include<stdio.h>const double pi = 3.14159;int main(){ //大象要喝的水量&n……

2025.7.21刷题记录

摘要:解题思路:实数不只是整数还有浮点数等等注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ i……

2893: 肿瘤面积

解题思路:注意事项:参考代码:#include#includeusingnamespacestd;intmain(){intn;cin>>n;vector>image(n,vector(n));inttop=n,

第一个HelloWorld程序

摘要:解题思路:这一道题只需要输出就可以了。注意事项:1.头文件很容易用错,一定要注意头文件。2.一定要记得输出*参考代码://cout#include<bits/stdc++.h>//……

1141:百钱百鸡

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int cock,hen,chicken; fo……

适合新手的题解

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double b;i……

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

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