题目链接:http://codeforces.com/contest/796/problem/B
题意:给你n个杯子标号为(1~n),有m个杯子有洞,有k次操作,每次操作交换编号为u和编号为v的杯子,如果这个杯子有洞,骨头就会掉下去,初始骨头在位置1,现在问你k此操作以后骨头在哪里
解析:直接模拟,骨头掉洞里了,就不再更新答案
题目链接:http://codeforces.com/contest/796/problem/B
题意:给你n个杯子标号为(1~n),有m个杯子有洞,有k次操作,每次操作交换编号为u和编号为v的杯子,如果这个杯子有洞,骨头就会掉下去,初始骨头在位置1,现在问你k此操作以后骨头在哪里
解析:直接模拟,骨头掉洞里了,就不再更新答案
题目链接:Find The Bone
http://codeforces.com/group/CT2M
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M