National TreasuresTime Limit : 2000/1000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 3Accepted Submission(s) : 1Font:Times New Roman|Verdana|GeorgiaFont Size:←→Problem DescriptionThe great hall of the national museum has been robbed few times recently. Everyone is now
转载 2013-03-16 12:07:00
36阅读
题目大意:大厅每个位置都有一个文物或者一个守卫,文物是安全的前提是:关键位置上必须有一个守卫,或者文物本身的位置上有一个守卫。求保证每个文物是安全的守卫的最少数量。#include #include #include using namespace std; int map[55][55...
转载 2014-03-30 16:05:00
92阅读
2评论
Problem DescriptionThe great hall of the national museum has been robbed few times recently. Everyone is now worried about the security of the treasures on display. To help secure the hall, the museum contracted with a private security company to provide additional guards to stay in the great hall a
hdu
原创 2021-07-29 16:25:42
92阅读
原题链接 考察:二分图匹配 思路: 实际考察最小覆盖点.将文物与它的关键点建边.除此之外我们需要将点分为两个集合.可以发现每个点与它的关键点奇偶性不同.由此将点分为$x+y$为奇和偶两个集合. 注意建边,需要$(x,y)\(为关键点与文物建边,\)(x,y)$与它的关键点建边. ##Code #in ...
转载 2021-07-15 08:52:00
35阅读
 3月7日消息 据国外媒体报道,全球IT业巨头IBM公司在本周完成了对于美国弗吉尼亚州National Interest Security Co. LLC.公司的收购。但是,该公司并没有公布此次交易具体的财务信息。   据悉,National Interest Security Co.是一家总部位于弗吉尼亚州Fairfax的公司,其所涉及的业务领域包括系统工程、信息及媒体挖掘、系统整合
转载 2011-04-29 14:26:32
511阅读
http://www.elijahqi.win/archives/1305 You all know that the Library of Bookland is the largest library in the world. There are dozens of thousands of books in the library.Some long and uninteresti...
原创 2022-08-08 13:38:02
39阅读
mysql采用utf-8编码,而传统的数据库采用unicode,一个汉字要用两个unicode的char,而在mysql中由于使用了utf-8,所以无论汉字还是字母,都是一个长度的char,所以就不用分nvarhcar和varchar了,一律作varchar
原创 2022-02-14 15:20:35
308阅读
National Day Parade Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2323    Ac Problem Description There ar
原创 2023-05-15 01:00:20
64阅读
题意:给定 n 个人,在 n 列,问你移动最少的距离,使得他们形成一个n*n的矩阵。 析:这个题本来是要找中位数的,但是有特殊情况,所以改成暴力了,时间也很短,就是从第一个能够放左角的位置开始找,取最大值,挺简单暴力。 我一个同学竟然读对了题,WA了,然后又重新读题,把题意读错了,就是AC了。。。。
转载 2016-08-06 09:36:00
88阅读
当谈到网络安全和漏洞管理时,"NVD",或者全称"National Vulnerability Database",是一个不可或缺的概念。NVD是一个由
mysql采用utf-8编码,而传统的采用unicode,一个汉字要用两个unicode的char,
原创 2022-02-09 10:04:11
181阅读
#D - National Railway 题意 给定一个$h\times w$的数组,数组中$(i,j)$位置上的值为$a[i][j]$,选定两个任意点$s,t$建立车站,需要的花费为$a[s_i][s_j]+a[t_i][t_j]+c*(\mid s_i-t_i\mid+\mid s_j-t_j ...
转载 2021-07-19 00:41:00
103阅读
2评论
P.S. 妙妙题 Description. 给定一些字符串,你需要给他们确定大小写,使得字符串字典序递增。 Solution. 首先很显然,递增只需要 \(n-1\) 对相邻字符串都满足 \(S_{i-1}<S_{i}\)。 那么我们比较相邻字符串,发现必定有一段两个字符串相同。 我们分类讨论下一位 ...
转载 2021-07-14 20:04:00
25阅读
2评论
题目大意:一个图书馆入口系统,可以识别进入人的id以及离开人的id。现在一段记录‘+’表 开的人是否之前进入的,如果是,说明不用额外记录,否
原创 2021-12-01 14:41:09
68阅读
Appoint description:  FreeJourney  (2011-08-03)System Crawler  (2013-05-30)
原创 2023-03-22 06:00:23
101阅读
A统计2个1中间0的个数#include <cstdio>#include <cstring>using namespace std;const int N = 105;int t, n;char s[N]; int main() { scanf("%d", &t); while (t--) { scanf("%s", s + 1);...
原创 2022-02-03 14:07:52
22阅读
A -National TreasuresTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionThe great hall of th...
转载 2013-10-10 21:26:00
18阅读
[TOC] Contest Info "Practice Link" |Solved|A|B|C|D|E|F|G|H|I|J|K|L|M| |: :|: :|: :|: :|: :|: :|: :|: :|: :|: :|: :|: :|: :|: :| |8/13|O| | |O| | |O|O|
转载 2019-07-08 22:18:00
109阅读
2评论
A统计2个1中间0的个数#include <cstdio>#include <cstring>using namespace std;const int N = 105;int t, n;char s[N]; int main() { scanf("%d", &t); while (t--) { scanf("%s", s + 1);...
原创 2021-08-27 14:16:44
58阅读
有些地区的MVNO(Mobile Virtual Network Operator)和国内各MNO(Mobile Network Operator)签订了协议,使用国内所有MNO的网络不算漫游,所以需要判定如果MVNO的卡注册上国内的plmn,则忽略漫游  上层Ap判定roaming的方法是GsmServiceStateTracker.java
原创 2023-02-16 10:28:46
63阅读
  • 1
  • 2
  • 3
  • 4
  • 5