摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int N=21; 8 void Get_xy(int x,int y) //定位光标位置 9 { 10 HANDLE hout; 11 COORD pos; 12 pos.X=x*2; 13 pos.Y=y; 14 hout=GetStdHandle(STD_OUTPUT_HANDLE); 15 SetConsoleCursorPosition(hou... 阅读全文
posted @ 2013-06-22 17:40 风儿-zsj 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #define N 50 4 HANDLE hConsole; 5 void gotoxy(int x, int y) 6 { 7 COORD coord; 8 coord.X = x; 9 coord.Y = y; 10 SetConsoleCursorPosition(hConsole, coord); 11 } 12 void main() 13 { 14 int i,j,k; 15 hConsole = GetStdHandle(STD_OUTPUT_... 阅读全文
posted @ 2013-06-22 17:24 风儿-zsj 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 map M; 9 int main()10 {11 int n,m,i,score;12 char name[40];13 scanf("%d",&n);14 while(n--)15 {16 M.clear();17 int sum=0;18 scanf("%d",&m);19 getchar();20 f... 阅读全文
posted @ 2013-06-22 17:10 风儿-zsj 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<algorithm> 3 using namespace std; 4 __int64 a[1000005]; 5 int main() 6 { 7 int n,m,i; 8 __int64 s,t,k,p; 9 scanf("%d",&n);10 while(n--)11 {12 scanf("%d",&m);13 s=0;14 for(i=0;i<m;i++)15 {16 scanf("%I64d",... 阅读全文
posted @ 2013-06-12 20:01 风儿-zsj 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<string.h> 3 int main() 4 { 5 int n,i,vis[26]; 6 char s[10]; 7 while(scanf("%d",&n)) 8 { 9 if(n==-1)10 break;11 memset(vis,0,sizeof(vis));12 vis[0]=1;13 for(i=0;i<n;i++)14 {15 scanf("%s",s);16 ... 阅读全文
posted @ 2013-06-11 20:16 风儿-zsj 阅读(236) 评论(0) 推荐(0) 编辑