随笔分类 -  其它---模拟

摘要:题目链接:http://118.190.20.162/view.page?gpid=T67 问题描述 有n个小朋友围成一圈玩游戏,小朋友从1至n编号,2号小朋友坐在1号小朋友的顺时针方向,3号小朋友坐在2号小朋友的顺时针方向,……,1号小朋友坐在n号小朋友的顺时针方向。 游戏开始,从1号小朋友开始顺 阅读全文
posted @ 2019-05-01 10:49 wydxry 阅读(663) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://118.190.20.162/view.page?gpid=T72 问题描述 数轴上有一条长度为L(L为偶数)的线段,左端点在原点,右端点在坐标L处。有n个不计体积的小球在线段上,开始时所有的小球都处在偶数坐标上,速度方向向右,速度大小为1单位长度每秒。 当小球到达线段的端点 阅读全文
posted @ 2019-04-30 19:40 wydxry 阅读(421) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://118.190.20.162/view.page?gpid=T73 问题描述 近来,跳一跳这款小游戏风靡全国,受到不少玩家的喜爱。 简化后的跳一跳规则如下:玩家每次从当前方块跳到下一个方块,如果没有跳到下一个方块上则游戏结束。 如果跳到了方块上,但没有跳到方块的中心则获得1分 阅读全文
posted @ 2019-04-30 16:34 wydxry 阅读(404) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://118.190.20.162/view.page?gpid=T46 问题描述 请实现一个铁路购票系统的简单座位分配算法,来处理一节车厢的座位分配。 假设一节车厢有20排、每一排5个座位。为方便起见,我们用1到100来给所有的座位编号,第一排是1到5号,第二排是6到10号,依次 阅读全文
posted @ 2019-04-26 22:21 wydxry 阅读(467) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2015 偶数求和 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submiss 阅读全文
posted @ 2019-04-07 22:36 wydxry 阅读(193) 评论(0) 推荐(0) 编辑
摘要:有一口深度为 highhigh 米的水井,井底有一只青蛙,它每天白天能够沿井壁向上爬 upup 米,夜里则顺井壁向下滑 downdown 米。 若青蛙从某个早晨开始向外爬,当 high = 60405high=60405,up = 105up=105,dow = 35dow=35,计算青蛙多少天能够 阅读全文
posted @ 2019-03-19 16:04 wydxry 阅读(797) 评论(0) 推荐(0) 编辑
摘要:问题描述 L正在出题,新建了一个word文档,想不好取什么名字,身旁一人惊问:“你出的题目叫《新建Microsoft Word文档》吗?”,L大喜,一拍桌子,说:“好,就叫这个名字了。” 仔细观察,当你新建一个word文档时,会得到一个名为“新建 Microsoft Word 文档.doc”的文件, 阅读全文
posted @ 2019-02-27 22:55 wydxry 阅读(323) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2511 1,2,...,n表示n个盘子.数字大盘子就大.n个盘子放在第1根柱子上.大盘不能放在小盘上.在第1根柱子上的盘子是a[1],a[2],...,a[n]. a[1]=n,a[2]=n-1,..., 阅读全文
posted @ 2017-08-07 10:42 wydxry 阅读(343) 评论(0) 推荐(0) 编辑
摘要:Time limit : 2sec / Memory limit : 256MB Score : 200 points Problem Statement Alice, Bob and Charlie are playing Card Game for Three, as below: At fir 阅读全文
posted @ 2017-08-05 11:02 wydxry 阅读(495) 评论(0) 推荐(0) 编辑
摘要:Shaass has decided to hunt some birds. There are n horizontal electricity wires aligned parallel to each other. Wires are numbered 1 to nfrom top to b 阅读全文
posted @ 2017-07-31 16:56 wydxry 阅读(308) 评论(0) 推荐(0) 编辑
摘要:In the city of Ultima Thule job applicants are often offered an IQ test. The test is as follows: the person gets a piece of squared paper with a 4 × 4 阅读全文
posted @ 2017-07-31 16:21 wydxry 阅读(409) 评论(0) 推荐(0) 编辑
摘要:Our good friend Mole is trying to code a big message. He is typing on an unusual keyboard with characters arranged in following way: qwertyuiopasdfghj 阅读全文
posted @ 2017-07-30 16:54 wydxry 阅读(400) 评论(0) 推荐(0) 编辑
摘要:Simon and Antisimon play a game. Initially each player receives one fixed positive integer that doesn't change throughout the game. Simon receives num 阅读全文
posted @ 2017-07-30 15:56 wydxry 阅读(290) 评论(0) 推荐(0) 编辑
摘要:There are n pictures delivered for the new exhibition. The i-th painting has beauty ai. We know that a visitor becomes happy every time he passes from 阅读全文
posted @ 2017-07-27 16:33 wydxry 阅读(341) 评论(0) 推荐(0) 编辑
摘要:一个正整数,如果它能被7整除,或者它的十进制表示法中某个位数上的数字为7,则称其为与7相关的数。求所有小于等于N的与7无关的正整数的平方和。 例如:N = 8,<= 8与7无关的数包括:1 2 3 4 5 6 8,平方和为:155。 一个正整数,如果它能被7整除,或者它的十进制表示法中某个位数上的数 阅读全文
posted @ 2017-07-26 13:59 wydxry 阅读(236) 评论(0) 推荐(0) 编辑

Live2D