编写题解 1847: 字符串中间和后边*号删除 摘要:解题思路:注意事项:参考代码:#include<string.h>#include<stdio.h>int fun(char* a){ while (*a == '*') { …… 题解列表 2024年03月28日 0 点赞 0 评论 269 浏览 评分:9.9
简单易理解,利用循环解决此题 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())d=0da=(1,3,5,7,8,10,12)xiao=(4,6,9,11)for i in range(1,…… 题解列表 2024年03月28日 1 点赞 0 评论 245 浏览 评分:9.9
简单的矩阵加法 摘要: #include int main() { int n,m; while((scanf("%d%d",&n,&m))!=EOF) …… 题解列表 2024年03月28日 0 点赞 0 评论 418 浏览 评分:6.0
判断元音字母出现的位置 摘要: #include #include #include /* run this program using the console pauser or add…… 题解列表 2024年03月28日 0 点赞 0 评论 303 浏览 评分:0.0
1866: 三位数反转 (公式简化计算结果)(学习 @弥城猫巷 本题代码中的补零) 摘要:思路: 三位数abc: a×100+b×10+c×1 三位数反转cba: c×100+b×10+a×1 abc - cba = 99×(a-c) cba = abc - 99×(a-c…… 题解列表 2024年03月28日 0 点赞 1 评论 311 浏览 评分:0.0
不用循环,总共21行代码搞定!! 摘要: **本题的思路大致为先将给出的四个数字进行四选三的组合,再将选出来的三个数字进行排序,那么就有两种实现方案: (1)将给出的四个数字写进数组里,进行数组的循环挑选遍历; (2)将选出来的三个数…… 题解列表 2024年03月28日 2 点赞 0 评论 680 浏览 评分:10.0
Java题解:动态规划 摘要:解题思路:注意事项:参考代码:package com.test.eazy;import java.util.Scanner;public class eazy10 { static final …… 题解列表 2024年03月28日 0 点赞 0 评论 432 浏览 评分:9.9
sort函数妙解数位排序 摘要:解题思路:在sort函数中添加优化的比较函数cmp注意事项:数组要比十万大一点参考代码:#include <iostream> #include<algorithm> using namespac…… 题解列表 2024年03月28日 0 点赞 0 评论 200 浏览 评分:0.0
找第一个只出现一次的字符,不使用复杂函数的简单解法 摘要:题目说了输入的字符串仅有小写字母,那么可以定义一个数据元素个数为26的整型数组,用于记录各个字符出现的次数,出现次数为1的即为答案,没有则输出no ```cpp #include #inclu…… 题解列表 2024年03月28日 1 点赞 0 评论 530 浏览 评分:0.0
Java题解:01背包问题 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年03月28日 0 点赞 0 评论 285 浏览 评分:0.0