数字黑洞(Java) 解题思路:注意事项:参考代码:importjava.util.Arrays;importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);intn=s 题解列表 2022年10月05日 0 点赞 0 评论 649 浏览 评分:8.0
python 完成了75%的小伙伴可以看一下 解题思路:深度递归注意事项:如果完成了75%并出现运行错误,可能是因为数组越界参考代码:m,n=map(int,input().strip().split())figure=[]#存储输入的数组temp=[[0]*mforiinrange(n)]#标记每个位置的数是否被访问过ans=[]#存储成功分割 题解列表 2022年10月05日 0 点赞 0 评论 589 浏览 评分:0.0
1037-宏定义的练习 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define REM(x,y) t=x%yint main(){ int a,b,t; ci…… 题解列表 2022年10月05日 0 点赞 0 评论 523 浏览 评分:0.0
1036-带参数宏定义练习 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define SWAP(x,y) {int t=x;x=y;y=t;} int main()…… 题解列表 2022年10月05日 0 点赞 0 评论 514 浏览 评分:0.0
1035-自定义函数之字符类型统计 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;void count(string s){ int a=0,…… 题解列表 2022年10月05日 0 点赞 0 评论 493 浏览 评分:0.0
另一种思路来解决数字后移 摘要:解题思路:通过将数组复制到此数组后,打印对应位来解决注意事项:注意打印循环i的起始值,否则会写成数字前移。参考代码:#include <stdio.h>int main(){ int x, n;…… 题解列表 2022年10月05日 0 点赞 0 评论 466 浏览 评分:0.0
1034-自定义函数之数字分离 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;void sep(int n){ string s=to_s…… 题解列表 2022年10月05日 0 点赞 0 评论 472 浏览 评分:0.0
1033-自定义函数之字符提取 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std; string isY(string s){ string …… 题解列表 2022年10月05日 0 点赞 0 评论 509 浏览 评分:0.0
1033-自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;string con(string s1,string s2)…… 题解列表 2022年10月05日 0 点赞 0 评论 622 浏览 评分:0.0
1031-自定义函数之字符串反转 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm> using namespace std;string rev…… 题解列表 2022年10月05日 0 点赞 0 评论 530 浏览 评分:0.0