对题2856:字符串数组的使用 摘要:解题思路:本题有多个限制条件需要提前判断,如下所示:1.所有信息扫描完毕,‘A’—‘Z’所有26个字母在原信息中均出现过并获得了相应的“密字”。2.所有信息扫描完毕,但发现存在某个(或某些)字母在原信…… 题解列表 2024年09月24日 0 点赞 0 评论 443 浏览 评分:6.0
对题2862:string.h库函数的使用及注意事项 摘要:解题思路:本题是要给定两个字符串arr1和arr2,判断arr1经过任意次循环操作之后,是否包含arr2的子字符串。由于循环操作是将字符串最后一位字符转移到第一位,所以通过有限次循环之后,arr1字符…… 题解列表 2024年09月24日 0 点赞 0 评论 474 浏览 评分: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 评论 511 浏览 评分: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 评论 394 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;int main(){ int t = 1 ;//取余计算的余数,赋值为1是为了方便进…… 题解列表 2024年09月23日 0 点赞 5 评论 465 浏览 评分:7.5
对齐方式(左负右正) 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String args[]) …… 题解列表 2024年09月23日 0 点赞 0 评论 367 浏览 评分:0.0
[CSP-J2020] 优秀的拆分--DFS+剪枝 摘要: # 题解没有搜索解法所以写了个 ###### 其实根本没必要,老老实实位运算不香嘛 #### tip-1: 1 当前凑的数已经大…… 题解列表 2024年09月22日 0 点赞 1 评论 479 浏览 评分:9.9
编写题解 2831: 画矩形 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,d ; char c; c…… 题解列表 2024年09月22日 0 点赞 0 评论 330 浏览 评分:9.9
汽水瓶(dfs法) 摘要: import java.util.Scanner; public class Main { static int dfs(int n){ …… 题解列表 2024年09月22日 0 点赞 0 评论 352 浏览 评分:9.9
c语言 好数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int hs(int n){ int k1,k2; int flag; while(1){ …… 题解列表 2024年09月22日 0 点赞 0 评论 549 浏览 评分:8.4