码迷,mamicode.com
首页 > 2017年10月04日 > 全部分享
[高精度乘法]BZOJ 1754 [Usaco2005 qua]Bull Math
模板题目,练练手~ ...
分类:其他好文   时间:2017-10-04 14:06:50    阅读次数:173
关于vue构建项目的一些指令
第一步: brew install nodejs(MAC机子下) Windows直接官网下载对应版本node.js 第二步: 获取nodejs模块安装目录访问权限(Windows系统忽略)sudo chmod -R 777 /usr/local/lib/node_modules/ 第三步: npm ...
分类:其他好文   时间:2017-10-04 12:46:59    阅读次数:154
虚拟机下安装centeros7.0
安装VMware 解决:联想台式机使用vmware虚拟机安装操作系统出现错误提示“二进制转换与此平台上的长模式不兼容”错误提示的解决办法 进入boss选择”Intel Virtual Technology“设置为“”打开” 2:http://www.jb51.net/article/97892.ht ...
分类:其他好文   时间:2017-10-04 12:45:15    阅读次数:162
Python3 生成器实现单线程并发
1 # Author = Johnston 2 import time 3 def consumer(name): 4 print("%s准备吃包子了。。。" %name) 5 while True: 6 baozi = yield 7 print("%s吃了%s个包子" %(name,baozi) ...
分类:编程语言   时间:2017-10-04 12:45:07    阅读次数:213
python小爬虫练手
一个人无聊,写了个小爬虫爬取不可描述图片.... 代码太短,就暂时先往这里贴一下做备份吧。 #! /usr/bin/python import chardet import urllib3 import uuid import os import logging import time import... ...
分类:编程语言   时间:2017-10-04 12:45:00    阅读次数:246
BZOJ2298: [HAOI2011]problem a
Description 一次考试共有n个人参加,第i个人说:“有ai个人分数比我高,bi个人分数比我低。”问最少有几个人没有说真话(可能有相同的分数) Input 第一行一个整数n,接下来n行每行两个整数,第i+1行的两个整数分别代表ai、bi Output 一个整数,表示最少有几个人说谎 Samp ...
分类:其他好文   时间:2017-10-04 12:42:56    阅读次数:166
错误处理~跳转页面
我们经常遇到很多网站在出错时不报黄屏,而是跳转到了一个错误页面,那么这个效果如何实现的呢?请看下面→_→ 第一种实现: 1.首先在Global里面将FilterConfig转到定义将filters.Add(new HandleErrorAttribute());这段代码注释掉 2.在WebConfi ...
分类:其他好文   时间:2017-10-04 12:41:12    阅读次数:626
LeetCode Employee Importance
原题链接在这里:https://leetcode.com/problems/employee-importance/description/ 题目: You are given a data structure of employee information, which includes the ...
分类:其他好文   时间:2017-10-04 12:38:39    阅读次数:230
Java8_Chapter03
1 import static java.util.Comparator.comparing; 2 3 import java.util.Arrays; 4 import java.util.List; 5 import java.util.function.DoubleFunction; 6 im... ...
分类:编程语言   时间:2017-10-04 12:38:10    阅读次数:234
LeetCode #1 - Two Sum
题目链接:https://leetcode.com/problems/two-sum/description/ LeetCode第一号题目,难度是easy,通过率却只有35%。 看完题目描述感觉确实简单: 给你一个整数数组nums,以及一个整数target,要求从nums中找到两个和为target的 ...
分类:其他好文   时间:2017-10-04 12:36:52    阅读次数:131
bzoj 1570: [JSOI2008]Blue Mary的旅行
Description 在一段时间之后,网络公司终于有了一定的知名度,也开始收到一些订单,其中最大的一宗来自B市。Blue Mary决定亲自去签下这份订单。为了节省旅行经费,他的某个金融顾问建议只购买U航空公司的机票。U航空公司的所有航班每天都只有一班,并且都是上午出发当天下午到达的,所以他们每人每 ...
分类:Web程序   时间:2017-10-04 12:35:22    阅读次数:196
10.3 考试 (考得不好)
T1 我只能说 它是一个比较暴力的dp,需要人力讨论... 所以考试觉得讨论太麻烦,直接内心崩溃了....(好像这也是我考炸的原因吧) 教训:以后要勤快一些,代码能力 唉唉唉 #include <cstdio> #include <cstring> #include <cstdlib> #inclu ...
分类:其他好文   时间:2017-10-04 12:35:10    阅读次数:163
dorker 安装
So I ran it again and I get this message. enter image description here so, When I tried "$docker-machine ls" command, the following message was printe ...
分类:其他好文   时间:2017-10-04 12:35:01    阅读次数:297
Java中String、StringBuilder、StringBuffer常用源码分析及比较(二):StringBuilder、StringBuffer源码分析
StringBuilder: 一、构造方法: 从代码可知,StringBuilder的不管哪个构造方法,都用到了父类AbstractStringBuilder的构造方法,那么来看一下它的父类AbstractStringBuilder。 成员变量+构造方法: 从该父类就可以看出,StringBuild ...
分类:编程语言   时间:2017-10-04 12:34:31    阅读次数:222
129. Sum Root to Leaf Numbers
class Solution { public int sumNumbers(TreeNode root) { return sumNumber("", root); } private int sumNumber(String str, TreeNode node){ if(node==null)... ...
分类:其他好文   时间:2017-10-04 12:32:17    阅读次数:121
128. Longest Consecutive Sequence
class Solution { public int longestConsecutive(int[] nums) { Set set=new HashSet(); for(int num:nums) set.add(num); int res=0; for(int num:set) ... ...
分类:其他好文   时间:2017-10-04 12:31:53    阅读次数:139
my college goal
1.GPA 3.8↑(not demand too high because i want to have more time to study Professional knowledge rather than something maybe useless in the future) 2.p ...
分类:其他好文   时间:2017-10-04 12:25:11    阅读次数:142
814条   上一页 1 ... 37 38 39 40 41 42 43 ... 48 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!