题解列表

筛选

宏定义之闰年判断

摘要:解题思路:在这题中使用定义宏的方法比使用定义函数的方法更简单注意事项:#define 定义常量和宏注意 #define 后面没有分号;#define 常量名 常量值#define 宏名 宏表达式参考代……

新手简单快速解决!!!

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n = 0, x = 0, y = 0;    cin ……

2794: 求平均年龄

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

2796: 求整数的和与均值

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