发工资咯-题解(C语言代码)【贪心】 摘要:###普通的贪心 ```c #include int main() { int n; scanf("%d",&n); while(n) { …… 题解列表 2019年07月11日 0 点赞 0 评论 699 浏览 评分:6.0
发工资咯!(python代码,思路清晰) 摘要:解题思路:注意事项: 数据需要横向输入参考代码:b = 0money = 0sum1 = 0sum2 = 0while True: # 输入数据,必须要横向输入 a…… 题解列表 2021年04月08日 0 点赞 1 评论 451 浏览 评分:6.0
发工资咯(Java题解+递归+数组) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { // 定义人民币面额数组 static int[] denomina…… 题解列表 2024年03月30日 0 点赞 0 评论 236 浏览 评分:6.0
发工资咯 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){ int n,t; while(cin>>n&&n){…… 题解列表 2018年08月05日 2 点赞 1 评论 534 浏览 评分:6.0
发工资咯(动态规划) 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; //如果发101元,有6种情况: //1.f(101)=f(101-1)+1 /…… 题解列表 2023年08月07日 0 点赞 0 评论 114 浏览 评分: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 评论 257 浏览 评分:0.0
Python代码,大道至简 摘要:解题思路:注意事项:参考代码:while True: n = list(map(int,input().split())) if n[0] == 0: exit(0) …… 题解列表 2021年04月08日 0 点赞 0 评论 222 浏览 评分:0.0
1197: 发工资咯 摘要:#include<iostream> using namespace std; int main(){ int a[]={100,50,10,5,2,1}; int n,mon…… 题解列表 2021年05月03日 0 点赞 0 评论 186 浏览 评分: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 评论 196 浏览 评分:0.0