- 博客(7)
- 收藏
- 关注
原创 一道有趣的编程题
Problem Description (HDU 6630)You are given three positive integers N,x,yN, x, yN,x,y.Please calculate how many permutations of 1~N satisfies the following conditions (We denote the iii-th number of...
2019-08-07 19:35:31
384
原创 2019年南京大学计院开放日 机试(思路+代码)
目录0. 感想1. Find the Smallest NumberSolution1:贪心Solution2:栈2. Line upSolution:动态规划3. The Number of Binary TreeSolution1: 暴力搜索Solution2: 优雅地递归4. 一些想法0. 感想翻翻我的csdn博客就知道,它已经被束之高阁。今天重新启封,一是整理思路和代码,以供参考,学...
2019-08-06 22:27:06
3091
1
原创 Ubuntu 使用中遇到的各类bugs,备忘
conda: Rolling back transaction: done OSError(13, ‘Permission denied’) 一定得记录一下这个找了将近两个小时的bug 的正确处理姿势: (机会在把google的各条搜索结果都变为深蓝色之后,finally……) 在记录一下这个出处,十分奈斯的小哥哥: https://github.com/conda/conda...
2018-03-21 20:10:09
555
原创 Verilog(ModelSim)小收获
写在最前面:做什么事都要冷静,心态平和 Everything will be easy.always@(*) : always@(*)里面的敏感变量为*,意思是说敏感变量由综合器根据always里面的输入变量自动添加,不用自己考虑只能这样赋值:reg[5:0] mark = 6'b100110; 赋初值需要直接在后面写,不能像c语言一样先定义再赋。另外verilog赋值还可以在模块语句里面赋
2017-11-04 22:04:53
1519
转载 俄罗斯方块(C语言)
#include <stdio.h>#include <Windows.h>#include <conio.h>#include <time.h>#define FrameX 4 //窗口左上角的X轴坐标#define FrameY 4 //窗口左上角的Y轴坐标#define Frame_height 20 //窗口的高度#define Frame_width 18 //窗
2017-10-12 09:26:21
1195
2
转载 算法竞赛入门经典(第二版) 习题
习题2-5#include <stdio.h>#include <math.h>#define INF 1000000000int main(){ int a, b, c, kcase = 0; while(scanf("%d%d%d", &a, &b, &c) == 3 && (a || b ||c) && a <= 1e6 && b <= 1e6 && c <= 100 )
2017-09-15 16:05:42
335
原创 Java语法(Eclipse)
JDK:Java development toolsEclipse 快捷键导入包: Shift + Ctrl + o 查找、替换功能: Edit -> Find/Replace -> (Replace All) 异常处理: 选定代码 -> 右击surround with -> try…catch… 注释: Ctrl+/ (添加or消除 // 注释) Ctrl+Shift+/ (添加/*
2017-09-03 17:43:55
617
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人