6个if,暴力枚举法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年03月24日 0 点赞 0 评论 165 浏览 评分:0.0
发工资咯(python) 摘要:解题思路:注意事项:参考代码:while True: n, *salaries = list(map(int, input().split())) if n == 0: br…… 题解列表 2024年03月10日 0 点赞 0 评论 150 浏览 评分:0.0
简单的贪心题 摘要:解题思路: 网站指定是贪心算法,那就是最简单的类似背包题目。先从最大面值的钱开始尝试注意事项: 参考代码:#include<bits/stdc++.h>using namespace std…… 题解列表 2024年02月08日 0 点赞 0 评论 148 浏览 评分:0.0
C++贪心法做个笔记期末复习用,说标题太短不让我发 摘要:解题思路:老师上课讲的,做个笔记期末复习用注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int maxn=1005;int n,…… 题解列表 2022年04月05日 0 点赞 0 评论 219 浏览 评分:0.0
发工资咯-题解(C++代码) 摘要:#include #include using namespace std; int main() { int n = 0; int a[6] = {100,50,10,5,2,1…… 题解列表 2019年08月18日 0 点赞 0 评论 862 浏览 评分:0.0
发工资咯 (C语言代码) 摘要:解题思路:枚举法拿出数去减去面额 之后判断是否大于等于0 若大于等于0就跳出循环 继续下一个数的判断注意事项:若有不明白的地方请在下方评论参考代码:#include <stdio.h>int main…… 题解列表 2018年02月14日 0 点赞 0 评论 915 浏览 评分:0.0
发工资咯 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int a[6]={100,50,10,5,2,1}; int main() { …… 题解列表 2018年05月16日 0 点赞 0 评论 573 浏览 评分:0.0
发工资咯 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,a[1000]; while(scanf("%d",&n)!=E…… 题解列表 2018年07月26日 0 点赞 0 评论 856 浏览 评分:0.0
Mark11:散列法(hashTable) 摘要:/* ** 核心是这部分: for(int j = 0; j < 6; j++){   题解列表 2018年10月13日 1 点赞 0 评论 824 浏览 评分:0.0
发工资咯 (C语言代码) 摘要:解题思路:定义一个数组,存放每一种人民币是多少元,然后按最大开始拆分,直到工资为0结束当前工资的拆分。参考代码:#include <stdio.h> int main() { int mo…… 题解列表 2018年10月26日 0 点赞 0 评论 714 浏览 评分:0.0