作完一个作业,开始新的学习: 有由今天的时间有限所有学习了以下两个模块,明天继续! 时间模块、random模块 import time 1 #!usr/bin/env python 2 #-*-coding:utf-8-*- 3 # Author calmyan 4 import time ,dat ...
分类:
编程语言 时间:
2017-05-20 01:09:21
阅读次数:
271
1 #include <cstdio> 2 #include <queue> 3 #include <cstring> 4 #define Heap pair<int, int> 5 //第一个int存的是到起点的距离,第二个int存的是点的编号 6 7 using namespace std; 8 ...
分类:
其他好文 时间:
2017-05-19 20:14:51
阅读次数:
143
HDU:5670~5764 A题: 是一个3进制计数; 1 #include <bits/stdc++.h> 2 3 using namespace std; 4 5 int a[100000]; 6 7 int calc(long long n) { 8 int i=0; 9 while(n) { ...
分类:
其他好文 时间:
2017-05-19 18:44:49
阅读次数:
219
1 /* 2 * %W% %E% 3 * 4 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. 5 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to ...
分类:
其他好文 时间:
2017-05-18 18:44:32
阅读次数:
219
CSS:对html标签进行批量渲染的,一般分两步 1、进行查找标签 2、操作标签; 1、查找标签: 2、操作标签: css样式层叠的引入方式: 1、行内引入 ...
分类:
Web程序 时间:
2017-05-17 16:09:07
阅读次数:
260
一、序列化 Python中用于序列化的两个模块 json 用于【字符串】和 【python基本数据类型】 间进行转换 pickle 用于【python特有的类型】 和 【python基本数据类型】间进行转换 Json模块提供了四个功能:dumps、dump、loads、load pickle模块提供 ...
分类:
编程语言 时间:
2017-05-16 23:30:31
阅读次数:
173
html结构: <!DOCTYPE html> 告诉浏览器使用什么样的html或者xhtml来解析html文档 <html></html>是文档的开始标记和结束标记。此元素告诉浏览器其自身是一个 HTML 文档,在它们之间是文档的头部<head>和主体<body>。 <head></head>元素出 ...
分类:
Web程序 时间:
2017-05-16 20:47:22
阅读次数:
271
机器翻译 洛谷链接 题目描述: 小晨的电脑上安装了一个机器翻译软件,他经常用这个软件来翻译英语文章。 这个翻译软件的原理很简单,它只是从头到尾,依次将每个英文单词用对应的中文含义来替换。对于每个英文单词,软件会先在内存中查找这个单词的中文含义,如果内存中有,软件就会用它进行翻译;如果内存中没有,软件 ...
分类:
其他好文 时间:
2017-05-16 16:42:22
阅读次数:
197
805 B. 3-palindrome http://codeforces.com/problemset/problem/805/B /* 题意字符串中不能有长度为三的回文串,且c数量最少 */ #include<iostream> #include<cstdio> #include<cstring ...
分类:
其他好文 时间:
2017-05-14 21:51:56
阅读次数:
238
F. Leha and security system Bankopolis, the city you already know, finally got a new bank opened! Unfortunately, its security system is not yet workin ...
分类:
其他好文 时间:
2017-05-14 14:23:04
阅读次数:
295