HDU 4993 Revenge of ex-Euclid(数学题 暴力)...
分类:
其他好文 时间:
2014-09-13 18:46:15
阅读次数:
130
$filename = dirname(__FILE__) . '/oldfilename.jpg';$out_filename = 'newfilename.jpg';if( ! file_exists($filename)){ echo 'Not Found' . $filename; ex.....
分类:
Web程序 时间:
2014-09-13 17:15:35
阅读次数:
281
之前的建议方法是把在xxx.info.plist文件中把icon already includes gloss and bevel effects 设置YES在Xcode5下,反复实现不成功,今天终于找到解决方案,如果使用xcassets设置方法,需要选择iOS icon is pre-render...
分类:
移动开发 时间:
2014-09-13 14:28:55
阅读次数:
223
When I try runningCode::Blocks, I get the following error message:Another program instance is already running. Code::Blocks is currently configured to...
分类:
其他好文 时间:
2014-09-13 10:36:44
阅读次数:
965
在Delphi SysUtils 单元中有 ExtractFileDir 与 ExtractFilePath两个类似的函数, 两个函数有以下的区别: ExtractFilePath 传回值的最後一个字元是反斜杠“/”。ShowMessage(ExtractFileDir(Application.Ex...
分类:
其他好文 时间:
2014-09-13 10:31:34
阅读次数:
126
题目链接:HDU 4993 Revenge of ex-Euclid
题意:两个取石头,分别在N堆里去。只有第一堆取完才能取第二堆,以此类推,最后一个取完的为赢家。
思路:从头开始扫,直到第一个不为1为止,判断现在的主动权在谁手里,谁就是赢家。(这里读者可以自己写几组数据试试。)
AC代码:
#include
#include
int main()
{
int...
分类:
其他好文 时间:
2014-09-13 09:27:04
阅读次数:
204
配置php网站的时候,经常会在页首出现Warning: session_start() [function.session-start]: Cannot send session cache limiter,也不影响页面打开。Warning: session_start() [function.se...
分类:
其他好文 时间:
2014-09-12 16:56:13
阅读次数:
174
org.tigris.subversion.javahl.ClientException: Attemptedto lock an already-locked dir异常解决方法myeclipse用svn提交的时候报错:Attempted to lock an already-locked dir...
分类:
系统相关 时间:
2014-09-12 16:51:43
阅读次数:
485
一般来说在header函数前不能输出html内容,类似的还有setcookie() 和 session 函数,这些函数需要在输出流中增加消息头部信息。如果在header()执行之前有echo等语句,当后面遇到header()时,就会报出 “Warning: Cannot modify header ...
分类:
其他好文 时间:
2014-09-12 16:48:03
阅读次数:
131
Description
The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has a very poor system of public highways. The Flatopian government is aware of this problem and has already con...
分类:
其他好文 时间:
2014-09-12 11:59:33
阅读次数:
206