mec0825.wordpress.com
[poj][2142][The Balance][数论] | ΜΛΓΠ
https://mec0825.wordpress.com/2011/04/07/poj2142the-balance数论
KNOW THE WORLD, KNOW YOURSELF. Larr; Google Code Jam. 四月 7, 2011. 题意 给出正整数 a, b, c 求正整数 x, y 满足. 1ax = by c 或 ax c = by 或 ax by = c. 3在满足 x y 最小的情况下取 ax by 最小. 解题思路 对 a, b 做扩展欧几里德得到可行解 x , y 与最大公约数 d. 易得所有解为 x’ = x k(b / d), y’ = y – k(a / d). 研究函数 x’ y’ = x k(b / d) y – k(a / d). 得 如果 b a, 则函数最小值在 x = -k(b / d) 附近取得。 如果 a b, 则函数最小值在 y = k(b / d) 附近取得。 Ll; ll abss(ll x) {. Ll euclid(ll a, ll b, ll &x, ll &y) {. Euclid(b, a % b, x, y); ll t =. T - (a / b) * y; return. Ll a, b, c; ll res1[ 5. Y / ta; for.
github.com
Answeror (Cosmo Du) · GitHub
https://github.com/Answeror
Zhejiang Hangzhou, China. X61;nsweror+github@gmail.com. Jul 5, 2010. A Python3 fork of pyHook (a python wrapper for global input hooks in Windows), fixed some bugs and compatible with cx-freeze. Python Course in Summer 2013. Some useful cmake files. Robust Parameter-free Coin Detector. 20 contributions in the last year. Summary of pull requests, issues opened, and commits. Learn how we count contributions. Answeror has no activity during this period. You can't perform that action at this time.
mec0825.wordpress.com
Google Code Jam | ΜΛΓΠ
https://mec0825.wordpress.com/2011/05/23/google-code-jam
KNOW THE WORLD, KNOW YOURSELF. 五月 23, 2011. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out. You are commenting using your Twitter account. ( Log Out. You are commenting using your Facebook account. ( Log Out. You are commenting using your Google account. ( Log Out. 通过访问 WordPress.com 创建免费网站或博客.
mec0825.wordpress.com
SRM508 & SRM509 | ΜΛΓΠ
https://mec0825.wordpress.com/2011/06/10/srm508-srm509
KNOW THE WORLD, KNOW YOURSELF. 六月 10, 2011. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out. You are commenting using your Twitter account. ( Log Out. You are commenting using your Facebook account. ( Log Out. You are commenting using your Google account. ( Log Out. 通过访问 WordPress.com 创建免费网站或博客.
owent.net
小记最近踩得两个C++坑 | I'm OWenT
https://www.owent.net/2015/07/小记最近踩得两个c坑.html
小记最近踩得两个C 坑 – I'm OWenT. 获取某个容易的迭代器,迭代器内包含智能指针 std: shared ptr. Std: map int, std: shared ptr T outter map; void func1(int a) { std: map int, std: shared ptr T : const iterator iter = outter map.find(a); if (iter! Outter map.end() { func2(iter- second); } } void func2(const std: shared ptr T and obj ptr) { if (! Obj ptr) { return; } / 从逻辑隔离的角度,按照正常的语义,这里之后obj ptr应该一直有效了吧 / . ,执行了茫茫多操作以后,间接调用了outter map.erase([上一层函数用到的a]) obj ptr- xxx; / 这里崩溃了,因为智能指针常量不再有效 }. 本文短地址: https:/ www.owent.net/Il9XS. Or, you ca...
owent.net
C++11动态模板参数和type_traits | I'm OWenT
https://www.owent.net/2014/01/c11动态模板参数和type_traits.html
C 11动态模板参数和type traits – I'm OWenT. VC(Windows),GCC(Windows,Linux),Clang(Mac,IOS)都已经支持了。 Http:/ www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2242.pdf. Http:/ www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2555.pdf. Template typename. T void print(T. t){ printf(%d,%d,%d n, t.); }. Type declare 类型声明,比如上文例子中的 const T& #8230;. 这套接口可以通过 GET 0 ([TUPLE]). 以上代码摘自GCC 4.8.1,VC下也类似。 Build index tuple sizeof…. Bound args) : type Bound indexes; 没错秘诀就在这里。 本文短地址: https:/ www.owent.net/b3YVH. 2014 年 01 月 27 日.
owent.net
LLVM+Clang+Libcxx+Libcxxabi(3.6)工具链编译(完成自举编译) | I'm OWenT
https://www.owent.net/2015/04/llvmclanglibcxxlibcxxabi(3-6)工具链编译(完成自举编译).html
LLVM Clang Libcxx Libcxxabi 3.6 工具链编译 完成自举编译 – I'm OWenT. LLVM Clang Libcxx Libcxxabi 3.6 工具链编译 完成自举编译. Linux 编译安装 LLVM Clang 3.6. 脚本托管在 https:/ github.com/owent-utils/bash-shell/tree/master/LLVM%26Clang%20Installer/3.6. 相对于上一个版本 Linux 编译安装 LLVM Clang 3.5. 第二次自举编译完成后,不再依赖libstdc ,转而依赖编译出来的libc 和libc abi,但是仍然会依赖libgcc s.so。 这时候可以通过手动cd到编译目录,执行 make & make install 即可. 编译安装 LLVM Clang 3.6. GCC 47 or higher. Libc 3.6.0. Libc abi 3.6.0. Llvm 3.6.0. Clang 3.6.0. Lldb 3.6.0. Install.sh -t lld. 2015 年 04 月 08 日.
go.taocms.org
GITHUB牛人_ 码农导航_IT码农导航网
http://go.taocms.org/category-20.htm