- 博客(22)
- 资源 (180)
- 收藏
- 关注
原创 B. Fox Dividing Cheese
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputTwo little greedy bears have found two pieces of cheese in the fo
2013-12-27 17:51:12 1501
原创 JAVA过滤html标签
过滤URL网址,邮箱地址,html标签,JS代码,各种转义字符public static final String Upset = " ";public static String killTags(String news) { String s = news.replaceAll("amp;", "").replaceAll("", ">"); Pattern pattern
2013-12-27 17:41:26 2131
原创 A. Lever
time limit per test1>memory limit per test256>inputstandard>outputstandard>You have a description of a lever as string s. We'll represent the string length as record |s|, the
2013-12-25 18:11:05 1551
原创 JAVA命令行参数设定
在服务器上面运行java程序时,常常需要输入参数,为了防止记不住或者位置出错等问题,需要给出相关的提示,好在这个很容易实现。首先下载 common-cli这个jar包,可以从这里下载:http://commons.apache.org/proper/commons-cli/然后把jar包添加到工程中去,在传递参数时添加如下代码: String source_path; Str
2013-12-24 18:49:12 1994
原创 A. Valera and Plates
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera is a lazy student. He has m clean bowls and k clean plat
2013-12-23 17:27:56 1397
原创 对词向量进行Kmeans距离
使用过word2vec的人都知道,使用word2vec训练得到的结果是每个词对应一个向量。虽然word2vec提供了kmeans的聚类方法,但是它是对所有原始的词进行聚类,如果我们只需要对其中一部分词按照向量进行kmeans聚类,那只好自己写方法。参考网上一个开源的JAVA版 word2vec,可以得到JAVA版的kmeans聚类,输入为一个csv文件,每一行为词和其向量,输出为词的类别,词,
2013-12-20 16:51:18 6530 10
原创 B. Permutation
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA permutation p is an ordered group of numbers p1, p2, ...,
2013-12-18 18:20:58 1432
原创 A. Rook, Bishop and King
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Petya is learning to play chess. He has already learned ho
2013-12-18 10:02:33 1394
原创 B. Little Elephant and Sorting
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Little Elephant loves sortings.He has an array a consisti
2013-12-16 18:24:48 1386
原创 A. Collecting Beats is Fun
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputCucumber boy is fan of Kyubeat, a famous music game.Kyubeat h
2013-12-15 09:58:19 1354
原创 A. Two Semiknights Meet
解题说明:此题就需要找到两个K的位置,然后加以判断即可。#include#include int main(){ int i, j, n, flag; char a[9][9]; char k1[2], k2[2]; scanf("%d", &n); while (n--) { getchar(); flag = 0; for (i = 0; i<8; i++)
2013-12-13 21:34:20 1216
原创 A. K-Periodic Array
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThis task will exclusively concentrate only on the arrays where a
2013-12-12 21:36:23 1941
原创 A. Numbers
time limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputLittle Petya likes numbers a lot. He found that number 123 in base
2013-12-10 17:14:52 2025
原创 A. Lefthanders and Righthanders
time limit per test1 secondmemory limit per test256 megabytesinputinput.txtoutputoutput.txtOne fine October day a mathematics teacher Vasily Petrov went to a class an
2013-12-09 21:09:38 1583
原创 通过词找到对应的文章类别
如何对文章进行分类,投递到诸如国内,国际,体育,财经等等这些类别中去。其中一个方法是人工去判断,但是在目前每天产生2万篇新闻的今天,全靠编辑来分类显然不现实,为此我们需要对文章进行自动分类。如何自动分类,按照机器学习里面的说的,我们首先需要一个标记好的集合用来训练,该集合里面的数据都已经划分到了各个类别。目前搜狗提供了这样一份训练样本,其中的数据格式如下:第一列是ID,第二列是词,
2013-12-06 17:27:30 4010 7
原创 通过堆排序从1亿个数中找到最小的100个数
package com.my.util;import java.util.Arrays;import java.util.Date;import java.util.Random;public class Top100 { public static void main(String[] args) { find(); } public static void find(
2013-12-06 16:39:29 4489
原创 C. Another Problem on Strin
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA string is binary, if it consists only of characters "0" and "1
2013-12-06 16:33:32 1349
原创 A. Letter
time limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputA boy Bob likes to draw. Not long ago he bought a rectangular grap
2013-12-04 22:28:53 1697
原创 JAVA下mongo调用
项目中要用到mongo,简单学习了一下,还是挺简单的。首先下载mongoBD JAR包 https://github.com/mongodb/mongo-java-driver/downloads调用接口:import java.util.ArrayList;import com.mongodb.BasicDBObject;import com.mongodb.DB;impor
2013-12-04 15:00:25 1740
原创 B. Coach
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA programming coach has n students to teach. We know that n is
2013-12-03 18:42:26 1848
原创 B. Valera and Contest
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera loves to participate in competitions. Especially in progra
2013-12-02 21:12:26 1407
原创 代码提交管理流程
1. 原代码 2. 修改(加了几个字符) 3. 创建patch右键->team->创建补丁->保存到剪切板 ->桌面新建一个文本 ->将patch复制进去保存 4. 申请review登录reviewboard –>NewReviewboard Requ
2013-12-02 16:07:57 1726
分词工具ANSJ 1.3版本
2014-02-14
JAVA JSON jar包
2013-11-26
hadoop mapreduce eclipse插件
2013-09-23
ANSJ分词工具最新版
2013-09-16
ANSJ分词JAR包
2013-08-27
斯坦福算法分析与设计【part 1】课程讲义
2013-08-14
斯坦福机器学习公开课讲义+个人笔记
2013-06-27
web intelligence and big data
2013-06-03
mtd_tools针对arm-xilinx-linux-gnueabi(Sourcery_CodeBench)
2018-04-14
mtd_tools针对arm-linux-gnueabihf(gcc-linaro-5.2)
2018-04-14
keyboard按键中断驱动
2017-10-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人