题解 1197: 发工资咯

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

筛选

发工资咯 (C语言代码)

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

发工资咯 (Java代码)

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

发工资咯 (C++代码)

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

发工资咯 (C语言代码)

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

发工资咯 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){ int n,t; while(cin>>n&&n){……

发工资咯 (C语言代码)

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

发工资咯 (C++代码)

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

发工资咯 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class C1197 { public static void main(String[] ……

发工资咯 (C语言代码)

摘要:解题思路:枚举法拿出数去减去面额 之后判断是否大于等于0 若大于等于0就跳出循环 继续下一个数的判断注意事项:若有不明白的地方请在下方评论参考代码:#include <stdio.h>int main……