摘要: D1 T1 转圈游戏 快速幂 1 #include<iostream> 2 #include<cstdio> 3 #include<cmath> 4 using namespace std; 5 int n,m,k,x,ans=1; 6 long long power(long long x,lon 阅读全文
posted @ 2017-10-19 16:06 Trick-t 阅读(814) 评论(0) 推荐(0) 编辑
摘要: D1 T1 生活大爆炸版石头剪刀布 1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 int n,na,nb,ans1,ans2; 5 int a[201],b[201]; 6 inline int qread() 7 阅读全文
posted @ 2017-10-16 16:14 Trick-t 阅读(391) 评论(0) 推荐(0) 编辑
摘要: D1 T1 神奇的幻方 一道大水题 1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 int n; 5 int ans[40][40]; 6 inline int qread() 7 { 8 int x=0,j=1; 9 阅读全文
posted @ 2017-10-13 19:58 Trick-t 阅读(305) 评论(0) 推荐(0) 编辑
摘要: D1 T1 玩具谜题 1 //朝向内的人的向左为加,向右为减;朝向内的人则相反 2 #include<iostream> 3 #include<cstdio> 4 using namespace std; 5 struct node{ 6 int dir; 7 char name[15]; 8 }p 阅读全文
posted @ 2017-10-13 15:54 Trick-t 阅读(330) 评论(0) 推荐(0) 编辑