对题2862:string.h库函数的使用及注意事项 摘要:解题思路:本题是要给定两个字符串arr1和arr2,判断arr1经过任意次循环操作之后,是否包含arr2的子字符串。由于循环操作是将字符串最后一位字符转移到第一位,所以通过有限次循环之后,arr1字符…… 题解列表 2024年09月24日 0 点赞 0 评论 318 浏览 评分:10.0
佷简单,C++代码 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout<<(a+b)<<e…… 题解列表 2024年09月24日 1 点赞 2 评论 372 浏览 评分:3.4
c语言 快速排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int paixu(int a[], int x, int b) { int i = x, j = b; int pov =…… 题解列表 2024年09月23日 0 点赞 0 评论 314 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;int main(){ int t = 1 ;//取余计算的余数,赋值为1是为了方便进…… 题解列表 2024年09月23日 0 点赞 5 评论 358 浏览 评分:7.5
对齐方式(左负右正) 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String args[]) …… 题解列表 2024年09月23日 0 点赞 0 评论 238 浏览 评分:0.0
[CSP-J2020] 优秀的拆分--DFS+剪枝 摘要: # 题解没有搜索解法所以写了个 ###### 其实根本没必要,老老实实位运算不香嘛 #### tip-1: 1 当前凑的数已经大…… 题解列表 2024年09月22日 0 点赞 1 评论 337 浏览 评分:9.9
编写题解 2831: 画矩形 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,d ; char c; c…… 题解列表 2024年09月22日 0 点赞 0 评论 240 浏览 评分:9.9
汽水瓶(dfs法) 摘要: import java.util.Scanner; public class Main { static int dfs(int n){ …… 题解列表 2024年09月22日 0 点赞 0 评论 245 浏览 评分:9.9
c语言 好数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int hs(int n){ int k1,k2; int flag; while(1){ …… 题解列表 2024年09月22日 0 点赞 0 评论 475 浏览 评分:8.4
蓝桥杯求好数问题 摘要:解题思路:可以用switch语句来解决此题,写一个来计算一个数的位数的函数,写一个计算好数个数的函数,在此函数中需要调用前一个函数用一个数组来保存这个数的奇偶信息,如果为1则该位为奇数,反之,则为偶。…… 题解列表 2024年09月22日 1 点赞 0 评论 314 浏览 评分:0.0