码迷,mamicode.com
首页 >  
搜索关键字:oj    ( 4253个结果
bzoj 3489 A simple rmq problem - 线段树
Description 因为是OJ上的题,就简单点好了。给出一个长度为n的序列,给出M个询问:在[l,r]之间找到一个在这个区间里只出现过一次的数,并且要求找的这个数尽可能大。如果找不到这样的数,则直接输出0。我会采取一些措施强制在线。 因为是OJ上的题,就简单点好了。给出一个长度为n的序列,给出M ...
分类:其他好文   时间:2017-12-03 13:05:01    阅读次数:233
【动态规划】ZZNU-OJ- 2054 : 油田
2054 : 油田 (一个神奇的功能:点击上方文字进入相应页面) 时间限制:1 Sec 内存限制:32 MiB提交:49 答案正确:6 提交 状态 讨论区 题目描述 在太平洋的一片海域,发现了大量的油田! 为了方便开采这些能源,人们将这些油田从1到n进行编号, 人们在开采这些油田时,有三种开采方式, ...
分类:其他好文   时间:2017-12-02 21:04:04    阅读次数:277
杭电oj1002,,做完留一下记录(c)
1 #include 2 #include 3 void Print(int a[1001]); 4 int main() 5 { 6 int t,i,j,k; 7 scanf("%d",&t); 8 getchar(); 9 char temp1[1001],temp2[1001]; 10 int... ...
分类:其他好文   时间:2017-12-02 15:05:00    阅读次数:151
Jarvis OJ- [XMAN]level2/3_x64-Writeup——64位简单栈溢出
两道64位栈溢出,思路和之前的32位溢出基本一致,所以放在一起 在这两道中体现的32位和64位的主要区别在于函数参数传递的方式 在32位程序运行中,函数参数直接压入栈中 调用函数时栈的结构为:调用函数地址->函数的返回地址->参数n->参数n-1->···->参数1 在64位程序运行中,参数传递需要 ...
分类:编程语言   时间:2017-12-01 16:41:58    阅读次数:549
DllImport使用
1.Dll引用路径 (1)exe运行程序所在的目录 (2)System32目录 (3)环境变量目录 (4)自定义路径,如:DllImport(@"C:\OJ\Bin\Judge.dll") 2..DllImport用法 [DllImport("User32.dll")] private static ...
分类:其他好文   时间:2017-11-30 13:34:22    阅读次数:199
leetcode — linked-list-cycle
``` / Source : https://oj.leetcode.com/problems/linked list cycle/ Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it ...
分类:其他好文   时间:2017-11-28 01:43:18    阅读次数:160
leetcode — linked-list-cycle-ii
``` / Source : https://oj.leetcode.com/problems/linked list cycle ii/ Given a linked list, return the node where the cycle begins. If there is no cycl ...
分类:其他好文   时间:2017-11-28 01:26:30    阅读次数:145
华南师大 2017 年 ACM 程序设计竞赛新生初赛题解
华南师大 2017 年 ACM 程序设计竞赛新生初赛题解 题解 被你们虐了千百遍的题目和 OJ 也很累的,也想要休息,所以你们别想了,行行好放过它们,我们来看题解吧。。。 A. 诡异的计数法 Description cgy 太喜欢质数了以至于他计数也需要用质数表示!在他看来,2(第一小质数)表示1, ...
分类:其他好文   时间:2017-11-27 21:35:51    阅读次数:145
hd-oj-1001
#include int fun(int); int main(){ int n; while(scanf("%d",&n)!=EOF){ printf("\n%d",fun(n)); } return 0; } int fun(int n){ int sum = 0; for(int i=1;i<... ...
分类:其他好文   时间:2017-11-27 14:16:55    阅读次数:98
Jarvis OJ - [XMAN]level3 - Writeup——rop2libc尝试
这次除了elf程序还附带一个动态链接库 先看一下,很一般的保护 思路分析 在ida中查看,可以确定通过read函数输入buf进行溢出,但是并没有看到合适的目标函数 但是用ida打开附带的链接库,可以看到system函数和“/bin/sh”字符串都存在 于是思路就确定为read函数溢出->system ...
分类:编程语言   时间:2017-11-26 22:54:21    阅读次数:217
4253条   上一页 1 ... 57 58 59 60 61 ... 426 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!