-
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, 阅读全文 >>
-
【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新增功能】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... 阅读全文 >>
# |
|
= |
---|---|---|
南柯 | 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