Python代码,大道至简 摘要:解题思路:注意事项:参考代码:while True: n = list(map(int,input().split())) if n[0] == 0: exit(0) …… 题解列表 2021年04月08日 0 点赞 0 评论 353 浏览 评分: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 评论 306 浏览 评分:0.0
1197: 发工资咯(Java) 摘要: import java.util.Scanner; public class Main { public static void main(String…… 题解列表 2021年08月29日 0 点赞 0 评论 527 浏览 评分:0.0
编写题解 1197: 发工资咯 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int n; int M; while (scanf("%d", &n) != EOF) {int k =…… 题解列表 2021年09月05日 0 点赞 0 评论 507 浏览 评分:0.0
C++贪心法做个笔记期末复习用,说标题太短不让我发 摘要:解题思路:老师上课讲的,做个笔记期末复习用注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int maxn=1005;int n,…… 题解列表 2022年04月05日 0 点赞 0 评论 318 浏览 评分:0.0
divmod(x, y)函数,集商和余数于一体 摘要: # a, b = divmod(x, y) divmod()函数会返回两个值,第一个为 x // y, 第二个返回值为 x % y MoneyVariety_lis =…… 题解列表 2021年12月24日 0 点赞 0 评论 767 浏览 评分:0.0
str = replace(old, new)替换所有空格 摘要:就这???? 就这??? while 1: st = input() NewSt = st.replace(' ', '') print…… 题解列表 2021年12月24日 0 点赞 0 评论 322 浏览 评分:0.0
1197: 发工资咯 摘要:解题思路:sum要从新置零,从新置零,从新置零。垃圾,错这么多次了还不长记性,对自己无语了。注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(…… 题解列表 2022年01月29日 0 点赞 0 评论 364 浏览 评分:0.0
发工资咯 (C语言代码) 摘要:解题思路:枚举法拿出数去减去面额 之后判断是否大于等于0 若大于等于0就跳出循环 继续下一个数的判断注意事项:若有不明白的地方请在下方评论参考代码:#include <stdio.h>int main…… 题解列表 2018年02月14日 0 点赞 0 评论 1154 浏览 评分:0.0