王牌花色-题解(C++代码) 摘要:# 细节 卡牌值 1-9、A、J、Q、K,注意它们的大小关系。 # 代码 ```cpp #include typedef char Card[3]; // 卡牌,[1-9AJQK][S…… 题解列表 2020年01月04日 0 点赞 0 评论 788 浏览 评分:0.0
三位数反转-题解(C++代码) 摘要:# 细节 多组输入数据。 分离出来的个位、十位、百位数字,直接输出。 不要计算逆序后的值再输出,会丢失低位的 0 。比如 500。 # 代码 ```cpp #include int…… 题解列表 2020年01月04日 0 点赞 0 评论 944 浏览 评分:2.0
【绝对值排序】-题解(C++代码) 不需要sort函数,使用冒泡排序 摘要:#include #include using namespace std; int main() { int n; int temp; while(…… 题解列表 2020年01月04日 0 点赞 1 评论 1448 浏览 评分:9.3
换硬币-题解(C++代码) 摘要:# 思路 f(n) = f(n - 1) + f(n - 2), f(1) = 1, f(2) = 2。 # 代码 ```cpp #include int cash2Coins(in…… 题解列表 2020年01月04日 0 点赞 0 评论 895 浏览 评分:0.0
与2无关的数 -题解(C++代码) 摘要:# 思路 按照定义判断。 # 代码 ```cpp #include // 与 2 相关性 bool connectedWith2(int num) { // 被 2 整除 …… 题解列表 2020年01月04日 0 点赞 0 评论 1008 浏览 评分:0.0
逆序数-题解(C++代码) 摘要:# 思路 逐个比较。 # 代码 ```cpp #include int main() { int nums[100]; int n; std::cin >> n; f…… 题解列表 2020年01月04日 0 点赞 0 评论 1084 浏览 评分:0.0
[编程入门]结构体之成绩记录-题解(C语言代码) 摘要:这个题目其实也可以当作一个字符问题来简化处理。 根据题意,显然此题目可以理解为,将从第二行开始的字符中的空格转换为‘,’输出,其余字符原样输出。 所以本题目也可以这么写 #inclu…… 题解列表 2020年01月04日 0 点赞 0 评论 1139 浏览 评分:7.3
1050题题解(C语言代码) 摘要:```c #include #include typedef struct student { char num[10]; char name[10]; unsigned sc…… 题解列表 2020年01月04日 0 点赞 0 评论 1035 浏览 评分:8.0
蓝桥杯2013年第四届真题-格子刷油漆-题解(Python代码) 摘要:```python n=int(input()) if n==1: print(2) elif n==2: print(24) else: a=[1 for i in range(…… 题解列表 2020年01月03日 0 点赞 0 评论 1373 浏览 评分:8.0
蓝桥杯基础练习VIP-Sine之舞-题解(Python代码) 摘要:简单粗暴的写法 也可以从最初开始定义字符串进行连接 ```python n = int(input()) def an(n): for i in range(1,n+1): …… 题解列表 2020年01月03日 0 点赞 2 评论 1580 浏览 评分:9.9