- 博客(108)
- 收藏
- 关注
原创 2019杭电多校5 1005. permutation 1 (dfs,暴力)
养成了看群决定有没比赛的习惯因为今天群里没动静以为今天没比赛 导致这场杭电没去做 对不住队友Q^Q permutation 1Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 0 Accepted Su...
2019-08-05 20:14:43
672
原创 HNU2019 Summer Training 5 C.Emergency Evacuation (贪心)
Emergency Evacuation Problem DescriptionThe Japanese government plans to increase the number of inbound...
2019-08-04 18:52:31
709
原创 HNU2019 Summer Training 5 B. Arithmetic Progressions(dp)
Arithmetic Progressions Problem DescriptionAn arithmetic progression is a sequence of numbers a1,a2,...,...
2019-08-04 18:49:23
679
原创 HNU2019 Summer Training 4 E. Fruit Slicer
Fruit Slicer Problem DescriptionJohn, a student who is taking the game development course, recently deve...
2019-08-04 18:39:57
735
原创 2019牛客暑期多校训练营(第五场) maximum clique 1 (Hungary, 二分图最小点覆盖,二分图最大独立集)
链接:https://ac.nowcoder.com/acm/contest/885/F来源:牛客网题目描述You are given a set S containing n distinct positive integers a_1, a_2 … a_nPlease find a subset of S which has the maximum size while satisfy...
2019-08-02 14:49:55
647
原创 2019牛客暑期多校训练营three points 1
链接:https://ac.nowcoder.com/acm/contest/885/I来源:牛客网题目描述You are given five positive integers w, h, a, b, c. Please construct 3 points X, Y, Z in the 2-dimensional plane such that the distance between...
2019-08-01 21:24:20
592
原创 2019 Multi-University Training Contest 4 1010 | HDU 6623 Minimal Power of Prime
Problem DescriptionYou are given a positive integer n > 1. Consider all the different prime divisors of n. Each of them is included in the expansion n into prime factors in some degree. Required t...
2019-07-31 20:29:40
558
原创 ICPC Southeastern European Regional (SEERC 2018) C. Tree
Problem DescriptionYou are given a tree of n vertices, each with a unique number from 1 to n. A vertex has a color, black or white.Choose exactly m black vertices so that the length of the longest p...
2019-07-30 11:33:39
664
原创 2019 Multi-University Training Contest 3. 1006.Find the answer
Find the AnswerProblem DescriptionGiven a sequence of n integers called W and an integer m. For each i (1 <= i <= n), you can choose some elements Wk (1 <= k < i), and change them to zer...
2019-07-30 11:18:30
599
原创 HNU2019 Summer Training 3 B. Broken Watch
Problem DescriptionA UFO crash lands on Earth. The alien captain survives the crash relatively unscathed; however his trusty watch is dam...
2019-07-28 20:38:55
811
原创 HNU2019 Summer Training 4 E.Fishermen
Problem DescriptionThe ocean can be represented as the first quarter of the Cartesian plane. There are n fish in the ocean. Each fish has...
2019-07-28 20:30:19
764
2
原创 HNU2019 Summer Training 3 E. Rounding
Problem DescriptionYou decided to stay an extra day in Paris visiting favorite places of Parisians around Télécom ParisTech. You want to collect information about these favorite places, but asking peo...
2019-07-28 00:45:20
1060
原创 HNU2019 Summer Training 3 E. Blurred Pictures
Problem DescriptionDamon loves to take photos of the places he visits during his travels, to put them into frames. All of his photos are in a square format of N x N pixels. He brought back beautiful...
2019-07-28 00:41:10
1342
原创 2019牛客暑期多校训练营(第三场) F. Planting Trees
Problem DescriptionInput Sample22 01 22 13 11 3 22 3 13 2 1Output Sample42题目大意给定二维数组aij,要在其中选尽可能大的矩形,使得矩形中最大的a和最小的a值的差距不超过mSolution:枚举上下又区间,用单调队列维护左区间,具体见代码AC Code:/* * Copyr...
2019-07-26 22:39:16
565
原创 2019牛客暑期多校训练营(第三场) D. Big Integer
链接:https://ac.nowcoder.com/acm/contest/883/D来源:牛客网Problem DescriptionInput Sample211 8 17 6 2Output Sample42Solution:由于9p不是质数,所以应该用mod p来做题,但是由于3与9不是互质的,故p=3的情况不能把9消掉,需要老老实实的用mod 9p...
2019-07-26 22:33:42
590
原创 2019 Multi-University Training Contest 2 Keen On Everything But Triangle【偏爱长代码2.0】
Keen On Everything But Triangle HDU - 6601Problem DescriptionN sticks are arranged in a row, and their lengths are a1,a2,…,aN.There are Q querys. For i-th of them, you can only use sticks between l...
2019-07-26 12:29:11
634
原创 2019牛客暑期多校训练营(第三场) J. LRU management【偏爱写长代码的倔强的我】
时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 524288K,其他语言1048576K 64bit IO Format: %lld题目描述ZYB has finished his computer course recently. He is very interested in the LRU algorithm for cache management...
2019-07-25 21:15:47
576
原创 2019 Multi-University Training Contest 2. Everything Is Generated In Equal Probability
Everything Is Generated In Equal ProbabilityProblem DescriptionOne day, Y_UME got an integer N and an interesting program which is shown below:Y_UME wants to play with this program. Firstly, he ra...
2019-07-24 22:56:58
604
原创 2019 Multi-University Training Contest 1 D. Vacation
Problem DescriptionTom and Jerry are going on a vacation. They are now driving on a one-way road and several cars are in front of them. To be more specific, there are n cars in front of them. The ith...
2019-07-23 12:49:46
593
原创 2019 Multi-University Training Contest 1 E. Path
PathTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 598 Accepted Submission(s): 147 Problem Descri...
2019-07-22 20:55:53
718
原创 HNU2019暑期训练赛之1. Jumbled String
Jumbled String Problem DescriptionRecall that a subsequence of a string is any string obtained by removi...
2019-07-22 00:18:09
640
原创 HNU2019暑期训练赛之1. KHouse Lawn
Problem DescriptionYou have just bought a new house, and it has a huge, beau- tiful lawn. A lawn that needs cutting. Several times. Every...
2019-07-22 00:15:07
632
原创 HNU2019暑期训练赛之2 K. Kleptography
Problem DescriptionJohn likes simple ciphers. He had been using the “Caesar” cipher to encrypt his diary until recently, when he learned ...
2019-07-22 00:09:21
1361
原创 HNU2019暑期训练赛之2 B. Brexit Negotiations
Problem DescriptionAs we all know, Brexit negotiations are on their way—but we still do not know whether they will actually finish in time.The negotiations will take place topic-by-topic. To organise...
2019-07-22 00:02:38
1164
原创 2019牛客暑期多校训练营(第一场) C. Euclidean Distance
终于AC了。。。先睡觉。。。。。。/* * Copyright (c) 2019 Ng Kimbing, HNU, All rights reserved. May not be used, modified, or copied without permission. * @Author: Ng Kimbing, HNU. * @LastModified:2019-07-19 T 22:...
2019-07-20 00:48:10
664
原创 2019牛客暑期多校训练营(第一场)E. ABBA
链接:https://ac.nowcoder.com/acm/contest/881/E来源:牛客网题目描述Bobo has a string of length 2(n + m) which consists of characters A and B. The string also has a fascinating property: it can be decomposed int...
2019-07-19 21:56:01
574
原创 org.openqa.selenium.UnableToSetCookieException: unable to set cookie
1.当尝试添加cookies时抛出selenium unable to set cookie错误,大多情况是在一个webDriver空域(没有访问任意一个页面)中添加cookies,我们要做的就是在赋值cookies之前保证webDriver不是一个空域,比如,让它访问一下需要共享页面的主页作者:zoQ来源:CSDN原文:https://blog.csdn.net/bpz31456/...
2019-07-19 18:04:32
3272
4
原创 2019牛客暑期多校训练营(第一场)F. Random Point in Triangle
链接:https://ac.nowcoder.com/acm/contest/881/F来源:牛客网Solution。。。。。。。。/* * Copyright (c) 2019 Ng Kimbing, HNU, All rights reserved. May not be used, modified, or copied without permission. * @Aut...
2019-07-18 20:45:59
522
原创 2019牛客暑期多校训练营(第一场)B.integration
链接:https://ac.nowcoder.com/acm/contest/881/B来源:牛客网题目描述Given n distinct positive integers [a1, a2, a3 … an], find the value of∫0∞1∏i=1n(ai2+x2)dx\int_0^\infty {\frac{1}{{\prod\nolimits_{i = 1}^n {...
2019-07-18 20:14:35
707
2
转载 网络协议小结
博客出处:http://www.cnblogs.com/maybe2030/ 阅读目录1. 网络层次划分2. OSI七层网络模型3. IP地址4. 子网掩码及网络划分5. ARP/RARP协议6. 路由选择协议7. TCP/IP协议8. UDP协议 9. DNS协议10. NAT协议11. DHCP协议12. HTTP协议13. 一个举例 计...
2019-07-09 13:48:56
508
转载 DHCP和NAT对比
Reprinted from: http://network.51cto.com/art/201009/223440.htm在网络协议中,DHCP和NAT的使用非常普遍。那么对于这两个协议你是否有所掌握呢?这里我们针对这两方面来进行一下具体的介绍。首先让我们看看什么是DHCP,什么是NAT,之后再来将两者进行一下对比。1. DHCPDHCP 是 Dynamic Host Configura...
2019-07-08 23:30:33
2384
原创 Wireshark Lab: TCP v7.0
Wireshark Lab: TCP v7.0Answer the following questions, by opening the Wireshark captured packet file tcpethereal-trace-1 in http://gaia.cs.umass.edu/wireshark-labs/wireshark-traces.zip (that isdown...
2019-07-08 15:44:05
11740
1
原创 2019牛客假日团队赛3 题解
题号标题已通过代码题解/讨论通过率团队的状态A奶牛披萨点击查看进入讨论42/71 通过BNew Cow IDs点击查看进入讨论240/293 通过C柠檬汽水点击查看进入讨论209/320 通过DRoadblocks点击查看进入讨论119/319 通过ECorn Fields点击查看进入讨论54/116 通过FCity Horizon点击查看进入讨论45/101 通过GCow Picnic点击查看...
2019-06-25 16:41:13
565
原创 2019牛客假日团队赛3 - Times 17(大数)
链接:https://ac.nowcoder.com/acm/contest/945/J来源:牛客网题目描述After realizing that there is much money to be made in software development, Farmer John has launched a small side business writing short progr...
2019-06-25 16:33:06
649
原创 牛客假日团队赛3 - Seating (线段树)
链接:https://ac.nowcoder.com/acm/contest/945/I来源:牛客网题目描述To earn some extra money, the cows have opened a restaurant in their barn specializing in milkshakes. The restaurant has N seats (1 <= N <...
2019-06-25 16:28:20
549
原创 2019牛客假日团队赛3 - 奶牛码
链接:https://ac.nowcoder.com/acm/contest/945/H来源:牛客网题目描述留意着农场之外的长期职业生涯的可能性,奶牛Bessie开始在不同的在线编程网站上学习算法。她到目前为止最喜欢的算法是“冒泡排序”。这是Bessie的对长度为N的数组A进行排序的奶牛码实现。sorted = falsewhile (not sorted): sorted = ...
2019-06-25 16:00:52
727
原创 牛客假日团队赛3 -Cow picnic(DFS)
链接:https://ac.nowcoder.com/acm/contest/945/G来源:牛客网题目描述The cows are having a picnic! Each of Farmer John’s K (1 ≤ K ≤ 100) cows is grazing in one of N (1 ≤ N ≤ 1,000) pastures, conveniently numbered...
2019-06-25 15:36:39
518
原创 2019牛客假日团队赛3 - City Horizon 【线段树+扫描线+数据离散化】矩形覆盖面积
链接:https://ac.nowcoder.com/acm/contest/945/F来源:牛客网题目描述Farmer John has taken his cows on a trip to the city! As the sun sets, the cows gaze at the city horizon and observe the beautiful silhouettes ...
2019-06-25 15:17:30
462
原创 牛客假日团队赛3 - CornFields (状压DP)
链接:https://ac.nowcoder.com/acm/contest/945/E来源:牛客网题目描述Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yumm...
2019-06-25 11:10:31
544
原创 2019牛客假日团队赛3 - Roadblocks
链接:https://ac.nowcoder.com/acm/contest/945/D来源:牛客网DescriptionBessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old ho...
2019-06-25 10:45:06
500
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅