码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
hdu2336 (匈牙利最大匹配+二分)
Describe 这是一个简单的游戏,在一个n n的矩阵中,找n个数使得这n个数都在不同的行和列里并且要求这n个数中的最大值和最小值的差值最小。 Input 输入一个整数T表示T组数据。 对于每组数据第一行输入一个正整数n(1 include include include using namesp ...
分类:其他好文   时间:2020-05-14 00:55:02    阅读次数:66
LeetCode 232. 用栈实现队列
```java import java.util.Stack; /** * 232. 用栈实现队列 * https://leetcode-cn.com/problems/implement-queue-using-stacks/ */ public class _232_Implement_Queu... ...
分类:其他好文   时间:2020-05-13 23:34:21    阅读次数:63
P1443 马的遍历
大致题意: 计算出在某个点上的马走到其他点上最少要走几步, 走不到的点标记为 1,走到的点标记为最少的步数, 马走“日”字。 基本思路 嗯…直接bfs一波带走就好了。 从原点走“日”字,到一处若没有被标记则标记上, bfs完的时候若是发现此点没有被标记就标记为 1。 Code: ...
分类:其他好文   时间:2020-05-13 23:22:50    阅读次数:54
C Game
https://ac.nowcoder.com/acm/contest/5634/C 想一想就能发现这是一道质因素分解的模板题; 我们只要求出该数字由多少个质因素组成,然后判断即可; 1 #include<bits/stdc++.h> 2 using namespace std; 3 int mai ...
分类:其他好文   时间:2020-05-13 21:50:19    阅读次数:79
[Python] Read from a File in Python
Using the open function, and the as and with keywords, we'll open up and read from a file. At the end of this lesson, you will be able to loop through ...
分类:编程语言   时间:2020-05-13 20:31:51    阅读次数:61
[HDU2236] 无题
题目 这是一个简单的游戏,在一个$n×n$的矩阵中,找$n$个数使得这$n$个数都在不同的行和列里并且要求这$n$个数中的最大值和最小值的差值最小。 Input 输入一个整数$T$表示$T$组数据。 对于每组数据第一行输入一个正整数$n(1 using namespace std; const in ...
分类:其他好文   时间:2020-05-13 20:12:53    阅读次数:48
二叉树
恢复内容开始 #include<iostream> #include<stack> #include<queue> using namespace std; int maxsize=101; typedef struct BTNode{ int data; int lTag;//lTag=0左孩子; ...
分类:其他好文   时间:2020-05-13 20:08:03    阅读次数:52
底层XMLHTTPREQUEST的一些知识链接
https://developer.mozilla.org/zh-CN/docs/Web/API/FileReaderhttps://developer.mozilla.org/zh-CN/docs/Web/API/Blobhttps://developer.mozilla.org/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest
分类:Web程序   时间:2020-05-13 20:05:21    阅读次数:76
mysql 汉字按拼音字母排序、获取拼音首字母、拼音全拼
一、汉字utf-8 转gbk排序 ORDER BY CONVERT(city_name USING gbk) 二、获取词语拼音首字母 创建函数 CREATE FUNCTION `firstPinyin`(P_NAME VARCHAR(255)) RETURNS varchar(255) CHARSE ...
分类:数据库   时间:2020-05-13 19:57:25    阅读次数:135
关键知识点第3章插入排序法3.2
输入 6 5 2 4 6 1 3 输出 1 2 3 4 5 6 代码 #include<iostream>using namespace std;void insertionsort(int a[],int n) { int i, j, temp; for (int i = 1;i < n;i++) ...
分类:编程语言   时间:2020-05-13 19:50:43    阅读次数:50
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!