小白随便写的,记录一下 摘要:```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
1197: 发工资咯 摘要:解题思路:注意事项:参考代码:def coin_change(n): coins = [100, 50, 10, 5, 2, 1] num = [] for coin i…… 题解列表 2024年04月09日 0 点赞 0 评论 456 浏览 评分: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
发工资咯 记way 摘要: #include using namespace std; int dir[] = { 100, 50, 10, 5, 2, 1 }; int main() {…… 题解列表 2024年11月14日 0 点赞 0 评论 401 浏览 评分:0.0
发工资咯,简单贪心 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n表示输入的整数个数,a数组…… 题解列表 2024年11月16日 0 点赞 0 评论 444 浏览 评分:0.0
一看就懂的简单代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[6]={100,50,10,5,2,1};int main(…… 题解列表 2025年03月03日 0 点赞 0 评论 407 浏览 评分:0.0
发工资咯贪心算法 摘要:#include<stdio.h>int main(){ //贪心算法:从最大纸币开始选择 int b[6]={100,50,10,5,2,1};//定义一个数组存储面额 int n;//…… 题解列表 2025年10月08日 0 点赞 0 评论 186 浏览 评分:0.0
发工资咯-题解(C语言代码)-----------动态规划,简单求解 摘要: #include #define N 10000 #define MAX 999999 int min(int a,int b){ return a>b ? …… 题解列表 2019年08月18日 0 点赞 0 评论 725 浏览 评分:0.0
发工资咯-题解(C语言代码) 摘要:```c # include int main() { int n,i,a[100],num=0; while(scanf("%d",&n)&&n!=0) { for(i=0…… 题解列表 2019年11月20日 0 点赞 0 评论 789 浏览 评分:0.0