摘要: 今天使用Fragment的时候,出现了这个错误IllegalStateException: Can not perform this action after onSaveInstanceState:E/AndroidRuntime(12747):Causedby:java.lang.IllegalStateException:CannotperformthisactionafteronSaveInstanceStateatandroid.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1314)at 阅读全文
posted @ 2013-02-26 22:27 WingWing111 阅读(148) 评论(0) 推荐(0) 编辑
摘要: In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sentences from left to right and top to bottom, your program will display them from top to bottom and right to left.Input and OutputAs input to your program 阅读全文
posted @ 2013-02-26 17:18 WingWing111 阅读(128) 评论(0) 推荐(0) 编辑
摘要: An imaging device furnishes digital images of two machined surfaces that eventually will be assembled in contact with each other. The roughness of this final contact is to be estimated.A digital image is composed of the two characters,"X"and" "(space). There are always 25 columns 阅读全文
posted @ 2013-02-26 16:55 WingWing111 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Everybody sit down in a circle. Ok. Listen to me carefully.``Woooooo, you scwewy wabbit!''Now, could someone tell me how many words I just said?Input and OutputInput to your program will consist of a series of lines, each line containing multiple words (at least one). A ``word'' is d 阅读全文
posted @ 2013-02-26 04:13 WingWing111 阅读(112) 评论(0) 推荐(0) 编辑
摘要: The DecoderWrite a complete program that will correctly decode a set of characters into a valid message. Your program should read a given file of a simple coded set of characters and print the exact message that the characters contain. The code key for this simple coding is a one for one character s 阅读全文
posted @ 2013-02-26 03:08 WingWing111 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Problem AEcological PremiumInput:standard inputOutput:standard outputTime Limit:1 secondMemory Limit:32 MBGerman farmers are given a premium depending on the conditions at their farmyard. Imagine the following simplified regulation: you know the size of each farmer's farmyard in square meters an 阅读全文
posted @ 2013-02-26 02:40 WingWing111 阅读(136) 评论(0) 推荐(0) 编辑
摘要: A particle has initial velocity and constant acceleration. If its velocity after certain time is v then what will its displacement be in twice of that time?InputThe input will contain two integers in each line. Each line makes one set of input. These two integers denote the value of v (-100 #includ. 阅读全文
posted @ 2013-02-26 02:15 WingWing111 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Hashmat is a brave warrior who with his group of young soldiers moves from one place to another to fight against his opponents. Before fighting he just calculates one thing, the difference between his soldier number and the opponent's soldier number. From this difference he decides whether to fi 阅读全文
posted @ 2013-02-26 02:13 WingWing111 阅读(122) 评论(0) 推荐(0) 编辑