乐逍遥xwl

导航

2019年8月10日 #

POJ 3190 Stall Reservations (优先队列+结构体)

摘要: Stall Reservations Description Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked over some precise time in 阅读全文

posted @ 2019-08-10 10:25 乐逍遥xwl 阅读(153) 评论(0) 推荐(0) 编辑

POJ 3264 Balanced Lineup (区间最值问题)

摘要: Balanced Lineup Description For the daily milking, Farmer John's N cows (1 ≤ N ≤ 50,000) always line up in the same order. One day Farmer John decides 阅读全文

posted @ 2019-08-10 10:02 乐逍遥xwl 阅读(153) 评论(0) 推荐(0) 编辑

回文数 (大数运算+进制处理)

摘要: 回文数 题目描述 若一个数(首位不为零)从左向右读与从右向左读都一样,我们就将其称之为回文数。 例如:给定一个10进制数56,将56加56(即把56从右向左读),得到121是一个回文数。 又如:对于10进制数87: STEP1:87+78 = 165 STEP2:165+561 = 726 STEP 阅读全文

posted @ 2019-08-10 09:48 乐逍遥xwl 阅读(404) 评论(0) 推荐(0) 编辑