题目链接:uva 10548 - Find the Right Changes
题目大意:给定A,B,C,求x,y,使得xA+yB=C,求有多少种解。
解题思路:拓展欧几里得,保证x,y均大于等于0,确定通解中t的取值。
#include
#include
#include
#include
using namespace std;
typedef long long ll...
分类:
其他好文 时间:
2014-07-11 00:03:25
阅读次数:
165
webkit浏览器css设置滚动条主要有下面7个属性::-webkit-scrollbar滚动条整体部分,可以设置宽度啥的::-webkit-scrollbar-button滚动条两端的按钮::-webkit-scrollbar-track外层轨道::-webkit-scrollbar-track-...
分类:
Web程序 时间:
2014-07-03 18:49:57
阅读次数:
267
And what about the cleaning page. When cleaning bags always starts in the middle of the track before cleaning. Taking care of her insides spring, remo...
分类:
其他好文 时间:
2014-07-02 17:48:37
阅读次数:
219
假设我们有许多个版本,版本号分别是1-10如果我们在7这里选择revert to this version那么7之后的8,9,10的操作都会被消除如果在7选择revert changes from this version那么7版本的修改将会被消除如果同时选择7,8revert changes fr...
分类:
其他好文 时间:
2014-07-02 17:06:29
阅读次数:
253
GNU Autotools can not only handle making (compiling and linking), distributing, transplanting source code for different platforms, but can also track ...
分类:
其他好文 时间:
2014-06-30 12:33:53
阅读次数:
400
1.前言紧接着我的上一篇博客进行磁盘管理操作:http://zhangfengzhe.blog.51cto.com/8855103/1430531我们已经对磁盘进行了分区,信息如下:[root@localhost~]#fdisk-l/dev/sdb
Disk/dev/sdb:1073MB,1073741824bytes
255heads,63sectors/track,130cylinders
Units=cylindersof16..
分类:
系统相关 时间:
2014-06-29 21:48:06
阅读次数:
420
一。onConfigurationChanged 与android:configChangesLists configuration changes that the activity will handle itself. When a configuration change occurs at...
分类:
其他好文 时间:
2014-06-28 12:15:22
阅读次数:
207
In MVC, "C"(controller) musthard referecesa variable's name of UI elements from View. Therefore, changes in View will domino "C" code changes.In MVVM,...
分类:
Web程序 时间:
2014-06-28 10:06:39
阅读次数:
194
只能文件属主或特权用户才能使用该功能来改变文件存取模式。mode可以是数字形式或以who opcode permission形式表示。who是可选的,默认是a(所有用户)。只能选择一个opcode(操作码)。可指定多个mode,以逗号分开。
options:
-c,--changes
只输出被改变文件的信息
-f,--silent,--quiet
当chmod不能...
分类:
系统相关 时间:
2014-06-22 22:47:09
阅读次数:
446
在Android的多媒体类中,MediaMuxer和MediaCodec算是比较年轻的,它们是JB 4.1和JB 4.3才引入的。前者用于将音频和视频进行混合生成多媒体文件。缺点是目前只能支持一个audio track和一个video track,而且仅支持mp4输出。不过既然是新生事物,相信之后的版本应该会有大的改进。MediaCodec用于将音视频进行压缩编码,它有个比较牛X的地方是可以对Surface内容进行编码,如KK 4.4中屏幕录像功能就是用它实现的。...
分类:
移动开发 时间:
2014-06-22 21:53:50
阅读次数:
267