C++ 10行代码解决问题 摘要:解题思路:通过题意计算出第0年的纪年来作为初始值注意事项:参考代码:#include<iostream> using namespace std; int main(){ string tia…… 题解列表 2022年03月04日 0 点赞 10 评论 727 浏览 评分:9.9
1036: [编程入门]带参数宏定义练习 摘要:解题思路:写一个宏,包含两个实参,内容是用另一个temp来交换这两个实参。注意事项:temp要定义出来,否则无法使用宏。参考代码:#include <iostream> #define Swap…… 题解列表 2022年03月04日 0 点赞 0 评论 963 浏览 评分:9.9
自定义函数 摘要:```cpp #include using namespace std; double fact(int n){ double a,b=1.0; for(a=1;ax>>n; fo…… 题解列表 2022年03月04日 0 点赞 0 评论 418 浏览 评分:0.0
1037: [编程入门]宏定义的练习 摘要:解题思路:和上一题一样,主要是为了练习宏定义的格式。注意事项:无,甚至不用写注释。参考代码:#include <iostream> #define REMAINDER(num1, num2) (…… 题解列表 2022年03月04日 0 点赞 1 评论 722 浏览 评分:9.9
字符串的查找删除-题解(C++代码)(不知为何检查不多,有没有大佬帮忙解决一下) 摘要:#include <iostream> #include <string> using namespace std; string upper_string(string s) { for …… 题解列表 2022年03月04日 0 点赞 0 评论 541 浏览 评分:0.0
1463: 蓝桥杯基础练习VIP-Sine之舞 C++头疼的递归 摘要:解题思路:递归嵌套,关键只是要看懂题目给出的公式到底是什么东西(给的数据真的很难猜啊)注意事项: A1= sin(1) A2 = sin(1-sin(2)) …… 题解列表 2022年03月04日 0 点赞 0 评论 511 浏览 评分:0.0
蓝桥杯2014年第五届真题-兰顿蚂蚁 c++代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define max 101 int n,m,a[max][max],x,y,k; char s; int X[5]={0,…… 题解列表 2022年03月04日 0 点赞 0 评论 543 浏览 评分:9.9
题解 2226: 蓝桥杯算法训练-排序(C语言——三目运算符求解) 摘要: #include #include #include int main() { int m,n,k,max,mid,min; scanf("%d %d …… 题解列表 2022年03月04日 0 点赞 0 评论 561 浏览 评分:0.0
C++ 动态规划 摘要:解题思路:将每条蓝肽序列的子序列存入字符串数组中,将问题化为寻找最长公共子序列问题注意事项:参考代码: #include<iostream> #include<string> #include…… 题解列表 2022年03月04日 0 点赞 0 评论 679 浏览 评分:9.9
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:a=input()b=[]for i in a: if i>='a' and i<'z'or i>='A' and …… 题解列表 2022年03月04日 0 点赞 0 评论 461 浏览 评分:0.0