摘要: Day1 T1玩具谜题 题目链接 简单模拟题,注意一下取余啊方向啊什么的就行了。 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 const int M=1e5+10; 5 using namespace std; 6 s 阅读全文
posted @ 2017-11-06 08:12 Child-Single 阅读(425) 评论(0) 推荐(0) 编辑
摘要: Day1 T1转圈游戏 题目链接 很明显每进行n轮就一定会回到原来的位置,所以游戏只相当于进行了10k%n轮,所以会走到(x+10k%n)%n的位置。 写个快速幂也就没了。 1 #include<cstdio> 2 #include<algorithm> 3 int ksm(long long x, 阅读全文
posted @ 2017-11-06 07:48 Child-Single 阅读(1740) 评论(0) 推荐(0) 编辑