• 【转】蓝桥杯 2013 全国软件设计大赛 模拟赛 Java 本科B组 解题报告
    From :http://blog.csdn.net/liuqiyao_01/article/details/8757800 好几天前老师说有测试赛,我一直没拿到题,所以一直没做,今天ll老师发到了群里,我就下载下来做了,感觉题目挺难,难度和去年软件大赛决赛c本科一个水准。。想在两个小时之内做完必须有聪哥那样的水平,我差不多一共用了3个半小时才做完,可能是因为我Java学的挺差的。。Java功底雄厚的童鞋,完全可以秒杀我。。 题目在这里:点击打开下载链接 第一题:连续平方数 题目描述: 为了表示方便,我们把5的平方记为:5^2 这样,连续自然数的平方和就记为:1^2 + 2^2 + 3^2 + 4^2 + ... 请看下面的公式: 1^2 + 2^2 + 3^2 + 4^2 + ... + x^2 = y^2 是不是存在整数x,y,使得公式成立呢?显然x=y=1 勉强成立,数学上称为“
    1.9k 0
    ACSolo post at 11 years ago
  • 【GUET-Virtual Judge】——HDOJ Virtual Judge
    运行效果,直接访问站点题库: 源代码: // hdu-spider-sql.cpp : Defines the entry point for the console application. // /* Author:Jungle Wei Create Date:2013-1-18 version: V001R001C00 抓取HDOJ题目信息,写入MySQL数据库,修复bug */ #include "common.h" struct curl_slist *headerlist=NULL; #define DEBUG_OFF 0 #define DEBUG_ON 1 ULONG g_debug_switch = DEBUG_OFF; #define DEBUG (g_debug_switch == DEBUG_ON)?(1):(0) void set_debug_switch(ULONG ds) { g_debug_switch = ds; } //此函数有风险,当参数含%d%23之类的字符串时会RE void MSG_OUPUT_DBG(const ...
    2.3k 1
    ACSolo post at 11 years ago  , Latest Reply (11 years ago): kjyixw>>
  • 【GDOJ-VJUDGE】C/C++抓取OJ题目信息 —— Spider.cpp
    首先使用上一篇文章介绍的libcurl库post请求获取OJ题目HTML源码,在使用pcre库正则表达式匹配,注意pcre需要编译出lib和dll哦。   下面是作者写的抓取HDOJ题目信息的源代码,是不是很简单呢? // Spider.cpp : Defines the entry point for the console application. // /* C/C++抓取OJ题目信息 Author: Jungle Wei Create Date: 2013-01-16 */ #define PCRE_STATIC // 静态库编译选项 #include <io.h> #include "curl\curl.h" #include <iostream> #include <cstdio> #include <string> #include <fstream> #include <stdio.h> #include "pcre.h" using namespace std; #p...
    2.0k 0
    ACSolo post at 11 years ago
  • 【OJ源码分享】gdoj-vjudge 虚拟判题C++实现
    // gdoj-vjudge.cpp : Defines the entry point for the console application. // /*   #include <io.h> #include "curl/curl.h" #include <iostream> #include <cstdio> #include <string> #include <fstream> #include <stdio.h> using namespace std; #pragma comment(lib, "curllib.lib") 
    2.9k 2
    ACSolo post at 11 years ago  , Latest Reply (11 years ago): ACSolo>>
  • Knuth's Algorithm X (跳舞链)
    一个解决精确覆盖、搜索问题的高效算法。可用于数独问题 Donald Knuth's Algorithm X is a recursive, nondeterministic, depth-first, 
    2.5k 0
    ACSolo post at 12 years ago
  • windows 下C++操作Mysql的一些总结
    一、windows 下C++连接Mysql:    首先完全安装Mysql(注意要选择完全安装,又不然将没有include和lib),并把Mysql的include目录和lib\opt引入 ,还有libmySQL.dll。 http://www.blogjava.net/pdw2009/archive/2008/03/09/184869.html   二、在用VC 连接Mysql 5.0 时出现如下错误解决方案 C:/MYSQL/INCLUDE/mysql_com.h(116) : error C2146: syntax error : missing ';' before identifier 'fd' C:/MYSQL/INCLUDE/mysql_com.h(116) : error C2501: 'SOCKET' : missing storage-class or type specifiers C:/MYSQL/INCLUDE/mysql_com.h(116) : error ...
    1.7k 0
    ACSolo post at 12 years ago
  • Online Beta Round #3
    第三轮比赛结束,结果不出所料,D、E两题无人Accepted,实在是有点变态了。B题也挺意外这么少人过。 还好A题临时加上,超简单热身题,嘿嘿。 A题是…………………………easy。。如题目一般。。 B题是动态规划,枚举分割点,取最小值即可 C题简单的DFS即可 D题很变态的字符操作 E题其实是需要数学计算加证明的!(先不讲)
    1.5k 0
    Administrator post at 12 years ago
  • Online Judge使用帮助,升级更新,意见和Bug报告帖
    15.0k 5
    ACSolo post at 12 years ago  , Latest Reply (1 years ago): HappyOJ>>
  • Online Beta Round #3 is coming
    Online Beta Round #3 is coming at 2012-2-29 19:00:00,and during 2 hours .Please pay attention.The allowed programming languages are C/C++, Pascal, Java, C#, Python, Ruby,Lua, PHP, Haskell and Scala.... Do not forget to register for the contest and check your handle on the registrants page. The registration will be closed 30 minutes before the contest end. I'll be very glad to see you on this round . Wish you more green Accepted. http://acm.guetonline.com/gdoj/contests
    1.6k 0
    ACSolo post at 12 years ago
  • Online Beta Round #2 is coming soon
    Online Beta Round #2 is coming at 2012-2-22 19:00:00,and during 3 hours . Please pay attention.I'll be very glad to see you on this round . http://acm.guetonline.com/gdoj/contests
    1.4k 0
    ACSolo post at 12 years ago
  • The Online Round #1
    The Online Round #1 已经结束,题目难度其实并不大,哈哈。希望各位能在此说出自己的方法,哈哈。我就不说了。 第00:16:43分钟acmlgt提交题目,一开始呗判为WA,于是我查看数据,发现数据有个错误,木事。我重判了他,Accepted。,还好发现得早,第一时间就发现了,还请 acmlgt 被无辜罚掉的20分钟所原谅。后来比赛挺顺利。不到一个小时00:53:55就由cxlove率先AK,通杀了。。哎,貌似真的简单了一些了。 出题目不容易啊,最怕数据错误。。。。。 1:cxlove 2:weiben 3:acmlgt
    1.4k 0
    ACSolo post at 12 years ago
  • Welcome to new Online Judge
    新版的Online Judge,非常纠结的一个月的辛苦工作,欢迎您的到来。 旧版本的OJ只提供数据取回只用,不提供判题服务。 http://acm.guetonline.com/guoj
    1.5k 0
    ACSolo post at 12 years ago
1 2 3