题解列表

筛选

c语言 快速排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int paixu(int a[], int x, int b) { int i = x, j = b; int pov =……

对齐方式(左负右正)

摘要:参考代码:import java.util.Scanner; public class Main {     public static void main(String args[])   ……

[CSP-J2020] 优秀的拆分--DFS+剪枝

摘要: # 题解没有搜索解法所以写了个 ###### 其实根本没必要,老老实实位运算不香嘛 #### tip-1: 1 当前凑的数已经大……

编写题解 2831: 画矩形

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a,b,d ;    char c;    c……

汽水瓶(dfs法)

摘要: import java.util.Scanner; public class Main { static int dfs(int n){ ……

c语言 好数

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int hs(int n){ int k1,k2; int flag; while(1){               ……

蓝桥杯求好数问题

摘要:解题思路:可以用switch语句来解决此题,写一个来计算一个数的位数的函数,写一个计算好数个数的函数,在此函数中需要调用前一个函数用一个数组来保存这个数的奇偶信息,如果为1则该位为奇数,反之,则为偶。……

2114: 信息学奥赛一本通T1173-阶乘和

摘要:解题思路:乘法和加法自己写出来,因为阶乘和是很大的一个数字。参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> usi……

第15届蓝桥杯C/C++B组好数求解

摘要:解题思路:is_good_number函数检查一个数是否为好数。它从最低位开始检查,奇数位置必须是奇数,偶数位置必须是偶数。如果所有位置都满足这个条件,则返回1表示这是一个好数,否则返回0。参考代码:……