Code Monkey home page Code Monkey logo

alexcui03.github.io's Introduction

Hi there 👋

Stats

TopLang

Wakatime

alexcui03.github.io's People

Contributors

alexcui03 avatar

Watchers

 avatar

alexcui03.github.io's Issues

本蒟蒻的刷题时的码风~ | Hexo

https://alexcui03.github.io/2019/03/21/coding-style/

本文根据我个人的变化持续更新 写算法题的风格嘛…当然不会想写正经项目这么严谨的啦~ 项目代码规范 铁则: 规范, 标准, 简明, 统一, 严格算法题码风: 去你的规范, 我能看懂就行了 2333, 开个玩笑, 下面是一段示例程序, 没有任何用途, 只是用来说明风格 1234567891011121314151617181920212223242526272829303132333435363738

题解 P5436 【【XR-2】缘分】简单的数论 | Hexo

https://alexcui03.github.io/2019/06/29/luogu-p5436/

是挺有缘分的, 我一开始的想法是枚举然后算最大, 然后发现没这么复杂… 首先在 $n$ 个数当中, 找到乘积最大的, 那必定是 $n\times(n-1)$, 然后我们就想这会不会是某两个数的最小公倍数. 根据最小公倍数的定义, 对于两个正整数 $p,q$, 则 $lcm(p,q)=\frac{p\times q}{gcd(p,q)}$. 要使得这个等式的值最大, 即令 $p\times q$

题解 P1059 【明明的随机数】for-else语句的实现 | Alex Cui的博客

https://alexcui03.github.io/2019/04/03/luogu-p1059/

这题要求去重, 排序, 那么就先暴力 $n^2$ 去重走起. 因为算法没啥好讲的所以本篇讲的是一个语法技巧 这里我为了少用一个flag变量所以使用了一个for循环全部结束后运行的方法(相当于python中的$for…else$语句) 我们知道for循环有三个子表达式, 定义为 $for(expr1;expr2;expr3)$ , 其中 $expr1$ 表示初始化语句, 在进入for循环时调用,

本蒟蒻的刷题时的码风~ | Alex Cui的博客

https://alexcui03.github.io/2019/03/21/coding-style/

本文根据我个人的变化持续更新 写算法题的风格嘛…当然不会想写正经项目这么严谨的啦~ 项目代码规范 铁则: 规范, 标准, 简明, 统一, 严格算法题码风: 去你的规范, 我能看懂就行了 2333, 开个玩笑, 下面是一段示例程序, 没有任何用途, 只是用来说明风格 1234567891011121314151617181920212223242526272829303132333435363738

洛谷题解P1016 - 旅行家的预算 - 妥妥的贪心算法 | Alex Cui的博客

http://blog.alexcui.top/2019/03/13/luogu-p1016/

题目描述一个旅行家想驾驶汽车以最少的费用从一个城市到另一个城市(假设出发时油箱是空的). 给定两个城市之间的距离 $D1$, 汽车油箱的容量 $C$ (以升为单位), 每升汽油能行驶的距离 $D2$, 出发点每升汽油价格 $P$ 和沿途油站数NN(NN可以为零), 油站 $i$ 离出发点的距离 $Di$, 每升汽油价格 $Pi(i=1,2,…,Ni=1,2,…,N)$. 计算结果四舍五入至小数点后

Zilch Editor开发者会议(2019.3) | Alex Cui的博客

http://blog.alexcui.top/2019/03/01/zedm-201903/

前言: 这是只有我的舞台Zilch Editor开发至今, 已经正式3个月了, 感谢大家的支持, 期待和提议. 项目人员如下, 开发, 是我没错, 美工, 还是我, 界面设计, 没错还是我, 策划发布, 抱歉不用猜了全是我, 到现在似乎还没有找到要加入的人呢, 毕竟圈子也不大, 难度也不低呢. 那么, 第一次比较正式的发表会, 就只有我一个人在自言自语了呢, 虽然我不知道为什么我取了一个Zilch

洛谷题解P1008 - 三连击 - 元编程*一波qwq~ | Alex Cui的博客

http://blog.alexcui.top/2019/03/08/luogu-p1008/

题目描述将 $1, 2, \cdots, 9$$9$ 个数分成 $3$ 组, 分别组成 $3$ 个三位数, 且使这 $3$ 个三位数构成 $1:2:3$ 的比例, 试求出所有满足条件的 $3$ 个三位数. 输出每行 $3$ 个数字, 按照每行第 $1$ 个数字升序排列. 超长代码警告!!!粗翻了一下题解, 发现都是正常方法, 没人用元编程写, 那我就写一下元编程的题解.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.