题解 1197: 发工资咯

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

筛选

一看就懂的简单代码

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

发工资咯 (C语言代码)

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

发工资咯 (C语言代码)

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

发工资咯 (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++代码)(暴力??)

摘要:emmm 一个简单的暴力 我交了5回都是百分之五十 搞半天结果没有考虑算5块钱的情况 根据题意的数据量可以直接暴力,虽然我也想不到怎么优化(orz) 就是直接先拿票值大的钱 贪心的证……