C语言小游戏2-文字冒险 摘要:#includeusing namespace std; double shengmingli=2000;//定义主角初始生命力 int gongjili=150;//定义主角初始攻击力 int fa…… 文章列表 2021年10月20日 0 点赞 0 评论 543 浏览 评分:9.9
C语言小游戏3-贪吃蛇 摘要:#define _CRT_SECURE_NO_WARNINGS#pragma warning(disable:4996)#include#include#include#include#include…… 文章列表 2021年10月20日 0 点赞 0 评论 498 浏览 评分:9.9
C语言小游戏4-双人对决 摘要:/*--------------------------------------project: 双人小游戏anthor: LLz 操作 移动 逆、顺时针旋转 发射子弹 玩家1 …… 文章列表 2021年10月20日 0 点赞 0 评论 497 浏览 评分:9.9
01背包,动态规划算法 摘要:0-1背包问题:给定n种物品和一个容量为c的背包,物品i的重量是wi,其价值是vi问:应该怎样选择装入背包的物品,使得装入背包的物品的总价值最大?解:声明一个大小为m[n][c]的二维数组,m[i][…… 文章列表 2021年10月20日 0 点赞 0 评论 199 浏览 评分:9.9
牛客竞赛题目——python 摘要:完全平方数 比赛主页 我的提交 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 131072K,其他语言262144K 64bit IO Format: %ll…… 文章列表 2021年10月22日 0 点赞 0 评论 320 浏览 评分:0.0
字符串读取 摘要:#include<stdio.h>int main(){ char a[100]; int i=0,j=0,d=1; scanf("%c",&a[i]); i=1; while(d){ sca…… 文章列表 2021年10月23日 0 点赞 0 评论 187 浏览 评分:0.0
Sn公式求和;;;;; 摘要:#include<stdio.h>int main(){ int a=2,n=0,i=0,j=0,s=0,m=1; scanf("%d",&n); for(i=0;i<n;i++){ f…… 文章列表 2021年10月23日 0 点赞 0 评论 273 浏览 评分:0.0
关于listen函数backlog参数实战 摘要:一、环境: Ubuntu 18.04.1 LTS二、头文件 #include<sys/socket.h>三、函数简介 int listen(int sockfd,int backlo…… 文章列表 2021年10月23日 0 点赞 0 评论 274 浏览 评分:9.9
阶乘求和!!!!! 摘要:#include<stdio.h>int main(){ int n=0,i=0,j=0,s=0,m=1; scanf("%d",&n); if(n<=20){ for(i=0;i<n;…… 文章列表 2021年10月23日 0 点赞 0 评论 440 浏览 评分:0.0
python实现二叉树的操作 摘要:```python from collections import deque class Stack(object): def __init__(self): sel…… 文章列表 2021年10月23日 0 点赞 0 评论 349 浏览 评分:0.0