编写题解 2792: 三角形判断 摘要:解题思路:两边之和大于第三边注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin…… 题解列表 2023年12月31日 0 点赞 0 评论 190 浏览 评分:0.0
如有漏洞请指出谢谢 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年01月01日 0 点赞 0 评论 242 浏览 评分:0.0
C语言-自定义函数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<math.h>#include<stdio.h>double jca(int…… 题解列表 2024年01月01日 0 点赞 0 评论 469 浏览 评分:0.0
位数分解(不止于三位) 摘要:解题思路:不同于寻常方法的求解注意事项:该方法运用了函数递归参考代码:void print(int n){ if (n > 9) print(n / 10); printf("%d\n", n % …… 题解列表 2024年01月01日 0 点赞 0 评论 201 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录(Python) 摘要:解题思路:我认为核心难点就是如何用列表表示“二维数组”,如果知道如何表示的话,就差不多了。注意事项:无参考代码:n = int(input())ls =[]for i in range(n): …… 题解列表 2024年01月01日 0 点赞 0 评论 290 浏览 评分:0.0
输出二进制(负数时数据有错的看这个) 摘要:解题思路:抛弃传统的短除法求二进制的策略,引入math库函数,运用减法求二进制,避免事后的倒序处理;同时,因为负数是采取补码运算的方式,所以为了简便过程,我们将符号位处理之后便可将数据化为对应的正数进…… 题解列表 2024年01月02日 0 点赞 0 评论 172 浏览 评分:0.0
汽水瓶题解 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>/* run this program using the console pauser o…… 题解列表 2024年01月02日 0 点赞 0 评论 170 浏览 评分:0.0
动态规划解决问题 摘要:#include #include #define N 100005 #define M 25 int v[M]; int w[M]; int dp[N]; int maximum(in…… 题解列表 2024年01月02日 0 点赞 0 评论 757 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string str; cin>>st…… 题解列表 2024年01月02日 0 点赞 0 评论 317 浏览 评分:0.0
2817: 级数求和 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; int pos=0; …… 题解列表 2024年01月02日 0 点赞 0 评论 257 浏览 评分:0.0