09 2018 档案

摘要:This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2018-09-15 17:59 GetcharZp 阅读(200) 评论(0) 推荐(0) 编辑
摘要:I. Characters with Hash Mur loves hash algorithm, and he sometimes encrypt another one's name, and call him with that encrypted value. For instance, h 阅读全文
posted @ 2018-09-09 17:01 GetcharZp 阅读(187) 评论(0) 推荐(0) 编辑
摘要:When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves in s 阅读全文
posted @ 2018-09-09 08:12 GetcharZp 阅读(211) 评论(0) 推荐(0) 编辑
摘要:复习清单,2018.9.8 12点04分 my_pow() 并查集 toporder() 线段树单点更新 字典树 Kmp AC自动机 prim kruskal 二分图 equal(A, A + m, temp); // 判断数组A的前m个元素与数组temp的前m个元素是否相等 java 大数 pyt 阅读全文
posted @ 2018-09-08 12:06 GetcharZp 阅读(101) 评论(0) 推荐(0) 编辑
摘要:Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 阅读全文
posted @ 2018-09-06 23:28 GetcharZp 阅读(138) 评论(0) 推荐(0) 编辑
摘要:It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that c 阅读全文
posted @ 2018-09-06 16:49 GetcharZp 阅读(183) 评论(0) 推荐(0) 编辑
摘要:People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earch is called "jan, feb, mar, apr, m 阅读全文
posted @ 2018-09-05 22:33 GetcharZp 阅读(276) 评论(0) 推荐(0) 编辑
摘要:The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input n 阅读全文
posted @ 2018-09-05 18:25 GetcharZp 阅读(313) 评论(0) 推荐(0) 编辑
摘要:Given three integers A, B and C in [−2​63​​,2​63​​], you are supposed to tell whether A+B>C. Input Specification: The first line of the input gives th 阅读全文
posted @ 2018-09-05 15:46 GetcharZp 阅读(147) 评论(0) 推荐(0) 编辑
摘要:For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre 阅读全文
posted @ 2018-09-05 15:25 GetcharZp 阅读(157) 评论(0) 推荐(0) 编辑
摘要:The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the s 阅读全文
posted @ 2018-09-05 14:48 GetcharZp 阅读(178) 评论(0) 推荐(0) 编辑
摘要:On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc 阅读全文
posted @ 2018-09-05 13:07 GetcharZp 阅读(144) 评论(0) 推荐(0) 编辑
摘要:Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of b 阅读全文
posted @ 2018-09-05 12:43 GetcharZp 阅读(123) 评论(0) 推荐(0) 编辑
摘要:The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of e 阅读全文
posted @ 2018-09-05 03:11 GetcharZp 阅读(143) 评论(0) 推荐(0) 编辑
摘要:Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "ins 阅读全文
posted @ 2018-09-05 01:42 GetcharZp 阅读(161) 评论(0) 推荐(0) 编辑
摘要:Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe 阅读全文
posted @ 2018-09-05 01:14 GetcharZp 阅读(168) 评论(0) 推荐(0) 编辑
摘要:To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords 阅读全文
posted @ 2018-09-05 00:58 GetcharZp 阅读(118) 评论(0) 推荐(0) 编辑
摘要:Given two strings S​1​​ and S​2​​, S=S​1​​−S​2​​ is defined to be the remaining string after taking all the characters in S​2​​ from S​1​​. Your task 阅读全文
posted @ 2018-09-05 00:33 GetcharZp 阅读(157) 评论(0) 推荐(0) 编辑
摘要:Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color 阅读全文
posted @ 2018-09-05 00:24 GetcharZp 阅读(139) 评论(0) 推荐(0) 编辑
摘要:If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver 阅读全文
posted @ 2018-09-05 00:11 GetcharZp 阅读(117) 评论(0) 推荐(0) 编辑
摘要:People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, wher 阅读全文
posted @ 2018-09-04 10:07 GetcharZp 阅读(153) 评论(0) 推荐(0) 编辑
摘要:Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135 阅读全文
posted @ 2018-09-04 09:36 GetcharZp 阅读(184) 评论(0) 推荐(0) 编辑
摘要:"Let's C" is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of th 阅读全文
posted @ 2018-09-04 00:17 GetcharZp 阅读(142) 评论(0) 推荐(0) 编辑
摘要:Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are fri 阅读全文
posted @ 2018-09-03 23:45 GetcharZp 阅读(95) 评论(0) 推荐(0) 编辑
摘要:John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners from 阅读全文
posted @ 2018-09-03 23:29 GetcharZp 阅读(190) 评论(0) 推荐(0) 编辑
摘要:Consider a positive integer N written in standard notation with k+1 digits a​i​​ as a​k​​⋯a​1​​a​0​​ with 0≤a​i​​<10 for all i and a​k​​>0. Then N is 阅读全文
posted @ 2018-09-03 18:39 GetcharZp 阅读(155) 评论(0) 推荐(0) 编辑
摘要:Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains 阅读全文
posted @ 2018-09-03 17:21 GetcharZp 阅读(227) 评论(0) 推荐(0) 编辑
摘要:A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re 阅读全文
posted @ 2018-09-03 16:39 GetcharZp 阅读(121) 评论(0) 推荐(0) 编辑
摘要:With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing ba 阅读全文
posted @ 2018-09-03 11:54 GetcharZp 阅读(161) 评论(0) 推荐(0) 编辑
摘要:The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev 阅读全文
posted @ 2018-09-03 11:53 GetcharZp 阅读(157) 评论(0) 推荐(0) 编辑
摘要:At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door 阅读全文
posted @ 2018-09-03 01:59 GetcharZp 阅读(175) 评论(0) 推荐(0) 编辑
摘要:Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文
posted @ 2018-09-03 01:43 GetcharZp 阅读(152) 评论(0) 推荐(0) 编辑
摘要:Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha 阅读全文
posted @ 2018-09-03 00:43 GetcharZp 阅读(145) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示