题解 1197: 发工资咯

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

发工资咯 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int a[6]={100,50,10,5,2,1}; int main() { ……

发工资咯 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,a[1000]; while(scanf("%d",&n)!=E……

发工资咯 (C语言代码)

摘要:解题思路:定义一个数组,存放每一种人民币是多少元,然后按最大开始拆分,直到工资为0结束当前工资的拆分。参考代码:#include <stdio.h> int main()   { int mo……

发工资咯 (C++代码)

摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <stdio.h> #define……

发工资咯 (Java代码)

摘要:解题思路:注意事项:先取100面额的人民币,再依次降低面额参考代码:import java.util.Scanner;public class Main { public static void ma……

发工资咯 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int fun(int* a,int* b, int n){    int i,j,t=0;    fo……

发工资咯 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include "stdio.h"int qianshu(int n);int main(){ int n; while(scanf("%d",&n)&&n) {  i……

发工资咯贪心算法

摘要:#include<stdio.h>int main(){ //贪心算法:从最大纸币开始选择 int b[6]={100,50,10,5,2,1};//定义一个数组存储面额 int n;//……