用数据结构中栈的问题来解决进制转换 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define MaxSize 100typedef struct{ int data[Max…… 题解列表 2023年09月17日 0 点赞 0 评论 439 浏览 评分:0.0
2939: 最匹配的矩阵 摘要:解题思路:注意事项:本题较难参考代码:#include <stdio.h> #include <stdlib.h> #include <math.h> using namespace std; …… 题解列表 2023年09月17日 0 点赞 0 评论 450 浏览 评分:9.9
C语言代码非常简单通俗易懂 摘要:解题思路:1 3 6 10 152 5 9 144 8 137 1211a[00]=1,a[10]=2,a[01]=3,a[20]=4,a[11]=5,a[02]=6,a[30]=7,a[21]=8,…… 题解列表 2023年09月17日 0 点赞 0 评论 390 浏览 评分:9.9
计算2的N次方(使用pow(),byd,注意提示说的高精度,要用double,研究下幂函数的算法) 摘要:参考代码: ```c #include #include int main() { long double n; scanf("%llf",&n); long double a=…… 题解列表 2023年09月17日 0 点赞 0 评论 418 浏览 评分:0.0
2918:成绩排序 摘要:```c #include #include typedef struct student { char name[25]; int score; }student; int ma…… 题解列表 2023年09月17日 0 点赞 0 评论 511 浏览 评分:9.9
一种利用switch_case特性的巧妙解法 摘要:# 一种利用switch_case特性的巧妙解法——减少代码量 ## 传统写法 各种写法很多,这儿提供一种典型的: ```c #include int main() { int …… 题解列表 2023年09月17日 0 点赞 0 评论 351 浏览 评分:0.0
字符大法好 摘要:解题思路:用字符串一个一个取出来注意事项:特别注意就是别想复杂了,一般数学取数字问题多多考虑字符串参考代码:#include <iostream>#include <stdio.h>using nam…… 题解列表 2023年09月17日 0 点赞 0 评论 321 浏览 评分:0.0
数组的转置-仿照一维数组输入 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int r=3,c=3…… 题解列表 2023年09月18日 0 点赞 0 评论 308 浏览 评分:6.0
字符串连接 摘要:```cpp #include using namespace std; int main() { string s,t; getline(cin,s); getline(…… 题解列表 2023年09月18日 0 点赞 0 评论 391 浏览 评分:6.0
就要和别人不一样 摘要:解题思路:如果没完没了怎么办?我们构造一个函数,一个名为 `run` 的函数。创建了一个列表 `ranges`,其中包含了多个元组。每个元组包含两个值,第一个值是利润上限 `limit`,第二个值是对…… 题解列表 2023年09月18日 3 点赞 0 评论 1113 浏览 评分:9.9