码迷,mamicode.com
首页 >  
搜索关键字:uva live 3882    ( 10951个结果
uva 213 - Message Decoding (我觉得我的方法要比书上少很多代码,不保证好……)
#include #include #include char s[250]; char a[10][250]; int a1[4]; int a2[250]; char ch; int init(int len) { int tt=0; for(int i=1;i<=7;i++) { for(int j=0;j<(int)pow(2,i)-1;j++) ...
分类:其他好文   时间:2014-07-20 10:25:18    阅读次数:185
UVA - 10298 Power Strings (KMP求字符串循环节)
Description Problem D: Power Strings Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation a...
分类:其他好文   时间:2014-07-20 09:39:37    阅读次数:263
我的第一篇Windows Live Writer小文
开始听51CTO博客管家的建议,我试着使用本地安装的WindowsLiveWriter软件撰写51CTO博客文章。此前,本人感觉51CTO提供的博客在线编辑器基本OK,但是感到不点不爽的是,其图像插入支持非常经典(一般吧)--效率不高。测试一下让我现在试试WindowsLiveWriter吧。先插入一下从网..
分类:Windows程序   时间:2014-07-20 00:48:51    阅读次数:354
UVA 239 - Tempus et mobilius. Time and motion(置换周期)
UVA 239 - Tempus et mobilius. Time and motion 题目链接 题意:这题题意也是吊得飞起,看了老半天,大概是这样: 有一个放球的队列,和3个轨道(说白了就是栈),一个容纳5,1个12,1个12,每1分钟队列出一个小球,放入栈,如果放入5的满了,就把5的放回队列,头一个放入12的,如果12的满了,就把12的放回队列,头一个放入另一个12的栈,如果...
分类:其他好文   时间:2014-07-20 00:35:23    阅读次数:179
uva 232 - Crossword Answers
代码又是挺乱的,时间太紧没空整理,思路也不好~但能AC…… 看不清楚可以留言,或者加qq一起探讨 #include #include #include using namespace std; char s[11][11]; int num[11][11]; int vis[11][11]; int main() { int r,c; int t=0; while(sc...
分类:其他好文   时间:2014-07-19 23:38:39    阅读次数:313
uva 1368 - DNA Consensus String
题目上给的样例input格式存在一定问题,行末多空格。 在这上面纠结了几次…… #include #include #include const int maxn = 1100; int A[maxn]; int C[maxn]; int G[maxn]; int T[maxn]; char ans[maxn]; int ans_; int m,n; void judge(int pos) ...
分类:其他好文   时间:2014-07-19 23:26:29    阅读次数:347
UVA No Tipping
Problem A - No Tipping As Archimedes famously observed, if you put an object on a lever arm,it will exert a twisting force around the lever's fulcrum. Thistwisting is called torque and is equal to th...
分类:其他好文   时间:2014-07-19 23:13:39    阅读次数:343
UVA 10036 Divisibility
Consider an arbitrary sequence of integers. One can place + or - operators between integers in the sequence, thus deriving different arithmetical expr...
分类:其他好文   时间:2014-07-19 22:37:50    阅读次数:243
CodeForces 230A Dragons
Kirito is stuck on a level of the MMORPG he is playing now. To move on in the game, he's got to defeat allndragons that live on this level. Kirito and...
分类:其他好文   时间:2014-07-19 22:20:17    阅读次数:289
UVA - 586 Instant Complexity
Description  Instant Complexity  Analyzing the run-time complexity of algorithms is an important tool for designing efficient programs that solve a problem. An algorithm that r...
分类:其他好文   时间:2014-07-19 18:26:15    阅读次数:268
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!