题目 1017: [编程入门]完数的判断(大概是最简单无脑的方法) 摘要:```cpp #include using namespace std; #include int main() { int n; cin >> n;//输入 for (in…… 文章列表 2021年10月26日 0 点赞 0 评论 189 浏览 评分:9.9
第一个代码Hello,World! 摘要:#include<stdio.h>int main(){ printf("Hello,World!"); return 0;}…… 文章列表 2021年10月24日 0 点赞 1 评论 168 浏览 评分:9.9
【C语言】笔记—数组标记法 摘要:## 例题(1099) 某校大门外长度为L的马路上有一排树,每两棵相邻的树之间的间隔都是1米。我们可以把马路看成一个数轴,马路的一端在数轴0的位置,另一端在L的位置;数轴上的每个整数点,即0,1,2…… 文章列表 2021年10月24日 0 点赞 0 评论 2131 浏览 评分:7.4
python实现二叉树的操作 摘要:```python from collections import deque class Stack(object): def __init__(self): sel…… 文章列表 2021年10月23日 0 点赞 0 评论 341 浏览 评分:0.0
阶乘求和!!!!! 摘要:#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 评论 433 浏览 评分:0.0
关于listen函数backlog参数实战 摘要:一、环境: Ubuntu 18.04.1 LTS二、头文件 #include<sys/socket.h>三、函数简介 int listen(int sockfd,int backlo…… 文章列表 2021年10月23日 0 点赞 0 评论 272 浏览 评分:9.9
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 评论 272 浏览 评分: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 评论 185 浏览 评分:0.0
牛客竞赛题目——python 摘要:完全平方数 比赛主页 我的提交 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 131072K,其他语言262144K 64bit IO Format: %ll…… 文章列表 2021年10月22日 0 点赞 0 评论 319 浏览 评分:0.0
01背包,动态规划算法 摘要:0-1背包问题:给定n种物品和一个容量为c的背包,物品i的重量是wi,其价值是vi问:应该怎样选择装入背包的物品,使得装入背包的物品的总价值最大?解:声明一个大小为m[n][c]的二维数组,m[i][…… 文章列表 2021年10月20日 0 点赞 0 评论 198 浏览 评分:9.9