C进制转换(不带/带前缀) 摘要:无前缀方式:printf("%o",num) //无前缀o的8进制数printf("%d",num) //无前缀0d的10进制数printf("%x",num) //无前缀0x的小写16进制数p…… 文章列表 2022年03月12日 0 点赞 0 评论 245 浏览 评分:9.9
三个数找最大值 摘要:#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a>b) …… 文章列表 2022年03月18日 0 点赞 0 评论 334 浏览 评分:9.9
[编程入门]数字的处理与判断 摘要:#include<stdio.h> int main() { int a; scanf("%d",&a); if(a/10000>=1) { printf("5\n");//输…… 文章列表 2022年03月19日 0 点赞 2 评论 225 浏览 评分:9.9
贪吃蛇(修改版) 摘要:#include<stdio.h>#include<time.h>#include<windows.h>#include<stdlib.h>#define U 1#define D 2#define …… 文章列表 2022年03月21日 0 点赞 0 评论 548 浏览 评分:9.9
二级C语言-等差数列 摘要:#include<stdio.h> int main() { int n,i,sum,An; scanf("%d",&n); An = 2+(n-1)*3;//此行为等差数列通项公式…… 文章列表 2022年03月21日 0 点赞 0 评论 309 浏览 评分:9.9
图论-士兵排序 摘要:解题思路:首先理解本题考察的是**拓扑排序有考虑到时间可能会超时,所有进行 双向 搜索set<int>str_out[26];//记录出度 set<int>str_in[26];//记录入度为0的点…… 文章列表 2022年03月21日 0 点赞 0 评论 340 浏览 评分:9.9
飞机大战123 摘要:#include<iostream>#include<windows.h>#include<conio.h>#include<time.h>#include<string>using namespac…… 文章列表 2022年03月26日 0 点赞 0 评论 306 浏览 评分:9.9
算法训练,一日一题 摘要:试题二 数的潜能资源限制时间限制:1.0s 内存限制:256.0MB问题描述 将一个数N分为多个正整数之和,即N=a1+a2+a3+…+ak,定义M=a1*a2*a3*…*ak为N的潜能。 …… 文章列表 2022年03月26日 0 点赞 2 评论 338 浏览 评分:9.9
输入三个字符串,由小到大输出 摘要:形式:sort(first_pointer,first_pointer+n,cmp)参数解释: 第一个参数是数组的首地址,一般写上数组名就可以,因为数组名是一个指针常量。第二个参数相对较好理解,即首地…… 文章列表 2022年03月26日 0 点赞 0 评论 229 浏览 评分:9.9
闯关,周三上线 摘要:马上“闯关”就要上线啦,里面有个bug,请大神帮忙修复一下!!如果有5人以上(包含5人)的人支持,我将会在第一时间内上线,否则周三上线哦!…… 文章列表 2022年03月27日 0 点赞 0 评论 258 浏览 评分:9.9