- 博客(7)
- 问答 (1)
- 收藏
- 关注
原创 hdu 2616
时隔1年再来写这道题,居然还是没写出来,看了自己以前的代码和discuss才明白,就是不能再次经过Y和M的点。 #include #include #include using namespace std; int n,m; char a[300][300]; int cot[300][300]; bool vis[300][300]; struct point { int x; int
2015-04-29 21:02:36 376
原创 poj 1321
又要进入专题训练了 加油,zhoutonglx #include using namespace std; int n,k; char a[20][20]; bool vis1[20]; bool vis2[20]; int sum; void dfs(int x,int cot)//从上往下逐行搜索,不会重复 { if(cot==k) { sum++; return; }
2015-04-29 19:24:25 281
原创 啊啊啊,我的第一个java swing程序
我嚯,我的第一个java图形界面小程序,纪念一下 import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Work extends JFrame implements ActionListener { JLabel label1,label2,label3; JTextField
2015-04-21 20:34:46 490
原创 zoj 3710
水题纪念 虽然水,但是错得多啊 #include #include using namespace std; int a[230][230]; int main() { int t; cin>>t; int x,y; while(t--) { int n,m,h; cin>>n>>m>>h; i
2015-04-16 14:39:04 524
原创 区间dp
http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=27980 #include using namespace std; int dps[10003]; int dpe[10003]; int main() { string s; cin>>s; int len = s.size(); int i,j; fo
2015-04-08 14:51:32 270
翻译 Self-numbers 2
#include #include #include #include using namespace std; const int D=(1<<16)-1; int N,K; int a[5503]; int r[5503]; int d[75503]; bool cmp(int m,int n) { return a[m]<a[n];//用a数组元素大小对r数组排序,好有技巧 } int
2015-04-07 21:16:06 488
空空如也
gvim imap 会注释所有文字怎么办
2015-02-12
TA创建的收藏夹 TA关注的收藏夹
TA关注的人