这个字符图形有11个QAQ我也很无奈啊! 加油吧,刚开始水水就过去了。 #include<iostream> #include<cstring> #include<cstdio> #include<algorithm> #define MAXN using namespace std; int n; ...
分类:
其他好文 时间:
2017-09-15 20:57:56
阅读次数:
407
继续水QAQ! 注意口口QAQ是空格;XXQAQ也是*; #include<iostream> #include<cstring> #include<cstdio> #include<algorithm> #define MAXN using namespace std; int n; int ma ...
分类:
其他好文 时间:
2017-09-15 20:26:23
阅读次数:
244
一、申请你的AppID http://open.weixin.qq.com/ 友情提示:推荐使用eclipse打包软件最后一步的MD5值去申请AppID 二、官网下载libammsdk.jar包 http://open.weixin.qq.com/download/?lang=zh_CN 三、将li ...
分类:
微信 时间:
2017-09-15 19:06:55
阅读次数:
257
【算法】并查集+平衡树+数学 【题解】 经典哈夫曼距离转切比雪夫距离。 哈夫曼距离:S=|x1-x2|+|y1-y2| 即:max(x1-x2+y1-y2,x1-x2-y1+y2,-x1+x2+y1-y2,-x1+x2-y1+y2) 令X1=x1+y1,Y1=x1-y1, 切比雪夫距离:S=max( ...
分类:
其他好文 时间:
2017-09-15 18:55:21
阅读次数:
115
文件基本操作: # -*- coding: utf-8 -*- from idlelib.IOBinding import encoding #简单操作 简单的读写 #获取文件句柄 ''' open() 可以指定打开方式, r:默认是只读的'r' r+:读写的方式打开(写是追加) rb:二进制的方式 ...
分类:
编程语言 时间:
2017-09-15 18:52:14
阅读次数:
144
1 # -*- coding:utf-8 -*- 2 # author:Mr.chan 3 4 """本代码实现的功能: 5 1、启动程序后,显示查看购物车还是购买商品,然后让用户输入工资,再然后打印商品列表; 6 2、允许用户根据商品编号购买商品; 7 3、用户选择商品后,检测余额是否够,够就直接... ...
分类:
其他好文 时间:
2017-09-15 18:43:30
阅读次数:
197
1、创建项目 2、创建models from django.db import models # Create your models here. # 主机表 class Host(models.Model): # 主机名 hostname = models.CharField(max_length ...
分类:
编程语言 时间:
2017-09-15 16:38:12
阅读次数:
254
将一个excel文件每一列的内容分别导出到一个txt文件中,txt文件名为excel的列名。 ...
分类:
编程语言 时间:
2017-09-15 16:36:18
阅读次数:
421
#include <iostream>#include <stdio.h>#include <queue>using namespace std;const int maxn=(int)1e6+10;const int maxm=(int)5e5+10;struct trie{ int nxt[ma ...
分类:
其他好文 时间:
2017-09-15 16:33:07
阅读次数:
168
读取文件的两种方式: 1、使用os的open函数: 2、使用codecs的open函数: 注意:使用第一种方式open打开的文件只能写入str类型,不管字符串是什么编码方式。 ...
分类:
编程语言 时间:
2017-09-15 16:32:23
阅读次数:
192