码迷,mamicode.com
首页 >  
搜索关键字:arpa    ( 165个结果
codeforces 851D Arpa and a list of numbers
[TOC] codeforces 851D Arpa and a list of numbers [题目传送门][1] 题意 给出$n$个数,有两种操作: 1.将一个数从数列中删除,代价为$x$。 2.将一个数加1,代价为$y$。 询问最少花费多少的代价能够使数列中所有数的$Gcd$不为1。 $(1 ...
分类:其他好文   时间:2018-09-28 22:39:58    阅读次数:218
D. Arpa and a list of numbers Codeforces Round #432 (Div. 2, based on IndiaHacks Final Round 2017)
http://codeforces.com/contest/851/problem/D 分区间操作 ...
分类:其他好文   时间:2018-08-23 00:16:13    阅读次数:208
kenlm的使用
1.训练模型 install_path/bin/lmplz -o 3 -S 80% -T /temp <text >text.arpa -o 表示n_gram 中的n(必选) -S 内存使用(可选) -T 临时文件(可选) -text 待训练语料,必须分词 -text.arpa 输出为arpa格式的 ...
分类:其他好文   时间:2018-08-22 18:20:34    阅读次数:2094
C语言:自己编写的简易ftp客户端,包含(列表,进入目录,上传文件,下载文件,删除文件)功能
//简易ftp客户端#include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #includ ...
分类:编程语言   时间:2018-08-05 21:35:51    阅读次数:612
Linux网络通信
使用TCP协议的socket 1.网络字节序 由于在主机存储为小端序,网络传输为大端序,并且在网络中需要读取IP号和端口号,所以发送端要将小端序转为大端序,接收端将大端序转为小端序 #include <arpa/inet.h>uint32_t htonl(uint32_t hostlong);uin ...
分类:系统相关   时间:2018-08-05 21:35:41    阅读次数:172
ACM 第三天
A - Arpa’s hard exam and Mehrdad’s naive cheat CodeForces - 742A There exists an island called Arpa’s land, some beautiful girls live there, as ugly o ...
分类:其他好文   时间:2018-07-25 18:59:41    阅读次数:159
Codeforces 741D. Arpa’s letter-marked tree and Mehrdad’s Dokhtar-kosh paths
Description 以$1$ 为根 的 $n$ 个节点的树,每条边有一个颜色 $x$,求每一个点的子树内的好的路径的最长长度 一条路径被定义为好的当且仅当把所有经过的边的字母经过排列之后可以变成回文 "题面" Solution 理解了一下 $dsu\,on\,tree$,相比普通的启发式,省去了 ...
分类:其他好文   时间:2018-07-15 11:06:54    阅读次数:191
codeforces 741D Arpa’s letter-marked tree and Mehrdad’s Dokhtar-kosh paths
codeforces 741D Arpa’s letter marked tree and Mehrdad’s Dokhtar kosh paths 题意 题解 代码 c++ include using namespace std; define fi first define se second ...
分类:其他好文   时间:2018-07-04 21:03:08    阅读次数:204
【C(C++)】创蓝253云通讯平台国际短信API接口DEMO
#include<arpa/inet.h>#include<assert.h>#include<errno.h>#include<netinet/in.h>#include<signal.h>#include<stdlib.h>#include<stdio.h>#include<string.h>#in
分类:编程语言   时间:2018-06-29 12:10:22    阅读次数:170
26字节序
网络通信 主机 主机 主机 服务器 主机 服务器 主机 主机--主机 主机 服务器 主机 服务器—主机 网络字节序 -- 使用大字节序 #include <arpa/inet.h> 主机序转网络序 uint32_t htonl(uint32_t hostlong); uint16_t htons(u ...
分类:其他好文   时间:2018-06-23 01:26:13    阅读次数:148
165条   上一页 1 ... 3 4 5 6 7 ... 17 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!