题解列表
(小白板)矩阵交换行
摘要:解题思路:很简单啊,就是一个循环直接做一个交换,但中间要用到一个交换变量
注意事项:就是数组要从1开始输入,而不是从0开始,因为不符合我们数学的常规思想
#include
int main……
c语言3010: 奇偶数之和
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i = 1; int n; int sum1 = 0; int sum2 = 0; scanf("%d"……
题解 2900: 螺旋加密
摘要:解题思路:用a数组螺旋填写,b数组记录字符串代表的数字,d数组表示数字对应的五位二进制,c数组用来标记是否填写过。注意事项:利用了位运算参考代码:#include <algorithm>#includ……
2911: 连续出现的字符
摘要:```cpp
#include
#include
using namespace std;
int main()
{
int k,s=0;
char ch[100000]……
2912: 最长平台
摘要:```cpp
#include
using namespace std;
int main()
{
int n,count=1,max=1,a[1001];
cin>>n;……
2924: 明明的随机数
摘要:```cpp
#include
using namespace std;
void QS(int a[],int l,int r)
{
if(l>=r)
retur……
2922: 合影效果
摘要:```cpp
#include
#include
#include
using namespace std;
typedef struct M
{
string s;
……
【Python】1984: 蓝桥杯算法提高VIP-求圆面积表面积体积
摘要:注意事项:格式化输出参考代码:r = float(input())
pi = 3.1415926536
s1 = pi*r**2
s2 = 4*pi*r**2
v = 4*pi*r**3/3……