题解列表
题解 2808: 买房子
摘要:解题思路:注意事项:参考代码:# 输入年薪N和房价增长率K n, k = map(int, input().strip().split()) # 初始化变量 a = n # 程序员积攒的总……
题解 2807:计算金额(for)
摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().strip().split())for i in range(c): b *= (1+a/100)print(int(b……
2981: 二进制分类
摘要:```cpp
#include
using namespace std;
int A,B;
bool turn(int x)
{
int a=0,b=0;
while(x!=0)
……
2968: 区间内的真素数
摘要:```cpp
#include
using namespace std;
int ss(int a){
if(ax>>y;
for(int i=x;i……
set集合的使用(插入与遍历)
摘要:#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m;
while(cin>>n>>m)
{
ve……
----------------杨辉三角------------woc--------杨辉三角-----------woc---------卧槽
摘要:解题思路:无注意事项:无参考代码:#include <stdio.h>
int main() {
int n;
while (~scanf("%d", &n)){
int nu……
----------------------------------在校门口挖吖挖+++++++++++++++++++++
摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>
/*
用 1 表示树,
用 0 表示是被挖走,即坑。
*/
int main()
……
递归和迭代求解斐波那契数列
摘要:递归:#include <stdio.h>
int Input()
{
int N;
scanf("%d", &N);
return N;
}
int Fib……
太经典了,链表的经典操作 链表数据求和操作
摘要:解题思路:还是前面讲的链表的经典操作注意事项:链表的使用,注意删除节点参考代码:#includeusing namespace std;
typedef struct ListPlural{
……