题解列表

筛选

2936: 简单算术表达式求值

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>int main(){ ……

典型的递推题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int n;    scanf("%d",&n);    double s……

与指定数字相同的数

摘要:解题思路:一维数组的应用注意事项:参考代码:#include<stdio.h>int main(){ int i,N,m,n,b=0; scanf("%d %d",&N,&m); int a[N]; ……

蓝桥杯2022第十三届省赛真题——数位排序

摘要:解题思路:用记忆化搜索(或是递推)求出1-n的每个数的数位和,时间复杂度为O(n),然后用sort排序,时间复杂度为O(nlogn),最后输出排序后的第m个位置的数注意事项:  不会超时参考代码:#i……

编写题解 3000: 交换值

摘要:解题思路:直接交换输出注意事项:参考代码:int a,b; scanf("%d %d",&a,&b); printf("%d %d",b,a);……

qtnu培训练习

摘要:解题思路:分析p1、p2、p3代表的意思。利用tolower() 于toupper() 函数代码中出现了insert() 增加字符 erase() 删除字符,已及sb测试样例1;p1_other() ……

二进制分类(C语言)

摘要:解题思路:暴力(笑注意事项:数据范围是从1到1000(包括1和1000),并不需要自己输入。参考代码:#include<stdio.h>int main(){ int i, s, A = 0, B =……

编写题解 2819: 数字反转

摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n,m=0; cin>>n; while(n){ m=m*10+n%10;//每……

2778: 判断数正负

摘要:解题思路: while循环控制输入  if条件判断控制范围注意事项:参考代码:while 1:    a = int(input())    if a <= -1E9 or a >= 1E9:   #……