自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除