人民币为什么没有20.。。。 摘要:解题思路: 先把人民币的面值都定义出来,然后看题目是多组输入,所以就要用到while来输入多组 输入一个n表示人数,后面再输入n个人的工资,题目…… 题解列表 2022年02月20日 0 点赞 0 评论 345 浏览 评分:9.9
编写题解 1197: 发工资咯 摘要:解题思路:注意事项:参考代码:while True: ls=list(map(int,input().split())) if ls[0]==0: break …… 题解列表 2022年02月19日 0 点赞 0 评论 220 浏览 评分:9.9
1197: 发工资咯 摘要:解题思路:sum要从新置零,从新置零,从新置零。垃圾,错这么多次了还不长记性,对自己无语了。注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(…… 题解列表 2022年01月29日 0 点赞 0 评论 234 浏览 评分:0.0
str = replace(old, new)替换所有空格 摘要:就这???? 就这??? while 1: st = input() NewSt = st.replace(' ', '') print…… 题解列表 2021年12月24日 0 点赞 0 评论 204 浏览 评分:0.0
divmod(x, y)函数,集商和余数于一体 摘要: # a, b = divmod(x, y) divmod()函数会返回两个值,第一个为 x // y, 第二个返回值为 x % y MoneyVariety_lis =…… 题解列表 2021年12月24日 0 点赞 0 评论 586 浏览 评分:0.0
编写题解 1197: 发工资咯 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int n; int M; while (scanf("%d", &n) != EOF) {int k =…… 题解列表 2021年09月05日 0 点赞 0 评论 375 浏览 评分:0.0
1197: 发工资咯(Java) 摘要: import java.util.Scanner; public class Main { public static void main(String…… 题解列表 2021年08月29日 0 点赞 0 评论 247 浏览 评分:0.0
1197: 发工资咯 摘要:#include<iostream> using namespace std; int main(){ int a[]={100,50,10,5,2,1}; int n,mon…… 题解列表 2021年05月03日 0 点赞 0 评论 168 浏览 评分:0.0
Python代码,大道至简 摘要:解题思路:注意事项:参考代码:while True: n = list(map(int,input().split())) if n[0] == 0: exit(0) …… 题解列表 2021年04月08日 0 点赞 0 评论 207 浏览 评分:0.0