C进制转换(不带/带前缀) 摘要:无前缀方式:printf("%o",num) //无前缀o的8进制数printf("%d",num) //无前缀0d的10进制数printf("%x",num) //无前缀0x的小写16进制数p…… 文章列表 2022年03月12日 0 点赞 0 评论 304 浏览 评分:9.9
龙腾数(Python 和 C++)(<1000) 摘要:Python:for i in range(1,1000): n=str(i) s=0 for x in n: s+=int(x) if s==5: …… 文章列表 2022年03月12日 0 点赞 0 评论 1360 浏览 评分:7.9
精品文章 每日算法题:二分查找 摘要:描述(来自牛客):请实现无重复数字的升序数组的二分查找。给定一个 元素升序的、无重复数字的整型数组 nums 和一个目标值 target ,写一个函数搜索 nums 中的 target,如果目标值存在…… 文章列表 2022年03月12日 0 点赞 0 评论 505 浏览 评分:9.9
精品文章 每日算法题:反转链表 摘要:描述(来自牛客):给定一个单链表的头结点pHead(该头节点是有值的,比如在下图,它的val是1),长度为n,反转该链表后,返回新链表的表头。数据范围:0≤n≤1000要求:空间复杂度 O(1) ,时…… 文章列表 2022年03月12日 0 点赞 0 评论 701 浏览 评分:9.9
扫雷( window原版规则) 摘要:#include<bits/stdc++.h>#include<windows.h>using namespace std;long long int c,dev,m,k,cnt,d,e,jie=10…… 文章列表 2022年03月11日 0 点赞 0 评论 637 浏览 评分:9.9
2048上下左右 摘要:#include <iostream> #include <windows.h> #include <ctime> using namespace std; int const ROW =…… 文章列表 2022年03月11日 0 点赞 0 评论 711 浏览 评分:9.9
打怪鬼脸 做鬼脸 摘要:#include<bits/stdc++.h>#include<conio.h>#include<windows.h>using namespace std;double shanghai[20]={…… 文章列表 2022年03月11日 0 点赞 1 评论 377 浏览 评分:9.9
猜拳(youVScomputer) 摘要:#include<iostream>#include<cstdlib>#include<ctime>using namespace std;int main(){ int c,p;//定义电脑(c),…… 文章列表 2022年03月11日 0 点赞 0 评论 321 浏览 评分:9.9
贪吃蛇(流畅版) 摘要:#include#include#include#include#define U 1 #define D 2 #define L 3 #define R 4 //蛇的状态,U:上 ;D:下;L…… 文章列表 2022年03月11日 0 点赞 0 评论 611 浏览 评分:9.9
贪吃蛇小游戏 摘要:#include <windows.h> #include <stdlib.h> #include <conio.h> #include <time.h> #include <…… 文章列表 2022年03月09日 0 点赞 0 评论 458 浏览 评分:8.4