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 评论 314 浏览 评分:0.0
判断元音字母出现的位置 摘要: #include #include #include /* run this program using the console pauser or add…… 题解列表 2024年03月28日 0 点赞 0 评论 303 浏览 评分:0.0
简单的矩阵加法 摘要: #include int main() { int n,m; while((scanf("%d%d",&n,&m))!=EOF) …… 题解列表 2024年03月28日 0 点赞 0 评论 418 浏览 评分:6.0
简单易理解,利用循环解决此题 摘要:解题思路:注意事项:参考代码: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 评论 246 浏览 评分:9.9
编写题解 1847: 字符串中间和后边*号删除 摘要:解题思路:注意事项:参考代码:#include<string.h>#include<stdio.h>int fun(char* a){ while (*a == '*') { …… 题解列表 2024年03月28日 0 点赞 0 评论 270 浏览 评分:9.9
P0505求n!的最右端非零数含详解 C语言 百分百通过 摘要:解题思路: 灵感来源于n个数相乘最右侧的数是什么?这个题目 首先我们要是直接使用阶乘的结果来进行判断的话int类型在13!时失败,最大的float类型在35!时失败,因而我们想要通过正常算…… 题解列表 2024年03月28日 0 点赞 0 评论 261 浏览 评分:9.9
Java的动态规划 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class BookBuying { public static void main(String[…… 题解列表 2024年03月27日 0 点赞 0 评论 328 浏览 评分:9.9
选数异或(线段树思路详解) 摘要:解题思路: 思路详解在:https://www.acwing.com/solution/content/228403/参考代码:const int N = 1e5; #include <iostre…… 题解列表 2024年03月27日 2 点赞 0 评论 587 浏览 评分:10.0
利用重载进行多个数字相加 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int add(int a,int b){ return (a+b);}int add(…… 题解列表 2024年03月27日 0 点赞 0 评论 295 浏览 评分:0.0
python代码解决问题 摘要:解题思路:注意事项:参考代码:x1,y1,x2,y2,x3,y3,x4,y4=map(int,input().split())s1=(x2-x1)*(y2-y1)+(x4-x3)*(y4-y3)x_l…… 题解列表 2024年03月27日 0 点赞 0 评论 263 浏览 评分:0.0