会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ekinzhang
| |
新随笔
|
新文章
| |
订阅
|
管理
上一页
1
2
3
4
5
6
2015年2月26日
Uva 1368-DNA Consensus String
摘要: 本题只有四个字符,用常量数组存储它们#include #include char a[100][1500];int b[10];int main(){ int cnt, m, n, hamming= 0,maxum = 0; char c[10] ="ACGT"; scanf("%...
阅读全文
posted @ 2015-02-26 10:43 ekinzhang
阅读(116)
评论(0)
推荐(0)
编辑
Uva 232-crossword answers
摘要: 我的思路是网格的四周全部置为'*',设置sign数组记录起始格#include #include char a[20][20];int sign[20][20];int n = 1;int main(){ int r, c, cnt, yes, first = 1; while(scan...
阅读全文
posted @ 2015-02-26 08:47 ekinzhang
阅读(114)
评论(0)
推荐(0)
编辑
2015年2月16日
\r与\n
摘要: \r为回车:光标回到行首\n为换行:另起一行cout << "hello\r" << "world"; //输出worldcout << "hello\n" << "world"; //输出hello // world
阅读全文
posted @ 2015-02-16 11:17 ekinzhang
阅读(111)
评论(0)
推荐(0)
编辑
2015年2月8日
Uva 227-Puzzle
摘要: Puzzle A children's puzzle that was popular 30 years ago consisted of a 5x5 frame which contained 24 small squares of equal size. A unique letter of t
阅读全文
posted @ 2015-02-08 15:53 ekinzhang
阅读(217)
评论(0)
推荐(0)
编辑
Uva 455-periodic strings
摘要: UVA - 455Periodic StringsTime Limit:3000MSMemory Limit:Unknown64bit IO Format:%lld & %lluSubmitStatusDescriptionPeriodic StringsA character string is ...
阅读全文
posted @ 2015-02-08 15:20 ekinzhang
阅读(174)
评论(0)
推荐(0)
编辑
c语言输入输出的一些细节
摘要: 初次使用c,记录下摸索的细节。 1. printf("%d\n",a):整数a最大可为十位数。 【用climits函数printf("%d\n",INT_MAX)发现int能表示的最大值为2^31-1(2147483647),即最多表示10 位 数,long long为int的两倍,纠正为 prin
阅读全文
posted @ 2015-02-08 15:17 ekinzhang
阅读(360)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6