Simulation
Irish_Moonshine
沐月
展开
-
PAT (Advanced Level) 1088 Rational Arithmetic (20分) 【模拟】
PAT (Advanced Level) 1088 Rational Arithmetic (20分) 题意:对两个分数进行加减乘除的操作分析:一定一定要采用函数化编程,不然会死人的!将分数规格化、分数运算、输出部分进行分块。将负号提出来,统一当做非负数处理。WA点:1/-6 需要转换成 -1/6在进行乘除运算和最后输出的时候,最好将负号提出来,对之后的非负数进行操作除零初始运算的时候,最好不要直接转换成假分数,以防增加编码复杂度。乘法的分母不要搞成最小公倍数一些测试点:0/5 0原创 2020-08-31 15:52:46 · 166 阅读 · 0 评论 -
PAT (Advanced Level) 1008 Elevator (20 分) 【Python/C++】【模拟】
PAT (Advanced Level) 1008 Elevator (20 分) 注意:连续两个人都处于同一层,仍需要停留5秒。Python:import sysstr_in = input()a = [int(n) for n in str_in.split()]#print(a)n = int(a[0])res = int(0)ans = int(0)for i in r...原创 2019-06-22 20:18:36 · 242 阅读 · 0 评论 -
2018 Multi-University Training Contest 7 1011 Swordsman【贪心+输入挂】
http://acm.hdu.edu.cn/contests/contest_showproblem.php?cid=808&pid=1011题意:一开始你有k种魔法能力,每种能力是vi。每个怪物有k种防御力,如果你的每一种能力都大于其相应的ai,就可以干掉他,并且所有的能力都可以获得一个提升bi。注意:题目要求使用输入挂分析: 对于怪物按照每一个能力排一个序,然后维护当前每...原创 2018-08-13 18:18:50 · 397 阅读 · 0 评论 -
2018 Multi-University Training Contest 1 1011 Time Zone 【模拟】
Time Zone Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5204 Accepted Submission(s): 878Problem DescriptionChiaki often participates...原创 2018-07-24 19:29:57 · 269 阅读 · 0 评论 -
2018 Multi-University Training Contest 1 1004 Distinct Values【模拟】
Distinct Values Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3336 Accepted Submission(s): 523Problem DescriptionChiaki has an array...原创 2018-07-24 19:28:02 · 156 阅读 · 0 评论 -
ZOJ 4034 Mahjong Sorting【模拟】
DreamGrid has just found a set of Mahjong with suited tiles and a White Dragon tile in his pocket. Each suited tile has a suit (Character, Bamboo or Dot) and a rank (ranging from 1 to ), and there is...原创 2018-04-30 14:20:37 · 749 阅读 · 0 评论 -
CF 38 B Chess【枚举】
Two chess pieces, a rook and a knight, stand on a standard chessboard 8 × 8 in size. The positions in which they are situated are known. It is guaranteed that none of them beats the other one.Your t...原创 2018-04-03 22:05:46 · 181 阅读 · 0 评论 -
第13届景驰-埃森哲杯广东工业大学ACM程序设计大赛 K 密码【模拟】
链接:https://www.nowcoder.com/acm/contest/90/K 来源:牛客网时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 ZiZi登录各种账号的时候,总是会忘记密码,所以他把密码都记录在一个记事本上。其中第一个密码就是牛客网的密码。 牛客网专注...原创 2018-04-03 21:58:49 · 220 阅读 · 0 评论 -
I: 比赛安排【DFS】
问题 I: 比赛安排 时间限制: 1 Sec 内存限制: 125 MB 提交: 12 解决: 11 [提交][状态][讨论版][命题人:外部导入] 题目描述 设有2n(n<=6)个球队进行单循环比赛,计划在2 n – 1天内完成,每个队每天进行一场比赛。设计一个比赛的安排,使在2n – 1天内每个队都与不同的对手比赛。例如n=2时的比赛安排:队 1 ...原创 2018-03-17 23:45:45 · 622 阅读 · 0 评论 -
2012_p2 寻宝【模拟】
问题 E: 2012_p2 寻宝 (treasure.cpp/c/pas) 时间限制: 1 Sec 内存限制: 128 MB 提交: 23 解决: 9 [提交][状态][讨论版][命题人:外部导入] 题目描述2.寻宝(treasure.cpp/c/pas)【问题描述】传说很遥远的藏宝楼顶层藏着诱人的宝藏。小明历尽千辛万苦终于找到传说中的这个藏宝楼,藏宝楼的门口竖着一...原创 2018-03-17 23:22:11 · 770 阅读 · 0 评论