摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文