1197: 发工资咯(贪心算法) 摘要:核心:票票从大开始扣,数量是最少的代码:while True: l = [int(x) for x in input().split()] n = l[0] if n =…… 题解列表 2024年08月30日 0 点赞 0 评论 342 浏览 评分:0.0
1159题解(C语言) 摘要:```c #include #define MAX 101 void fun(int n, int m) { int a[MAX]; // 存储生成的数字的数组 int …… 题解列表 2024年08月30日 0 点赞 0 评论 548 浏览 评分:0.0
各位大佬看看我的 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void SumAge(char a[4]) { for (size_t i = 0; i <4; i++) { …… 题解列表 2024年08月31日 1 点赞 0 评论 213 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2024年09月01日 0 点赞 0 评论 533 浏览 评分:0.0
定义一个带参的宏,使两个参数的值互换,并写出程序,输入两个数作为使用宏时的实参。输出已交换后的两个值。 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)// 定义一个带参的宏,用于交换两个数的值#define chang(a…… 题解列表 2024年09月01日 1 点赞 0 评论 843 浏览 评分:0.0
输入两个整数,求他们相除的余数。用带参的宏来实现,编程序。 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define AUM(a,b) c=a%b;int main(){ …… 题解列表 2024年09月01日 0 点赞 0 评论 569 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#include <math.h>#define AUM(a,b,c) …… 题解列表 2024年09月01日 0 点赞 0 评论 333 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define LEAP_YEAR(y) (((y) % 4 == 0 …… 题解列表 2024年09月01日 0 点赞 0 评论 368 浏览 评分:0.0
[编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define MAX_OF_THREE(a, b, c) ( (a) …… 题解列表 2024年09月01日 0 点赞 0 评论 304 浏览 评分:0.0
1162: 密码(遍历) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int m,cnt = 0; string s, …… 题解列表 2024年09月01日 0 点赞 0 评论 189 浏览 评分:0.0