发工资咯-题解(C语言代码) 摘要:```c #include int main() { int n,p,i,j,k,salary[6]={100,50,10,5,2,1};//纸币金额 scanf("%d",&n); …… 题解列表 2020年04月22日 0 点赞 0 评论 552 浏览 评分:0.0
发工资咯-题解(Java代码) 摘要:解题思路:贪心算法注意事项:贪心算法,要让给出的纸币最少。先用大面值的纸币结账,如果不够,则用小一号面值的纸币,依次类推参考代码:import java.util.Scanner; public…… 题解列表 2020年08月18日 0 点赞 0 评论 729 浏览 评分:0.0
发工资咯 (C++代码)又水了一发 摘要:参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0),cout.tie(0); using …… 题解列表 2019年03月20日 0 点赞 0 评论 1175 浏览 评分:0.0
发工资咯 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int qianshu(int n);int main(){ int n; while(scanf("%d",&n)&&n) { i…… 题解列表 2019年03月14日 0 点赞 0 评论 1000 浏览 评分: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
发工资咯 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int fun(int* a,int* b, int n){ int i,j,t=0; fo…… 题解列表 2019年02月03日 1 点赞 0 评论 760 浏览 评分:0.0
发工资咯!!! 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main9 { public static void main(String[]…… 题解列表 2021年03月22日 0 点赞 0 评论 273 浏览 评分:0.0
发工资咯 (Java代码) 摘要:解题思路:注意事项:先取100面额的人民币,再依次降低面额参考代码:import java.util.Scanner;public class Main { public static void ma…… 题解列表 2018年11月29日 1 点赞 0 评论 1334 浏览 评分:0.0
1197: 发工资咯 摘要:```java import java.util.Scanner; public class 测试 { public static void main(String[] args)…… 题解列表 2021年03月23日 0 点赞 0 评论 399 浏览 评分: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 评论 1063 浏览 评分:0.0