
模拟
lqybzx
123
展开
-
2015ACM-ICPC 北京赛区 Problem I. Snake Carpet
Description In school of EECS of Peking University, there is a homework for all freshman -- the contest of AI snakes. This contest is ended today. Bacchus has got a very good result, so he decides原创 2016-07-13 13:01:19 · 811 阅读 · 0 评论 -
2017多校训练Contest3: 1011 RXD's date hdu6066
Problem DescriptionAs we all know that RXD is a life winner, therefore he always goes out, dating with his female friends.Nevertheless, it is a pity that his female friends don't like extremely原创 2017-08-16 16:08:51 · 332 阅读 · 0 评论 -
2017多校训练Contest2: 1011 Regular polygon hdu6055
Problem DescriptionOn a two-dimensional plane, give you n integer points. Your task is to figure out how many different regular polygon these points can make. InputThe input file con原创 2017-08-16 15:50:59 · 295 阅读 · 0 评论 -
2017多校训练Contest2: 1001 Captain is coding hdu6045
Problem DescriptionDerek and Alfia are good friends.Derek is Chinese,and Alfia is Austrian.This summer holiday,they both participate in the summer camp of Borussia Dortmund.During the summer原创 2017-08-16 15:42:06 · 323 阅读 · 0 评论 -
hdu 5995 Kblack loves flag
Problem DescriptionKblack loves flags, so he has infinite flags in his pocket.One day, Kblack is given an n∗m chessboard and he decides to plant flags on the chessboard where the position of原创 2017-03-19 21:20:35 · 381 阅读 · 0 评论 -
hdu 5912 Fractionl 2016ACM/CCPC长春赛区现场赛B
Problem DescriptionMr. Frog recently studied how to add two fractions up, and he came up with an evil idea to trouble you by asking you to calculate the result of the formula below:As a tale原创 2016-10-08 19:19:33 · 500 阅读 · 0 评论 -
Codeforces Round Intel Code Challenge Final Round C. Ray Tracing
题目大意:光线从(0,0)点出发斜向上45°角,速度为√2。平面上有若干个点,问每个点第一次被光线穿过的时间,未被穿过输出-1似乎可以用CRT做,但是我写的是大模拟。因为碰撞点只有4(n+m)个,而且每条对角线只可能经过一次。因此我们每次计算出下一次碰撞点和碰撞时间,把时间加入该对角线的信息最后枚举每一个点和经过它的两条对角线,计算答案即可#include#i原创 2016-10-09 12:25:47 · 372 阅读 · 0 评论 -
Codeforces Round Intel Code Challenge Final Round A.Checking the Calendar
题目大意:问你是否存在一个非闰年,使得某个月的开始为第一行所给的星期,下一个月开始为第二行所给的星期直接模拟即可。或者因为每个月天数固定,所以只需要考虑特定的几种情况#include#include#include#include#include#include#include#include#include#includeusing namespa原创 2016-10-09 11:55:13 · 314 阅读 · 0 评论 -
hdu 5881 Tea 2016ACM/ICPC青岛赛区网络赛1004
Problem DescriptionTea is good.Tea is life.Tea is everything.The balance of tea is a journey of pursuing balance of the universe.Alice knows that. Alice wants to teach you the原创 2016-09-18 00:36:27 · 666 阅读 · 0 评论 -
hdu 5869 Different GCD Subarray Query 2016ACM/ICPC大连赛区网络赛1006
Problem DescriptionA mysterious country will hold a football world championships---Abnormal Cup, attracting football teams and fans from all around the world. This country is so mysterious that no原创 2016-09-16 19:19:55 · 637 阅读 · 0 评论 -
2016多校训练Contest10: 1011 Water problem hdu5867
Problem DescriptionIf the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3+3+5+4+4=19 letters used in total.If all the numbers from 1 to n (up to one thousand原创 2016-08-18 23:07:02 · 411 阅读 · 0 评论 -
2017多校训练Contest4: 1011 Time To Get Up hdu6077
Problem DescriptionLittle Q's clock is alarming! It's time to get up now! However, after reading the time on the clock, Little Q lies down and starts sleeping again. Well, he has 5 alarms, and i原创 2017-08-20 17:20:46 · 288 阅读 · 0 评论