[编程入门]利润计算 摘要:#include<stdio.h> int main() { float award; scanf("%f",&award); if(award<100000) …… 文章列表 2022年03月18日 0 点赞 0 评论 177 浏览 评分:0.0
分段函数求值 摘要:#include<stdio.h> int main() { int a; scanf("%d",&a); if(a<1) printf("%d",a); …… 文章列表 2022年03月18日 0 点赞 0 评论 196 浏览 评分:0.0
三个数找最大值 摘要:#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a>b) …… 文章列表 2022年03月18日 0 点赞 0 评论 302 浏览 评分:9.9
蓝桥杯直线题解(摘自ACWING) 摘要:#include<bits/stdc++.h>using namespace std;typedef long long ll;typedef long double ld;const int N=2…… 文章列表 2022年03月18日 0 点赞 0 评论 361 浏览 评分:0.0
俄罗斯方块 摘要:#include<bits/stdc++.h> using namespace std; int block00[4][4] = { { 10,0,0,0 },{ 1,1,1,1 },{ 0,…… 文章列表 2022年03月13日 0 点赞 2 评论 270 浏览 评分:7.3
C进制转换(不带/带前缀) 摘要:无前缀方式:printf("%o",num) //无前缀o的8进制数printf("%d",num) //无前缀0d的10进制数printf("%x",num) //无前缀0x的小写16进制数p…… 文章列表 2022年03月12日 0 点赞 0 评论 218 浏览 评分: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 评论 1221 浏览 评分:7.9
精品文章 每日算法题:二分查找 摘要:描述(来自牛客):请实现无重复数字的升序数组的二分查找。给定一个 元素升序的、无重复数字的整型数组 nums 和一个目标值 target ,写一个函数搜索 nums 中的 target,如果目标值存在…… 文章列表 2022年03月12日 0 点赞 0 评论 375 浏览 评分:9.9
精品文章 每日算法题:反转链表 摘要:描述(来自牛客):给定一个单链表的头结点pHead(该头节点是有值的,比如在下图,它的val是1),长度为n,反转该链表后,返回新链表的表头。数据范围:0≤n≤1000要求:空间复杂度 O(1) ,时…… 文章列表 2022年03月12日 0 点赞 0 评论 536 浏览 评分: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 评论 520 浏览 评分:9.9