
模拟
绝尘花遗落
一骑红尘妃子笑,无人知是荔枝来
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU6581——Vacation(思维题目)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6581题意在一条道路上有n+1n+1n+1辆车,每辆车有自己距离终点的距离sss,自己的车身长度lll和自己的速度vvv。注意所有的车不能超车,只能按照顺序到达终点。问所有的车到达终点所需要的时间。数据按照从远到近的顺序给出。题解这是一个比较有意思的思维题。考虑最远的一辆车。就是编号为0的车。如果在到达终点的期间没有碰到一号车,那么它就是最后一个到达是车,所需要的的时间就是s0v0\frac{s_0}原创 2020-05-29 14:48:03 · 360 阅读 · 0 评论 -
【Uva10288】——Coupons概率
题意:一共有n种不同的Coupons,每次得到每种Coupons的概率是相同的,问期望多少次得到所有的n种Coupons假设我们已经得到k种Coupons,那么我们得到新的Coupons的概率为n−kn\frac{n-k}{n},所需的期望步数是nn−k\frac{n}{n-k}。求和我们得到总的期望步数nn+nn−1+⋯n1=n×∑i=1n1i\frac{n}{n}+\frac{n}{n-1}+\原创 2016-11-10 00:11:28 · 635 阅读 · 0 评论 -
2016 Multi-University Training Contest 7
HDU【5810】——Balls and BoxesHDU【5813】——Elegant ConstructionHDU【5818】——Joint StacksHDU【5816】——Hearthstone原创 2016-08-10 14:08:26 · 1237 阅读 · 0 评论 -
2016 Multi-University Training Contest 10
HDU【5857】——MedianHDU【5858】——Hard problemHDU【5862】——Counting IntersectionsHDU【5867】——Water problem原创 2016-08-18 20:35:59 · 1372 阅读 · 0 评论 -
Codeforces 366 Div2
A. Hulk time limit per test 1 second memory limit per test 256 megabytesDr. Bruce Banner hates his enemies (like others don’t). As we all know, he can barely talk when he turns into the incredi原创 2016-08-08 08:44:58 · 996 阅读 · 3 评论 -
Codeforces 363 Div2
A. Launch of Collider time limit per test 2 seconds memory limit per test 256 megabytesThere will be a launch of a new, powerful and unusual collider very soon, which located along a straight l原创 2016-07-20 09:31:55 · 1348 阅读 · 0 评论 -
2016 Multi-University Training Contset 2
HDU【5734】-Acperience Time Limit: 4000/2000 MS (Java/Others) Memory Limit:65536/65536 K (Java/Others)Problem DescriptionDeep neural networks (DNN) have shown significant improvements in several appl原创 2016-07-21 21:04:21 · 1386 阅读 · 0 评论 -
第七届ACM山东省赛-K Reversed Words
Time Limit: 2000MS Memory limit: 131072K题目描述Some aliens are learning English. They have a very strange way in writing that they revered every word in the sentence but keep all the words in common order原创 2016-06-10 09:30:13 · 863 阅读 · 0 评论 -
第七届ACM山东省赛-J Execution of Paladin
Time Limit: 2000MS Memory limit: 65536K题目描述Murloc is a powerful race in Hearthstone. In the set League of Explorers, a new Paladin ability card called Anyfin Can Happen is released with the ability to原创 2016-06-10 09:27:54 · 1374 阅读 · 0 评论 -
第七届ACM山东省赛-H Memory Leak
Time Limit: 2000MS Memory limit: 131072K题目描述Memory Leak is a well-known kind of bug in C/C++. When a string is longer than expected, it will visit the memory of next array which will cause the issue an原创 2016-06-10 09:23:13 · 1028 阅读 · 0 评论 -
第七届ACM山东省赛-D Swiss-system tournament
Time Limit: 2000MS Memory limit: 131072K题目描述 A Swiss-system tournament is a tournament which uses a non-elimination format. The first tournament of this type was a chess tournament in Zurich in 1895,原创 2016-06-10 08:30:36 · 1443 阅读 · 0 评论 -
TopCoder SRM 637 Div2 A
题意:两个人玩游戏,每一出的数大的人得一分,现在给你两个出数的顺序,判断第一个人的得分。#include <bits/stdc++.h>using namespace std;class GreaterGameDiv2{ public : int calc(vector <int> snuke, vector <int> sothe) { int sum =原创 2016-06-07 19:38:53 · 396 阅读 · 0 评论 -
Sudoku
Sudoku Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 15952 Accepted: 7791 Special JudgeDescription Sudoku is a very simple task. A square table with 9 rows and 9 column原创 2015-08-12 20:44:54 · 416 阅读 · 0 评论