ICode9

精准搜索请尝试: 精确搜索
  • reverse-for-the-holy-grail-3502022-04-27 17:01:12

    reverse-for-the-holy-.... 名字太长不打了 收集信息 给的文件是64位elf文件,无壳 静态分析 打开后代码密密麻麻一堆,看起来是c++写的 大致分析逻辑,name和quest都没啥用,password存入userin中,看起来是个全局变量 要求这两个函数的返回值 >= 0,其他的咱就不管了。 在linux下gdb动态

  • CF1148H Holy Diver2021-10-27 22:02:19

    一、题目 点此看题 二、解法 输入特性要求的做法就应该是移动右端点 \(r\) 然后维护一些东西。 首先考虑怎么维护 \([l,r]\) 的 \(mex\),这个尽量放在简单数据结构上,因为更新它要对应在答案的数据结构上更新。首先观察到 \(mex\) 是关于 \(l\) 不降的,考虑加入某个数字 \(a\),那么影

  • 攻防世界 Reverse高手进阶区 2分题 reverse-for-the-holy-grail-3502020-12-28 17:01:59

    前言 继续ctf的旅程 攻防世界Reverse高手进阶区的2分题 本篇是reverse-for-the-holy-grail-350的writeup 发现攻防世界的题目分数是动态的 就仅以做题时的分数为准了 解题过程 PE查壳 扔进IDA 关键函数 stringMod __int64 __fastcall stringMod(__int64 *a1) { __int64 v

  • HDU-4719--Oh My Holy FFF(线段树优化DP)2020-07-05 13:08:01

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4719 题目大意:有n个人,第$i$个人的身高为$h_i$,现在要把这些人按照原来的顺序分为连续的若干段,要求每组的人数不超过$l$,同时,我们这每组的最后一个人身高为$b_i$,则有$b_i>b_{i-1}(b_0=0)$,现在我们设每种分组方案的价值为$\sum b_{

  • 南京网络预选赛 The Preliminary Contest for ICPC Asia Nanjing 2019 H. Holy Grail 多源最短路2019-09-01 20:08:04

     链接 #include <bits/stdc++.h> #define ll long long using namespace std; const int MAX_N = 305; ll g[MAX_N][MAX_N]; // 算法中的 G 矩阵 int n,m; void init() { for (int i = 0; i < n; ++i) { for (int j = 0; j < n; ++j) { if (i == j) { g[

  • 2019ACM-ICPC南京网络赛Holy Grail (SPFA模板题)2019-09-01 20:01:10

    Holy Grail   限制 1000 ms 256 MB   As the current heir of a wizarding family with a long history,unfortunately, you fifind yourself forced to participate in the cruel Holy Grail War which has a reincarnation of sixty years.However,fortunately,you summoned a

  • H.Holy Grail ( floyd )(The Preliminary Contest for ICPC Asia Nanjing 2019)2019-09-01 19:02:13

    题意: 给出一个有向图,再给出6条原来不存在的路径,让你在这6条路径上添加一个最小的数,使图不存在负环。 思路: 直接6遍 floyd 输出就行了。 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 typedef pair<int,int> PII; 5 #define lson l,mid,rt<<1 6

  • 1148 H. Holy Diver2019-08-26 22:57:17

    1148 H. Holy Diver 题意: 强制在线,初始数组为空.每次询问给出四个整数\(a,l,r,k\),表示在数组末尾添加\(a\),求满足\(l\leq x\leq y\leq r\)以及\(\text{mex}(a_{x},a_{x+1},\cdots,a_y)=k\)的整数对\(x,y\)的个数. \(\text{mex}\)定义可见Mex (mathematics) - Wikipedia. 题解:

  • HDU4719-Oh My Holy FFF(DP线段树优化)2019-07-20 19:56:26

    Oh My Holy FFF Time Limit: 5000/2500 MS (Java/Others)    Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 1368    Accepted Submission(s): 394 Problem Description N soldiers from the famous "*FFF* army" is standing in a line, from le

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有