题解 1197: 发工资咯

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

筛选

发工资咯!(python代码,思路清晰)

摘要:解题思路:注意事项:    数据需要横向输入参考代码:b = 0money = 0sum1 = 0sum2 = 0while True:             # 输入数据,必须要横向输入    a……

Python代码,大道至简

摘要:解题思路:注意事项:参考代码:while True:    n = list(map(int,input().split()))    if n[0] == 0:        exit(0)    ……

1197: 发工资咯

摘要:#include<iostream> using namespace std; int main(){     int a[]={100,50,10,5,2,1};     int n,mon……

1197: 发工资咯(Java)

importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerin=newScanner(System.in);int[]cost={1,2,

编写题解 1197: 发工资咯

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

divmod(x, y)函数,集商和余数于一体

#a,b=divmod(x,y)divmod()函数会返回两个值,第一个为x//y,第二个返回值为x%yMoneyVariety_lis=[100,50,10,5,2,1]while1:num=list(map(int,input().split()))ifnum[0]==0:#满足条件退出while

1197: 发工资咯

摘要:解题思路:sum要从新置零,从新置零,从新置零。垃圾,错这么多次了还不长记性,对自己无语了。注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(……

编写题解 1197: 发工资咯

摘要:解题思路:注意事项:参考代码:while True:     ls=list(map(int,input().split()))     if ls[0]==0:         break ……