11 2012 档案
摘要:A - WatermelonCrawling in process...Crawling failedTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionOne hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the waterm
阅读全文
摘要:Get Many Persimmon TreesTime Limit:1000MSMemory Limit:30000KTotal Submissions:2821Accepted:1836DescriptionSeiji Hayashi had been a professor of the Nisshinkan Samurai School in the domain of Aizu for a long time in the 18th century. In order to reward him for his meritorious career in education, Kat
阅读全文
摘要:一、克隆一个对象private object CloneObject(object o)
{ Type t =o.GetType(); PropertyInfo[] properties =t.GetProperties(); Object p =t.InvokeMember("", System.Reflection.BindingFlags.CreateInstance, null, o, null); foreach(PropertyInfo pi in properties) { if(pi.CanWrite) {...
阅读全文
摘要:SudokuTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 10849Accepted: 5414Special JudgeDescriptionSudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller squares 3x3 as shown on the Figure. In some of the cells are written decimal digits from 1 to 9. Th
阅读全文
摘要:Curling 2.0Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7490Accepted: 3127DescriptionOn Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played on an ice game board on which a square mesh is marked.
阅读全文
摘要:A Round Peg in a Ground HoleTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 4098Accepted: 1246DescriptionThe DIY Furniture company specializes in assemble-it-yourself furniture kits. Typically, the pieces of wood are attached to one another using a wooden peg that fits into pre-cut holes in
阅读全文
摘要:日期:2012-11-29来源:GBin1.com还记得前段时间我们介绍的40个免费智能手机UI套件吧。今天我们继续给大家推荐44个web和移动相关的用户界面ui套件,希望大家喜欢!蓝色Blue UI Kit蓝色UI素材包包含了所有你需要创建一个具有足够吸引力的网站或者移动界面的内容,有单选按钮、工具栏、搜索框、工具提示条等等。你可以根据自己的需要进行调整,并支持高分辨率视图效果。Mini Reminders在这套UI集合包里,你可以找到关于灰色主题的一些非常可爱,小巧的迷你图标工具。Exclusive UI Kit PSD这里包含了适合在黑色灰色和银色的主题的网站中,下拉菜单、滑块 、按钮和
阅读全文
摘要:日期:2012-11-28来源:GBin1.com如果你开发前端特效的话,肯定会首选javascript类库,例如,jQuery,使用它能够帮助你快速的帮助你生成兼容性相对良好的动画特效。或者,如果你对于兼容性没有太多的要求的话,你可以考虑使用性能更加优良的CSS3动画特效。大家可能还记得我们以前介绍过的animate.css,Easings和liffect三个超棒的CSS3动画类库吧。今天我们这里总结了5款有效帮助你生成CSS3动画效果的类库和工具,希望大家喜欢!Animate.cssLiffectEasingsAnimatableMorf使用以上的CSS3动画类库可以帮助你快速的实现基于C
阅读全文
摘要:Contestants DivisionTime Limit:2000MSMemory Limit:65536KTotal Submissions:6947Accepted:1961DescriptionIn the new ACM-ICPC Regional Contest, a special monitoring and submitting system will be set up, and students will be able to compete at their own universities. However there’s one problem. Due to t
阅读全文
摘要:Crazy ThairsTime Limit:3000MSMemory Limit:65536KTotal Submissions:6092Accepted:1478DescriptionThese days, Sempr is crazed on one problem named Crazy Thair. GivenN(1 ≤N≤ 50000) numbers, which are no more than 109, Crazy Thair is a group of 5 numbers {i,j,k,l,m} satisfying:1. 1 ≤i#include#include#incl
阅读全文
摘要:Number SequenceTime Limit:1000MSMemory Limit:10000KTotal Submissions:28810Accepted:8003DescriptionA single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2...Sk. Each group Sk consists of a sequence of positive integer num
阅读全文
摘要:Monthly ExpenseTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 9302Accepted: 3823DescriptionFarmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤moneyi ≤ 10,000) that h
阅读全文
摘要:Communication SystemTime Limit:1000MSMemory Limit:10000KTotal Submissions:19377Accepted:6851DescriptionWe have received an order from Pizoor Communications Inc. for a special communication system. The system consists of several devices. For each device, we are free to choose from several manufacture
阅读全文
摘要:日期:2012-11-27来源:GBin1.com全部在线演示jQuery 绝对是一个伟大的开源javascript类库,是帮助我们快速和高效开发前端应用的利器。可能大家在日常的开发过程中常常会处理表单相关的 javascript,在今天这篇代码片段分享文章中,gbin1收集了10个超棒超实用的jQuery表单处理代码,希望能够在大家的开发过程中帮助大 家更好更快的处理表单相关问题,希望大家喜欢!如果你也有相关的代码,请大家积极分享!相关阅读:10个实用的jQuery代码片段代码片段1: 在表单中禁用“回车键”大家可能在表单的操作中需要防止用户意外的提交表单,那么下面这段代码肯定非常有帮助:在
阅读全文
摘要:Lake CountingTime Limit:1000MSMemory Limit:65536KTotal Submissions:14776Accepted:7496DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 #include#include#define MAX 110char map[MAX][MAX];bool vis[MAX][MAX];int
阅读全文
摘要:Tree CuttingTime Limit:1000MSMemory Limit:65536KTotal Submissions:3022Accepted:1767DescriptionAfter Farmer John realized that Bessie had installed a "tree-shaped" network among his N (1 #include#include#includeusing namespace std;#define MAX 10010bool vis[MAX];vector list[MAX];int sum[MAX]
阅读全文
摘要:Asteroids!Time Limit:1000MSMemory Limit:65536KTotal Submissions:2653Accepted:1006DescriptionYou're in space.You want to get home.There are asteroids.You don't want to hit them.InputInput to this problem will consist of a (non-empty) series of up to 100 data sets. Each data set will be format
阅读全文
摘要:ChessboardTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 10746Accepted: 3340DescriptionAlice and Bob often play games on chessboard. One day, Alice draws a board with size M * N. She wants Bob to use a lot of cards with size 1 * 2 to cover the board. However, she thinks it too easy to bob,
阅读全文
摘要:CodeTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 6374Accepted: 2987DescriptionTransmitting and memorizing information is a task that requires different coding systems for the best use of the available space. A well known system is that one where a number is associated to a character sequ
阅读全文
摘要:40款不容错过的个人摄影设计作品集网站如果你不仅仅是网站设计师同时也是摄影师爱好者的话,那么拍摄高水准的摄影作品绝对可以为你的工作带来更大的帮助!你可以将这些照片处理后放到你设计的网站上,绝对是件了不起的作品。阅读更多创新的缩略图展示javascript类库 - Kort.jsKort.js是一个迷你的javascript类库,能够使用充满创意的方式来展示一系列的缩略图,同时支持触摸设备。阅读更多超酷的CSS3列表动画特效在线生成工具 - liffect还记得我们曾经介绍过的开源CSS3动画CSS文件animate.css吗?使用它能够帮助你快速的编码CSS3动画效果。当然,如果你不喜欢自己编
阅读全文
摘要:日期:2012-11-25来源:GBin1.com如果你实在是觉得上网无聊的话,你可以尝试一下我们今天介绍的这个超级异类的网站 - theuselessweb.com,这个网站自己本身并没有什么特别的地方,最异类的地方在于,如果你访问这个网站,并且点击Please按钮后,它会随机的打开某一个同样是"无用"类型的网站,如果你对于探索奇怪的网站有兴趣的话,可以花上几分钟看看都有什么类型的怪站,小编我花了10分钟,找到了30多个各式类型的“无用”网站,比如,重复唱同一句歌的网站,或者重复同一个无聊动画的网站,还有就是点击生成分裂球的网站。如果你无聊的话,说不定它能够给你带来一些小
阅读全文
摘要:日期:2012-11-24来源:GBin1.com相信大家肯定喜欢体育运动,如果你是运动迷儿的话,千万不要错过下面的体育相关网站设计。体育网站一般分为这样几个不同的类型:体育新闻、体育俱乐部、体育服饰和一些业界名人的个人网站。其中俱乐部和新闻类型的网站主要包括了大量的相关新闻和文字介绍,这使得它们很难被设计成既干净又简单的页面。再比如运动服饰类型,主要目标就是找出一些极具说服力的方法来介绍某件商品。而个人网站则是一个展示个性和能力的地方。当然,这些完全够不上复杂和困难之说。最困难的是如何把情感、精神和力量在体育方面全部展现出来,能同时做到这一点说明你绝对是一个非常棒的设计师了!今天我们推荐了3
阅读全文
摘要:比赛链接:http://acm.hdu.edu.cn/diy/contest_show.php?cid=18010problem1001Meepo’s Problem I Time Limit : 3000/1000ms (Java/Other)Memory Limit : 65535/65536K (Java/Other)Total Submission(s) : 249Accepted Submission(s) : 77Font: Times New Roman | Verdana | GeorgiaFont Size: ← →Problem DescriptionMost boys o
阅读全文
摘要:Oil DepositsTime Limit:1000MSMemory Limit:10000KTotal Submissions:9814Accepted:5375DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides the land
阅读全文
摘要:Language:Image PerimetersTime Limit:1000MSMemory Limit:10000KTotal Submissions:6691Accepted:3976DescriptionTechnicians in a pathology lab analyze digitized images of slides. Objects on a slide are selected for analysis by a mouse click on the object. The perimeter of the boundary of an object is one
阅读全文
摘要:比赛链接:http://soj.me/contest_detail.php?cid=775Problem10001000. Bridges and Tunnels Total:54Accepted:11Time Limit: 3sec Memory Limit:256MB DescriptionIt may feel warm now, but in a few months,the citywill be full of snow. Luckily, many of the buildings on campus are connected by bridges and tunnels, .
阅读全文
摘要:放苹果Time Limit:1000MSMemory Limit:10000KTotal Submissions:21860Accepted:13944Description把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。Input第一行是测试数据的数目t(0 #include#includeusing namespace std;int dfs(int n,int m){ if(m==1) return 1; if(n==0) return 1; if(n>)所有不同的摆放方法可以分为两类:至少有一个
阅读全文
摘要:The Bottom of a GraphTime Limit:3000MSMemory Limit:65536KTotal Submissions:7005Accepted:2871DescriptionWe will use the following (standard) definitions from graph theory. LetVbe a nonempty and finite set, its elements being called vertices (or nodes). LetEbe a subset of the Cartesian productV×V
阅读全文
摘要:RelativesTime Limit:1000MSMemory Limit:65536KTotal Submissions:9411Accepted:4453DescriptionGiven n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively prime if there are no integers x > 1, y > 0, z > 0 such that a = xy a
阅读全文
摘要:Primitive RootsTime Limit:1000MSMemory Limit:10000KTotal Submissions:2159Accepted:1194DescriptionWe say that integer x, 0 #include#include#includeusing namespace std;#define MAX 65550int prime[MAX];bool flag[MAX];int ct;void pre(){ memset(flag,0,sizeof(flag)); int i,j; flag[1]=1; ct=0; for(i=2;i*i1)
阅读全文
摘要:Vasya and the BusTime Limit: 2000MSMemory Limit: 262144KB64bit IO Format: %I64d & %I64u[Submit] [Go Back] [Status]DescriptionOne day Vasya heard a story: "In the city of High Bertown a bus number 62 left from the bus station. It hadn grown-ups andm kids..."The latter events happen to b
阅读全文
摘要:Necklace of BeadsTime Limit:1000MSMemory Limit:10000KTotal Submissions:5410Accepted:2241DescriptionBeads of red, blue or green colors are connected together into a circular necklace of n beads ( n #include#include#includetypedef long long ll;using namespace std;int gcd(int a,int b){ if(a%b==0) retur
阅读全文
摘要:Sliding WindowTime Limit:12000MSMemory Limit:65536KTotal Submissions:28126Accepted:8389Case Time Limit:5000MSDescriptionAn array of sizen≤ 106is given to you. There is a sliding window of sizekwhich is moving from the very left of the array to the very right. You can only see theknumbers in the wind
阅读全文
摘要:日期:2012-11-23来源:GBin1.com还记得上次我们分享的超棒动物瞬间抓拍摄影作品吧,今天我们这里继续分享一套超棒的野生动物摄影作品,绝对不容错过!所有的图片都是在野生环境中拍摄制作的,整套图片非常的真实,也不乏幽默,希望大家喜欢!图片来源: Ankur Patar图片来源: Farzad Sadjadi图片来源: Tata Vislevskaya图片来源: Troy Moth图片来源: Bob Brind-Surch....来源:绝对不容错过的野生动物wildlife摄影作品
阅读全文
摘要:日期:2012-11-22来源:GBin1.com在线演示HUGEpic是一个在线帮助你查看超大图片的web应用。它不使用任何flash的组件,也不依赖于任何插件。可以非常方便的帮助你在手机和桌面客户端查看图片。使用HUGEpic将意味着你不需要下载即可查看超大的图片,它使用Google地图方式来帮助你查看,只下载目前缩放度的图片数据。其实在几周前主要的开发人员就Peter Bengtsson已经发布这个网站了,不过到现在才真正的带来了最棒的特性 - 你可以方便的将HUGEpic图片嵌入你自己的网站中。当然,除了这个特性外,你还可以方便的将图片分享到知名的社交媒体网站上。最酷的地方在于它还可以
阅读全文
摘要:日期:2012-11-21来源:GBin1.com大家还记得在jQuery 1.0 RC版本发布的时候我们曾经发布过一个jQuery Mobile RC版本介绍文章介绍主要的特性。就在前不久,jQuery Mobile团队又发布了jQuery Mobile 1.2。新版本中带来了一些非常不错的特性。在今天的这篇文章中我们将继续介绍1.2版本的一些新的widget,及其一些针对老版本widget的功能加强。希望大家喜欢!WidgetsjQuery Mobile最核心的地方就在于widgets。提供了与用户交互的界面。在最新的版本中,加入了一个全新的widget:popup modal。Popup
阅读全文
摘要:日期:2012-11-20来源:GBin1.com今天我们推荐来自日本设计师Yuken Teruya的一组超棒的微型纸袋树设计,如果对于设计和创意有兴趣的朋友一定要看看他的网站中的各种创意设计,相当的精细和漂亮,相信你一定会喜欢!来源:超富有创意的微型纸袋树(paper bag tree)设计
阅读全文
摘要:日期:2012-11-18来源:GBin1.com下载地址在前面的文章中,我们介绍过一些来自drippple的免费的纹理,今天我们继续分享10个免费的纹理绘图,希望大家喜欢!纹理图案01Download 纹理图案01纹理图案02Download 纹理图案02纹理图案03Download 纹理图案03纹理图案04Download 纹理图案04纹理图案05Download 纹理图案05纹理图案06Download 纹理图案06纹理图案07Download 纹理图案07纹理图案08Download 纹理图案08纹理图案09Download 纹理图案09纹理图案10来源:分享10个超棒的免费绘图纹理图
阅读全文
摘要:日期:2012-11-17来源:GBin1.com相信大家还得上次我们分享了一套不错的图标Endless icon,今天我们带来一套不一样的图标 - MINI OS图标,在这套图标中包含了4种mini操作系统图标(专用于PNG格式和矢量格式SV、PDF),你可以使用它们在一些我们常用的网站设计上,比如电子商务网站、管理面板、统计类型网站和CMS应用程序等。本地下载拥有透明背景的12*12px像素的MINI OS图标,非常适用于页眉页脚或者导航栏中,还等什么呢,赶快来下载试试吧!来源:一套超棒的免费迷你OS图标
阅读全文
摘要:日期:2012-11-19来源:GBin1.com前面文章中我们曾经介绍过折叠方式展示元素的jQuery插件,那么你有没有试过使用扑克牌风格的扇形页面的展示效果呢?如果没有,那你可千万不要错过我们今天介绍的jQuery插件-Baraja。Baraja是一款帮助你以特效风格展示页面元素的jQuery插件,使用它可以我们可以制作出一组类似桌面纸牌牌的演示效果。为了达到不同的旋转效果和展开方式,你可以通过使用不同的CSS设定来实现不同的过渡和转换效果。相信追求另类的朋友肯定会非常喜欢!在线演示本地下载 你可以使用CSS对它的展开方向、速度、范围和视图效果进行自定义,同时它还支持Prev-Next进行
阅读全文
摘要:日期:2012-11-16来源:GBin1.com在web和网站开发中我们常常需要处理viewport相关的功能,在前面的文章中我们曾经介绍过javascript响应式视图(viewport)切换工具类库,今天这里我们再介绍5个和viewport相关的jQuery插件,希望大家喜欢!Viewport Selectors for jQuery这个简单的jQuery插件可以快速帮助你检测元素是否处于viewport中。jQuery Bullseye – Viewport detection plug-in for jQuery!功能丰富的轻量级jQuery插件,帮助你添加进去和离开viewport
阅读全文
摘要:日期:2012-11-15来源:GBin1.com在线演示大家应该还记得我们在过去的文章中介绍过的几款知名的响应式布局插:isotope,Freetile.js和masonary吧?使用这些插件可以方便的帮助你构建自适应的网格布局。今天我们介绍另外一个超棒的网格布局插件-Grid-A-Licious,和前面介绍过的isotope和masonary不太一样,这个插件使用更加完整的响应式实现,你不需要定义固定的宽度,它自己会根据不同的设备来自动的选择浮动,不需要使用absolute方式来定位元素。除此之外还提供了一些选项来帮助你自定义插件选项,包括:宽度动画速度持续时间特效其它 来源:超棒的响应式
阅读全文
摘要:挺立在孤独,失败与屈辱的废墟上 俞敏洪希望和绝望的较量△希望永存我们生活的80%是由不如意和绝望组成的,而你的精神之所以不垮,就是因为在绝望中还保留着寻找希望的种子。只要你勇于面对困难,想像着战胜困难后的喜悦,你就会词汇力量了。△寻找动力expel impel内存动力不仅仅失去我们去追求财富,更重要的是失去我们超载自我,失去我们达到“会当临绝顶,一览众山小”的境界。△优秀是一种习惯只要把优秀的行为养成习惯,一个人他就自然优秀了。△英语学习重在精深做任何事情一上来太泛了一定会做不好,特别是在英语水平不高的情况下,我们做任何事情要“精深超过博大”,假如你现在下决心找几十篇中午难度的文章,把它们..
阅读全文
摘要:Android开发之Intent跳转到系统应用中的拨号界面、联系人界面、短信界面时间:2012年08月02日 10:18:46 来源:千锋网 作者:现在开发中的功能需要直接跳转到拨号、联系人、短信界面等等,查找了很多资料,自己整理了一下。 首先,我们先看拨号界面,代码如下:Intent intent =new Intent(); intent.setAction("android.intent.action.CALL_BUTTON"); startActivity(intent);复制代码和Uri uri = Uri.parse("tel:xxxxxx"
阅读全文
摘要:Struts 2框架有两个核心配置文件:struts.xml和struts.properties其中struts.xml文件主要负责管理应用中的Action映射,以及该Action包含的Result定义等。除此之外,Struts 2框架还包含一个struts.properties文件,该文件定义了Struts 2框架的大量属性,开发者可以通过改变这些属性来满足应用的需求。struts.properties文件是一个标准的Properties文件,该文件包含了系列的key-value对象,每个key就是一个Struts 2属性,该key对应的value就是一个Struts 2属性值。struts
阅读全文
摘要:一. 手动输入完成校验1.普通的处理方式:只需要在action中重写validate()方法2.一个action对应多个逻辑处理方法:指定校验摸个特定方法的方式:重写validateXxxx()方法。Eg:如果,只校验login方法,则只需重写validateLogin().二. 输入校验流程:1. 类型转换器负责对字符串的请求参数执行类型转换。并将这些值设置成Action的属性值。2. 转换过程中若出现异常,则将异常信息保存到ActionContext中,conversionError拦截器将其封装到fieldError中。3. 通过反射调用validateXxx()方法。4. 调用vali
阅读全文
摘要:在struts2中需要做国际化的有:jsp页面的国际化,action错误信息的国际化,转换错误信息的国际化,校验错误信息的国际化在之前的例子中已经做过和国际化相关的例子了,在struts.xml中配置过view plaincopy to clipboardprint?其中的message就是国际化资源文件的baseNmae。我们先看看简单的在jsp中进行国际化在src目录下新建message_en_US.properties,内容为hello=add user新建message_zh_CN.properties文件,内容为hello=\u589e\u52a0\u7528\u6237然后修改re
阅读全文
摘要:struts.xml配置文件中result的语法:xxxxx Struts2支持的不同类型的返回结果为: Chain Result-->type="chain"
用来处理Action链 Dispatcher Result -->type="dispatcher"
用来转向页面,通常处理JSP FreeMarker Result -->type="freemarker"
处理FreeMarker模板 HttpHeader Result -->type="httpheader"
用来控制特殊的H
阅读全文
摘要:本文章非原创,本文章抄录于http://blog.sina.com.cn/s/blog_850822020100u5ct.htmlMyEclipse办法为9.0M1当在struts.xml中使用chain和redirectAction这两个类型结果的时候,会报检查错误!Multiple annotations found at this line:-Undefined actionnamespaceparameter- Undefined actionName parameter相信不少朋友会被这个错误折腾的很难受吧,现在说下解决方案,在百度和google上搜了很久,国外网站也看了下,半天都没
阅读全文
摘要:使用sql server2005导入mdf文件就可以创建数据库,并且,不需要先创建数据库,直接导入如:banksystem.mdf文件就可以创建banksystem为名的数据库右键点击数据库,然后选择“附加……”,然后添加这个文件就OK了
阅读全文