-
一个无向图G=(V,E),顶点集合V={1,2,3,4,5,6,7},边集合{(1,2),(1,3),(2,4),(3,4),(4,5),(...
一个无向图G=(V,E),顶点集合V={1,2,3,4,5,6,7},边集合{(1,2),(1,3),(2,4),(3,4),(4,5),(4,6),(5,7),(6,7)},从顶点1出发进行深度优先遍历,可能得到的顶点序列有哪些? A、1 2 4 6 7 5 3 B、1 3 4 5 6 7 2 C、1 3 4 2 5 7 6 D、1 2 4 3 6 5 7 答案:AC 这道题为何选AC,无向图是什么? 阅读全文 >>
-
suse安装mysql
下载安装包:wget https://cdn.mysql.com//archives/mysql-5.7/mysql-boost-5.7.22.tar.gz 安装依赖包:zypper install ncurses-devel 解压: tar 阅读全文 >>
-
Online-Judge段位说明
1、系统采用ELO Rating System算法,根据计算每次比赛排名进行计算。 2、参与竞赛后的初始Rating为1500,并赋予预备专家称号,经过多轮竞赛后会迅速收敛逼近真实水平。 3、各个段位的Rating范围以及颜色 rating 称号 水平 [3000, inf) International Grandmaster 红 宇宙最强,没有之一 [2600,3000) Grandmaster 火红 世界级码皇,全球TOP 10 [2200,2600) International Master 黄 人码合一,国家级码皇、标兵 [2050,2200) Master 橙 编码能力出色,达到Cleancode水平,零缺陷候选人 [1900, 阅读全文 >>
-
从零开始用python搭建网站(二)
参考:http://www.runoob.com/django/django-first-app.html。 模板应用实例 我们接着上一章节的项目将在 HelloWorld 目录底下创建 templates 目录并建立 hello.html文件,整个目录结构如下: hello.html 文件代码如下: 阅读全文 >>
-
从零开始用python搭建网站(一)
作为一名初级玩家,只会用python实现简单的功能,目前打算使用python搭建一个简单的网站, Python下有许多款不同的 Web 框架。Django是重量级选手中最有代表性的一位。许多成功的网站和APP都基于Django。 Django是一个开放源代码的Web应用框架,由Python写成。 Django遵守BSD版权,初次发布于2005年7月, 并于2008年9月发布了第一个正式版本1.0 。 Django采用了MVC的软件设计模式,即模型M,视图V和控制器C。 阅读全文 >>
-
【OJ源码分享】友好时间实现
大家都看到在话题中,有些时间是“一分钟前”、“昨天”,“一个月前”之类的时间,这样会显得比较友好。 OJ中是这样实现的: public String getFriendlyDate(Date time){ if(time == null) return getText("unknown"); int ct = (int)((System.currentTimeMillis() - time.getTime())/1000); if(ct < 3600) return Math.max(ct / 60,1) +getText("minutes_before"); if(ct >= 3600 && ct < 86400) return ct / 3600 +getText("hours_before"); if(ct >= 86400 && ct < 2592000){ //86400 * 30 int day = ct / 86400 ; if(day>1){ return day ... 阅读全文 >>
-
【C语言】关于i++和++i的又一个话题
#include<stdio.h> main() { int count=0; printf("%d %d %d\n",count++,count++,count++); printf("%d %d %d\n",++count,++count,++count); return 0; } /* 0 0 0 6 5 4 */ 为啥?请看Disassembly: 4: int count=0; 00401028 mov dword ptr [ebp-4],0 5: printf("%d %d %d\n",count++,count++,count++); 0040102F mov eax,dword ptr [ebp-4] 00401032 mov dword ptr [ebp-8],eax 00401035 mov ecx,dword ptr [ebp-8] 00401038 push ecx 00401039 mov... 阅读全文 >>
-
Online Judge内核安全防护——API Hook
Online Judge新增安全防护——API Hook:在Windows,64位系统调试OK。 参见:https://gitee.com/jungle/online-judge/tree/master/judger-kernel/code/product/hook 直接上代码了: /* Online judge 最重要的安全防护技术: API-HOOK */ #include #include #include #include #include #include #pragma comment(lib,"ws2_32") #define BOOL_OK 1 #define BOOL_ERR 1 typedef struct { LPCSTR szCalleeModName; LPCSTR oldFuncName; PROC newFuncAddr; PROC oldFuncAddr; } API_FUNC_ID; int APIHOOK_TRACE(char *szFuncName) { //printf("API Hook:%s.\r\... 阅读全文 >>
-
关于第四届蓝桥杯
OJ可以用了,想发个关于蓝桥杯感想、体会的帖子,写了1个多小时,最后让我重新登陆,点了下用户名就回不去,最后夭折了。唉,写了1个多小时的帖子没发布,郁闷了,悲催啊!!!算了吧,啥也不说了,简单贴下题目解答,求跟帖交流!题目做得很烂,大神们看了勿吐槽 题目标题: 高斯日记 大数学家高斯有个好习惯:无论如何都要记日记。 他的日记有个与众不同的地方,他从不注明年月日,而是用一个整数代替,比如:4210 后来人们知道,那个整数就是日期,它表示那一天是高斯出生后的第几天。这或许也是个好习惯,它时时刻刻提醒着主人:日子又过去一天,还有多少时光可以用于浪费呢? 高斯出生于:1777年4月30日。 在高斯发现的一个重要定理的日记上标注着:5343,因此可算出那天是:1791年12月15日。 高斯获得博士学位的那天日记上标着:8... 阅读全文 >>
-
【OJ新增功能】Judge Log 已经添加到OJ了,大家可以查看用例了,即时了解错误的用例。
点击提交编号ID即可查看,以及直接查看源码 如:http://acm.guetonline.com/view-source/5789 撒花…… 阅读全文 >>
-
【转】蓝桥杯 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 勉强成立,数学上称为“ 阅读全文 >>
-
【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 ... 阅读全文 >>
-
【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... 阅读全文 >>
-
【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") 阅读全文 >>
-
Knuth's Algorithm X (跳舞链)
一个解决精确覆盖、搜索问题的高效算法。可用于数独问题 Donald Knuth's Algorithm X is a recursive, nondeterministic, depth-first, 阅读全文 >>
-
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 ... 阅读全文 >>
-
Online Beta Round #3
第三轮比赛结束,结果不出所料,D、E两题无人Accepted,实在是有点变态了。B题也挺意外这么少人过。 还好A题临时加上,超简单热身题,嘿嘿。 A题是…………………………easy。。如题目一般。。 B题是动态规划,枚举分割点,取最小值即可 C题简单的DFS即可 D题很变态的字符操作 E题其实是需要数学计算加证明的!(先不讲) 阅读全文 >>1369 0Administrator 发布于 12 年前
-
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 阅读全文 >>
-
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 阅读全文 >>
-
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 阅读全文 >>
-
Welcome to new Online Judge
新版的Online Judge,非常纠结的一个月的辛苦工作,欢迎您的到来。 旧版本的OJ只提供数据取回只用,不提供判题服务。 http://acm.guetonline.com/guoj 阅读全文 >>
# |
|
= |
---|---|---|
南柯 | 2023 | |
cxlove | 1970 | |
vainner | 1763 | |
4 | 1000310428赵成帅 | 1718 |
5 | XiaoWen | 1710 |
6 | 1000380213洪伟焕 | 1701 |
7 | weiben | 1684 |
8 | Jungle.Wei | 1678 |
9 | 1100310131曾翔宇 | 1664 |
10 | hongwh | 1653 |
dfs
21
implementation
19
dp
13
string
11
math
11
big number
10
number theory
9
combinatorics
9
happyoj
5
springboot
4
brute force
4
javascript
3
bfs
3
如梦令
3
greedy
3
蓝桥
3
divide and conquer
2
linux
2
Copilot
2
graph
2
probabilities
2
sortings
2
data structures
2
xor
2
python
1
telnetlib
1
cron
1
题解
1
docker
1
https
1