- 博客(5)
- 问答 (2)
- 收藏
- 关注
原创 五子棋
#include using namespace std;const int maxR=12;const int maxC=12;char s[maxR][maxC];int n,m;const int fx[8][2]={1,0,-1,0,0,1,0,-1,1,1,-1,-1,-1,1,1,-1};bool ncj(int x,int y){ return x>=0&&y
2015-05-12 16:20:22 365
原创 末三位整数
#includeusing namespace std;int A[4][4],ans[4][4],tmp[4][4];int main(){ int n; while(scanf("%d",&n)==1){ A[0][0]=3;A[0][1]=1;A[1][0]=5;A[1][1]=3; ans[0][0]=1;ans[0][1]=0;
2015-05-12 11:05:40 319
原创 回文数
#include using namespace std;const int maxN=1000004;int f[maxN+10];int judge(int x){ char tmp[32]; sprintf(tmp,"%d",x); int len=strlen(tmp); for(int i=0;i<len/2;++i)
2015-05-12 11:02:13 319
原创 3n+1
#include using namespace std;int main(){ int n=1; while(scanf("%d",&n)==1){ int cnt=0; while(n!=1){ ++cnt; if(n%2==0) n/=2;
2015-05-12 11:01:26 343 1
原创 厦门大学线下编程比赛第一题:求和
#include using namespace std;typedef __int64 lld;inline int myMin(int a, int b) { return a < b ? a : b;}inline int myMax(int a, int b) { return a > b ? a : b;}#define MOD 1000000007;int wor
2015-05-12 00:15:20 301
空空如也
poj 2891 的源代码和站内线上解释
2015-05-12
dlx算法问题,求解答,高分啊
2015-05-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人