题解列表
#问题:分解n (大)-----分解n的二进制(小)
摘要:#问题:分解n (大)-----分解n的二进制(小)def rec(n): for x in range(14,-1,-1): s=n-pow(2,x) if s>0……
C语言思路简单,易懂!!! 理解万岁
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n; int a[100],max,max_i; scanf ("%d",&n);……
C语言思路简单,易懂!!! 理解万岁
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n; int a[1000]; while (scanf ("%d",&n)!=E……
删除单词后缀(巧秒解题,我们可以利用strlen()获得单词长度,如果单词后面出现那些后缀情况,只需要缩短长度,循环输出每个字符就好了)
摘要:解题思路:注意事项:去掉后缀后,要注意单词长度不能为0,否则不删参考代码:#include<stdio.h>
#include<string.h>
int main()
{
char a[3……
指针/引用练习之交换数字
摘要:参考代码:
```c
#include
void swap(int *a,int *b)
{
int t=*a;//传递过去的是指针,要解析出指向的值,再交换
*a=*b;……
蓝桥杯算法提高VIP-交换Easy
摘要:参考代码:
```c
#include
int main()
{
int n,m;
scanf("%d%d",&n,&m);
int a[n],x=0,y=0;
for(int……
四种方式进行字符串的倒叙输出
摘要:#define _CRT_SECURE_NO_WARNINGS
#include
#include
#include
//int main() {`
// char s[50];
// ……