题解列表

筛选

发工资咯(C语言)

摘要:解题思路:使用贪心算法在每次循环迭代中,定义整数变量 salary 用于存储每个人的工资,并初始化一个计数变量 count 用于记录需要的纸币数量。同时,定义一个整数数组 money,其中包含了货币纸……

字符串处理回文数

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;int main(){ int n; int sum=0,……

题解 2760: 整型与布尔型的转换

摘要:解题思路:最好先定义两个整形,到后面麻烦。注意事项:题目有些绕,要看懂。参考代码:#include <bits/stdc++.h>using namespace std;int main(){    ……

2758 打印ASCII码(c++)

摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){        char a;        cin>>a;        co……