A:交换一个数的两位,问能得到最大和最小的数是多少。 水题: 1 // File Name: a.cpp 2 // Author: darkdream 3 // Created Time: 2015年01月10日 星期六 17时16分44秒 4 5 #include<vector> 6 #include<list> 7 #include<map&g
转载 2015-01-21 17:48:00
66阅读
2评论
Meta Hacker Cup 2024 题解
原创 2024-10-16 17:05:49
116阅读
A:求区间内素因子个数等于n的数有多少个 解题思路:筛法 解题代码: 1 // File Name: a.cpp 2 // Author: darkdream 3 // Created Time: 2015年01月18日 星期日 13时54分20秒 4 5 #include<vector> 6 #include<list> 7 #include<m
转载 2015-01-21 22:16:00
73阅读
2评论
Problem A1: Ready, Go (Part 1)This problem shares some similarities with A2, with key differences in bold.Atari 2600? More like Atari 2600 BCE!The classic board game Go is a two-player game played on
原创 2023-10-25 02:53:59
155阅读
给一个数列,要求分成若干组,要求每组至少2个数,使得所有组中位数的最大值与最小值之差尽量大,求这个值。Problem B1
原创 2023-10-25 10:46:53
84阅读
题目链接:http://www.facebook.com/hackercup/problems.php?pid=475986555798659&round=185564241586420 题目A :给定一个字符串 ,为每个字符串赋值1-26,使字符串的值最大 题目考点:数组排序 解题思路:qsort 解题代码: View Code 1 // File Name: beautiful
转载 2013-01-27 11:05:00
71阅读
2评论
Cottontail Climb (Part 1)暴力枚举Cottontail Climb (Part 2)暴力枚举Problem B: Four in a Burrow记忆化搜索Problem C: Bunny Hopscotch统计todo
原创 2024-10-30 22:59:46
126阅读
原题:https://www.facebook.com/hackercup/problems.php?pid=688426044611322&round=344496159068801 题意:你和一个朋友玩足球游戏,分数从0-0開始,终于你总是赢。而且你主要有两种方式赢,第一种stressFree方式你肯定要进第一个球而且总是比你的朋友分数高,另外一种stressFu
转载 2016-01-01 09:51:00
60阅读
2评论
​题意:给定一颗有根树,在树上下层的节点要给上层节点礼物,根节点的礼物则给慈善会,可是给礼物有个条件就是你不能送你的父节点已经送出的礼物。问满足要求的最少花费。 题解:这个题卡了一段时间,相似于染色问题,能够用树形动态规划求解。由于已知节点个数为N,则我们单个节点的最大花费不会超过log2(N) = 18。 1. 设dp[i][j]是在i节点花费j时以i为根节点的子树所须要
转载 2015-10-15 15:32:00
41阅读
2评论
题意:给定A,B,K(A<=B)三个数,问在[A,B]范围内的数素数因子个数为K的个数。 题解:典型的筛选法求素数。首先建立一个保存素数因子个数的数组factorNum[],以及到n为止含有素数因子个数为k的二维数组sumNum[n][k]。 factorNum能够由筛选法确定。初始化数组为0。 1
转载 2016-03-13 13:57:00
93阅读
2评论
ACM ICPC Team 思路:遍历 难度:Easy#include<stdio.h> int max_topics=0; int result[500]; int main() { int T,N; char ACM_Team[500][500]; scanf("%d%d",&T,&N); for (int i = 0; i &
转载 2023-09-28 00:48:29
29阅读
黑客必杀技演示 [url]http://download.chinaitlab.com/soft/10690.htm[/url] 用NC来实现内网反弹入侵的动画教程 [url]http://download.chinaitlab.com/soft/10974.htm[/url] 入侵漏洞利用 [url]http://download.chinait
转载 精选 2007-12-08 13:12:53
499阅读
  Lesson 01 - Being a HackerLesson 02 - Windows and LinuxLesson 03 - Ports and ProtocolsLesson 04 - Services and ConnectionsLesson 05 - System IdentificationLesson 06 - Malware (Viruses, Trojan
转载 2007-03-08 17:55:36
911阅读
在linux系统中第二次登录对方主机不用再次输密码的妙法      1》首先登录对方主机1.ssh ip《对方主机地址》2.ssh-beygen -t rsa -c '"对方属主@ip《对方ip》"3.cd .ssh/《切换目录》4.ls  查看有的目录  找到id -rsa私有密钥5.  scp id-rsa.pub
原创 2010-07-18 07:47:51
322阅读
# Python Hacker ## Introduction In today's digital world, cybersecurity is of utmost importance. As technology advances, so do the skills of hackers. Python, being a versatile and powerful programmi
原创 2023-08-18 17:21:09
84阅读
前言在YARN中,Resource Manager(RM,资源管理器)负责整个系统的资源管理和调度,在2.4版本以前,它一直是整个YARN集群的单点故障。新的ResourceManager HA通过冗余一个Resource Manager形成一种Active/Standby的架构来避免ResourceManager的单点故障。         &
 The #kernelnewbies irc channel gets visited regularly by people who would like to get a job as a kernel hacker, but are not sure how to get such a job. There are a number of things to keep in mi
翻译 精选 2012-04-20 09:29:45
522阅读
1. Metasploit 扫漏洞2. portmon 查端口通信
q
原创 2023-06-29 10:07:57
0阅读
Cup Problem Description The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you
转载 2016-10-24 23:18:00
145阅读
2评论
简单版本create or replace function hackeval(sqlstr varchar2)return varchar2 as PRAGMA AUTONOMOUS_TRANSACTION;begin execute immediate sqlstr;commit;return sqlstr;end; 控制异常版本create or replace function hacke
sql
原创 2022-01-04 13:53:58
128阅读
  • 1
  • 2
  • 3
  • 4
  • 5