小白随便写的,记录一下 摘要:```python rmb = [100, 50, 10, 5, 2, 1] def change_money(li): new_li = [0 for i in range(len(r…… 题解列表 2024年03月26日 0 点赞 0 评论 350 浏览 评分:0.0
6个if,暴力枚举法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年03月24日 0 点赞 0 评论 265 浏览 评分:0.0
发工资咯-题解(Java代码) 摘要:解题思路:贪心算法注意事项:贪心算法,要让给出的纸币最少。先用大面值的纸币结账,如果不够,则用小一号面值的纸币,依次类推参考代码:import java.util.Scanner; public…… 题解列表 2020年08月18日 0 点赞 0 评论 729 浏览 评分:0.0
发工资咯(python) 摘要:解题思路:注意事项:参考代码:while True: n, *salaries = list(map(int, input().split())) if n == 0: br…… 题解列表 2024年03月10日 0 点赞 0 评论 281 浏览 评分:0.0
1197: 发工资咯(贪心算法) 摘要:核心:票票从大开始扣,数量是最少的代码:while True: l = [int(x) for x in input().split()] n = l[0] if n =…… 题解列表 2024年08月30日 0 点赞 0 评论 377 浏览 评分:0.0
发工资咯-题解(C语言代码) 摘要:解题思路:注意事项:参考代码://发工资,递归思路#include <stdio.h>int run (int a);int main (){ int n,sum=0; int a; while(s…… 题解列表 2020年12月06日 0 点赞 0 评论 904 浏览 评分:0.0
发工资咯(动态规划) 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; //如果发101元,有6种情况: //1.f(101)=f(101-1)+1 /…… 题解列表 2023年08月07日 0 点赞 0 评论 223 浏览 评分:0.0
发工资咯!!! 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main9 { public static void main(String[]…… 题解列表 2021年03月22日 0 点赞 0 评论 273 浏览 评分:0.0
1197: 发工资咯 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int Dno[6]={100,50,10,5,2,1};//面额大小 int su…… 题解列表 2022年05月18日 0 点赞 0 评论 299 浏览 评分:0.0
1197: 发工资咯 摘要:```java import java.util.Scanner; public class 测试 { public static void main(String[] args)…… 题解列表 2021年03月23日 0 点赞 0 评论 399 浏览 评分:0.0