摘要:
Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run sim 阅读全文
posted @ 2018-06-09 22:55
赖兴宇
阅读(516)
评论(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 阅读全文
posted @ 2018-06-09 22:22
赖兴宇
阅读(198)
评论(0)
推荐(0)
摘要:
Cutting an integer means to cut a K digits long integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 阅读全文
posted @ 2018-06-09 21:39
赖兴宇
阅读(117)
评论(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-06-09 21:26
赖兴宇
阅读(133)
评论(0)
推荐(0)
摘要:
Given some segments of rope, you are supposed to chain them into one rope. Each time you may only fold two segments into loops and chain them into one 阅读全文
posted @ 2018-06-09 20:56
赖兴宇
阅读(135)
评论(0)
推荐(0)
摘要:
A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer 阅读全文
posted @ 2018-06-09 20:46
赖兴宇
阅读(139)
评论(0)
推荐(0)
摘要:
British astronomer Eddington liked to ride a bike. It is said that in order to show off his skill, he has even defined an "Eddington number", E -- tha 阅读全文
posted @ 2018-06-09 20:34
赖兴宇
阅读(159)
评论(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 t 阅读全文
posted @ 2018-06-09 20:20
赖兴宇
阅读(191)
评论(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-06-09 19:57
赖兴宇
阅读(147)
评论(0)
推荐(0)
摘要:
A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find t 阅读全文
posted @ 2018-06-09 19:38
赖兴宇
阅读(108)
评论(0)
推荐(0)
摘要:
A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer 阅读全文
posted @ 2018-06-09 19:17
赖兴宇
阅读(109)
评论(0)
推荐(0)
摘要:
1069 The Black Hole of Numbers (20)(20 分) For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-inc 阅读全文
posted @ 2018-06-09 18:59
赖兴宇
阅读(123)
评论(0)
推荐(0)
摘要:
For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient. Input Sp 阅读全文
posted @ 2018-06-09 16:59
赖兴宇
阅读(110)
评论(0)
推荐(0)

浙公网安备 33010602011771号