- 博客(4)
- 收藏
- 关注
原创 LeetCode 每日一题·4月
Leetcode 每日一题·4月1006 笨阶乘原题链接模拟法,四个一组,末尾部分特殊处理。class Solution {public: int clumsy(int N) { if(N <= 2) return N; if(N == 3) return 6; int sum = N * (N-1) / (N-2) + N-3; N-=4; while(N >= 4) {
2021-05-19 23:39:08 194
原创 HDUOJ 1072
HDUOJ 1072 Nightmare题意解析解决方案参考代码题目来源题意解析Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should get out of the labyrinth before the bomb explodes. The initial exploding ti
2020-07-09 11:59:10 195
原创 HDUOJ 1022
HDUOJ 1022 Train Problem I题意简析要点分析参考代码题目来源题意简析原题As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is the fastest all over the
2020-07-02 23:02:13 167
原创 HDUOJ 1002
HDUOJ 1002 A+B problem Ⅱ去博客设置页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的 代码片.// An highlighted blockvar foo = 'bar';
2020-07-02 00:19:38 179
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人