题解列表

筛选

对题2862:string.h库函数的使用及注意事项

摘要:解题思路:本题是要给定两个字符串arr1和arr2,判断arr1经过任意次循环操作之后,是否包含arr2的子字符串。由于循环操作是将字符串最后一位字符转移到第一位,所以通过有限次循环之后,arr1字符……

佷简单,C++代码

摘要:参考代码:#include<iostream>using namespace std;int main(){    int a,b;    while(cin>>a>>b)cout<<(a+b)<<e……

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则该位为奇数,反之,则为偶。……