08 2022 档案
Highest Price in Supply Chain (25)
摘要:题目描述 A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to cus 阅读全文
posted @ 2022-08-29 00:23 Coder何 阅读(39) 评论(0) 推荐(0)
1012 The Best Rank (25分)
摘要:To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat 阅读全文
posted @ 2022-08-27 23:37 Coder何 阅读(49) 评论(0) 推荐(0)
1010 Radix(25分)
摘要:Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a 阅读全文
posted @ 2022-08-22 00:39 Coder何 阅读(38) 评论(0) 推荐(0)
1009 Product of Polynomials
摘要: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 @ 2022-08-15 00:01 Coder何 阅读(55) 评论(0) 推荐(0)
1007 Maximum Subsequence Sum(25分)
摘要:Given a sequence of K integers { N1​, N2​, ..., NK​ }. A continuous subsequence is defined to be { Ni​, Ni+1​, ..., Nj​ } where 1≤i≤j≤K. The Maximum S 阅读全文
posted @ 2022-08-14 23:13 Coder何 阅读(39) 评论(0) 推荐(0)
1006 Sign In and Sign Out(25分)
摘要: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 @ 2022-08-14 22:22 Coder何 阅读(36) 评论(0) 推荐(0)
memset函数的常规用法
摘要:memset函数对数组中的每一个元素的每个字节进行初始化,一般的int数组中每个元素有四个字节,所以memset(a,0x3f,sizeof(a))其实是把每个元素置成0x3f3f3f3f 对于一般的int数组,在使用memset进行初始化时,有以下几种常见情况 1.置0 memset(a, 0, 阅读全文
posted @ 2022-08-08 18:55 Coder何 阅读(461) 评论(0) 推荐(0)
1003 Emergency(25分)(Dijkstra)
摘要:As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro 阅读全文
posted @ 2022-08-08 17:59 Coder何 阅读(55) 评论(0) 推荐(0)