随笔分类 -  洛谷

摘要:效果演示: 原理分析(从小到大): 首先取出一个key,一般取第一个元素。 从后往前遍历,如果数组中的数据小于了key,那么就将从前往后未比较过的第一个位置即fisrt位置替换为该数据。 然后从前往后遍历,如果数组中的数据大于了key,那么就将从后往前的第一个比较过数据位置替换。 直到左右两边的位置 阅读全文
posted @ 2022-01-12 22:42 subeiLY 阅读(54) 评论(0) 推荐(0) 编辑
摘要:【入门1】顺序结构 P1001 A+B Problem #include <stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d\n",a+b); return 0; } P1000 超级玛丽游戏 #include <stdio 阅读全文
posted @ 2020-07-12 21:07 subeiLY 阅读(250) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
🚀
回顶
收起