不知道为什么没有满分,来人看看吧,救救孩子 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=20;int mp[N][N];bool f[N][N];i…… 题解列表 2024年04月25日 0 点赞 1 评论 970 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[100],b[100]; …… 题解列表 2024年04月25日 0 点赞 0 评论 445 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[1000],b[1000],c[200…… 题解列表 2024年04月25日 0 点赞 0 评论 617 浏览 评分:0.0
[编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n,m,i,a[100],b[100],j; scanf("%d",&n);…… 题解列表 2024年04月25日 0 点赞 0 评论 339 浏览 评分:0.0
互质?公因数! ```cpp#includeusingnamespacestd;#defineendl'\n'constintN=20;vectorg[N];//g[0~i]表示分成了几组,每组的数都互为质数intn,a[N],ans=0x3f3f3f3f;//默认解决方案最大intg_size;//每当开辟新的组时 题解列表 2024年04月25日 0 点赞 0 评论 583 浏览 评分:9.9
差分+前缀和 摘要:解题思路:初始商品库存均为0,执行完全部操作后分为2种情况:商品库存<=1 //表示被0或1个区间包含商品库存>1 //表示被1个以上的区间包含因为每次只能撤回一次操作,等价于求[l,r]<=1的…… 题解列表 2024年04月24日 0 点赞 4 评论 1381 浏览 评分:7.5
封闭图形个数 ##方法1```#include#defineintlonglongusingnamespacestd;constintN=2e5+10,mod=998244353;//intf[N];//inta[N][N],b[N];intp[N];//intf[N];structs{intx, 题解列表 2024年04月24日 0 点赞 0 评论 681 浏览 评分:0.0
自定义函数之字符串连接 解题思路:C语言存储字符串是由操作系统分配一块连续的空间,字符串有多长,该空间就等分几份,每份空间都有对应的地址,且地址也连续。首地址所对应的空间存储第一个字符,与首地址相邻的地址对应的空间存储第二个字符串,以此类推,直至字符串存储完毕,编译器自动追加'\0'注意事项:scanf()函 题解列表 2024年04月24日 0 点赞 0 评论 509 浏览 评分:0.0
2988: 相关月 摘要:解题思路:注意事项:参考代码:import java.lang.*; import java.util.Scanner; public class Main { public s…… 题解列表 2024年04月24日 0 点赞 0 评论 547 浏览 评分:0.0
好好学string及相关方法~ ***阅读须知:s.substr(x)的意思是从字符串s的第x个开始截取到s的末尾,那substr(0,x)不必多说了吧...为方便大家更容易理解,我将解决字符串之间的拼接的部分单独放入一个check函数来解释。***样例为attouchcheatchoosetact龙头为a要进行拼接, 题解列表 2024年04月24日 0 点赞 0 评论 656 浏览 评分:9.9