码迷,mamicode.com
首页 >  
搜索关键字:opened    ( 2253个结果
欧几里德算法与扩展欧几里德算法
欧几里得算法就是我们常说的辗转相除法,辗转相除法可以用来求最大公约数,知道最大公约数还可以求最小公倍数。gcd在好像也有库函数__gcd int Gcd(int a, int b) { while(b != 0) { int r = b; b = a % b; a = r; } return a; ...
分类:编程语言   时间:2017-05-13 14:25:12    阅读次数:210
用C语言模仿Python函数
首先得说明一点,C 语言不是函数式编程语言,要想进行完全的函数式编程,还得先写个虚拟机,然后再写个解释器才行(相当于 CPython )。 下面我们提供一个例子,说明 C 语言函数可以“适度地模仿” Python 函数。 我们有如下的 Python 程序: 1 def line_conf(a, b) ...
分类:编程语言   时间:2017-05-13 13:32:45    阅读次数:264
python第二节
目录: 1. 不同的字符集同样的字代表不同的意思,试着用notpd++ 来打开小说的那些乱码,试着能不能解开 字节转换: 二进制:0 1 10 11 100 101 八进制:0 1 2 3 4 5 6 7 10 16进制:0 1 2 3 4 5 6 7 8 9 10 进制总结: 1.硬盘上保存数据: ...
分类:编程语言   时间:2017-05-13 09:59:02    阅读次数:148
Codeforces_799
A.求两个时间比较一下。 #include<bits/stdc++.h> using namespace std; int n,t,k,d; int main() { ios::sync_with_stdio(false); cin >> n >> t >> k >> d; int tt = n/k ...
分类:其他好文   时间:2017-05-13 09:51:06    阅读次数:271
UVA 10129 Play on Words
Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because there is no ot ...
分类:其他好文   时间:2017-05-12 22:16:34    阅读次数:175
fuelgauge
void fg_init(void *queue, void (*bs_fuel_gauge_status)(void)) { fg_init_ready = bs_fuel_gauge_status; nm_setup_soc_report(&nm_low_soc_report, &nm_crit... ...
分类:其他好文   时间:2017-05-12 20:10:41    阅读次数:247
搭建svn
一、安装 # anon-access = read 改为 anon-access = none //在12行 # auth-access = write 改为 auth-access = write //在13行 # password-db = passwd 改为 password-db = /ap ...
分类:其他好文   时间:2017-05-12 18:46:09    阅读次数:172
51nod 1089 最长回文字串
http://blog.csdn.net/h1021456873/article/details/49507197 他写的很好 但是时间复杂度 不是很明白 #include<stdio.h> #include<algorithm> #include<stdlib.h> #include<cstrin ...
分类:其他好文   时间:2017-05-12 15:40:14    阅读次数:150
关于接口的初步练习
这是主函数 这是开启连接的类 还有类和adapter package com.example.com.webtext; /** * Created by 定不负相思懿 on 2017/5/11. */ public class massage { String name; String summar ...
分类:其他好文   时间:2017-05-11 20:25:32    阅读次数:198
bzoj4269
http://www.lydsy.com/JudgeOnline/problem.php?id=4269 裸线性基,一个数取多次就是没取。。。 又有了些新的理解:a数组的前now个元素是基底,也就是可以变成1的位,最大就是所有1都选,次大就是最后一个1不选 #include<bits/stdc++. ...
分类:其他好文   时间:2017-05-10 14:55:12    阅读次数:283
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!