2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=10200;char s[N],a,b;int main()…… 题解列表 2023年12月15日 0 点赞 0 评论 220 浏览 评分:0.0
题解 2866: 过滤多余的空格 摘要: #include using namespace std; char a[20000],b,c,d,n,s[2000]; int main(){ …… 题解列表 2023年12月15日 0 点赞 0 评论 265 浏览 评分:0.0
c代码记录之自定义函数连接字符串-指针--Mark:strcat函数,用于连接字符串 摘要:代码1:用getchar() #include int main() { char get_char; while((get_char…… 题解列表 2023年12月15日 0 点赞 0 评论 231 浏览 评分:0.0
2950: 素数回文数的个数 Python简单实现 摘要:解题思路:分别判断是否为素数和回文判断回文的思路是,将整数转换为字符串,然后判断字符串的长度,依次比较首位和末位的值是否相等即可参考代码:# 判断是否为素数 def Prime(x): f…… 题解列表 2023年12月15日 0 点赞 0 评论 286 浏览 评分:0.0
找树根和孩子(python) 摘要:解题思路:注意事项:参考代码:def find_root(tree): # 找到根节点 nodes = set(tree.keys()) children = set() fo…… 题解列表 2023年12月15日 0 点赞 0 评论 252 浏览 评分:0.0
1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ unsigned sum = 1; int N; scanf("%d", &N); for (int …… 题解列表 2023年12月15日 0 点赞 0 评论 186 浏览 评分:0.0
java解牛顿迭代法求平方根 摘要:解题思路:迭代参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) { S…… 题解列表 2023年12月16日 0 点赞 0 评论 260 浏览 评分:0.0
题解 1952: 求长方形周长和面积 摘要:解题思路: 注意事项: 注意换行符参考代码:#include<stdio.h>int main(){//定义边长,宽,周长,面积的变量(正整数int) int length,width,AAs…… 题解列表 2023年12月16日 0 点赞 0 评论 310 浏览 评分:0.0
数组逆序重放 摘要:解题思路:用两个数组注意事项:首项的下标加尾项的下标等于n+1参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n],…… 题解列表 2023年12月16日 0 点赞 0 评论 1216 浏览 评分:0.0
2919: 奖学金 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct student{ int xh,zf,a,b,c;} s[1000…… 题解列表 2023年12月16日 0 点赞 0 评论 394 浏览 评分:0.0