摘要: 1003 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6857 Problem Description It is preferrable to read the pdf statment.After some basic geometric les 阅读全文
posted @ 2020-08-13 20:24 麦客_zeng 阅读(289) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6852 Problem Description Notice:Don't output extra spaces at the end of one line.Given n,x,y, please co 阅读全文
posted @ 2020-08-11 20:57 麦客_zeng 阅读(276) 评论(0) 推荐(0)
摘要: 1001 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6827 题意:给定n个数,求第i个数到第j个数的平均值的期望(ij为1到n的随机数且i<=j) 1 #include<bits/stdc++.h> 2 using namespace std; 阅读全文
posted @ 2020-08-06 19:57 麦客_zeng 阅读(229) 评论(0) 推荐(0)
摘要: 1002 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6803 这题是我队友写的,无法给出详细解释。 官方给出的题解:观察题目性质,由于两人的初始血量都为 100,所以对于每种武器i,都能算出击杀对方的时间,具体来说100/ai(向上取整) 就是霯要 阅读全文
posted @ 2020-07-30 19:53 麦客_zeng 阅读(271) 评论(0) 推荐(0)
摘要: 1001 思路:算出每次亏损的前,要向上取整 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int main() 5 { 6 int t, n,m,p; 7 scanf("%d",&t); 8 while(t--) 9 { 10 scanf 阅读全文
posted @ 2020-07-25 19:33 麦客_zeng 阅读(406) 评论(0) 推荐(0)
摘要: 由于本人水平不够,这场多校只写了第1题和第10题 第1题 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6763 Problem A. Total Eclipse There are n cities and m bidirectional roads 阅读全文
posted @ 2020-07-24 19:59 麦客_zeng 阅读(180) 评论(0) 推荐(0)
摘要: 描述 For the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides to organize a game of Ul 阅读全文
posted @ 2020-07-16 18:32 麦客_zeng 阅读(163) 评论(0) 推荐(0)
摘要: 原题链接:http://www.tzcoder.cn/acmhome/problemdetail.do?method=showdetail&id=2380 描述 The gopher family, having averted the canine threat, must face a new 阅读全文
posted @ 2020-07-13 16:11 麦客_zeng 阅读(144) 评论(0) 推荐(0)
摘要: 原题链接:http://www.tzcoder.cn/acmhome/problemdetail.do?method=showdetail&id=1769 描述 We will use the following (standard) definitions from graph theory. L 阅读全文
posted @ 2020-07-12 16:50 麦客_zeng 阅读(153) 评论(0) 推荐(0)
摘要: 原题链接:http://www.tzcoder.cn/acmhome/problemdetail.do?method=showdetail&id=2999 描述 A Telephone Line Company (TLC) is establishing a new telephone cable 阅读全文
posted @ 2020-07-12 16:43 麦客_zeng 阅读(131) 评论(0) 推荐(0)