题解列表
C++代码带实参宏定义
摘要:解题思路:#define s(a,b,c) ((a+b+c)/2)#define area(a,b,c,s) sqrt(s(a,b,c)*(s(a,b,c)-a)*(s(a,b,c)-b)*(s(a,……
C++代码宏定义闰年判断
摘要:解题思路:四年一闰;百年不闰,四百年再闰if ((y%4==0) and (y%100!=0) or (y%400==0)) cout<<'L'<<endl;else cout<<&#……
整除问题直接分离数字循环判断
摘要:解题思路:注意事项:参考代码:a=input()min=int(a.split()[0])max=int(a.split()[1])factor=int(a.split()[2])for i in r……
C++代码用C++风格输出%6.2f格式的浮点数
摘要:解题思路:用C++风格输出%6.2f格式的浮点数https://blog.csdn.net/jal517486222/article/details/84591515注意事项:暂时不明参考代码:#in……
C++函数,宏定义找3个数的最大数
摘要:解题思路:选择法排序if (a<b) a=b;if (a<c) a=c;return a;注意事项:暂时不明参考代码:#include<iostream>#include<iomanip>using ……
C++代码String库函数
摘要:解题思路:注意事项:暂时不明参考代码:#include<iostream>#include<string>using namespace std;int main(){ string origi……