摘要: 小C的数学问题 题目描述 小C是个云南中医学院的大一新生,在某个星期二,他的高数老师扔给了他一个问题。 让他在1天的时间内给出答案。 但是小C不会这问题,现在他来请教你。 请你帮他解决这个问题。 有n个数,每个数有权值。 数学老师定义了区间价值为区间和乘上区间内的最小值。 现在要你找出有最大区间价值 阅读全文
posted @ 2019-04-07 20:42 llke 阅读(103) 评论(0) 推荐(0)
摘要: Congestion Charging Zon 题目描述 Tehran municipality has set up a new charging method for the Congestion Charging Zone (CCZ) which controls the passage of 阅读全文
posted @ 2019-04-07 15:32 llke 阅读(116) 评论(0) 推荐(0)
摘要: Chaarshanbegaan at Cafebazaar 题目链接 http://icpc.upc.edu.cn/problem.php?cid=1618&pid=1 题目描述 Chaarshanbegaan is a gathering event at Cafebazaar similar t 阅读全文
posted @ 2019-04-07 13:20 llke 阅读(175) 评论(0) 推荐(0)
摘要: Iranian ChamPions Cup 题目描述 The Iranian ChamPions Cup (ICPC), the most prestigious football league in Iran, is reaching its end, and people are eagerly 阅读全文
posted @ 2019-04-07 13:17 llke 阅读(112) 评论(0) 推荐(0)
摘要: Problem Description 大学时光是浪漫的,女生是浪漫的,圣诞更是浪漫的,但是Rabbit和Grass这两个大学女生在今年的圣诞节却表现得一点都不浪漫:不去逛商场,不去逛公园,不去和AC男约会,两个人竟然猫在寝食下棋…… 说是下棋,其实只是一个简单的小游戏而已,游戏的规则是这样的: 1 阅读全文
posted @ 2019-04-06 20:42 llke 阅读(121) 评论(0) 推荐(0)
摘要: Problem Description 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的: F(1)=1; F(2)=2; F(n)=F(n-1)+F(n-2)(n>=3); 所以,1,2,3,5,8,13……就是菲波那契数列。 在HDOJ上有不少相关 阅读全文
posted @ 2019-04-06 19:52 llke 阅读(149) 评论(0) 推荐(0)
摘要: Highways Description The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has a very poor system of public highways. The Flatopian 阅读全文
posted @ 2019-04-06 16:54 llke 阅读(171) 评论(0) 推荐(0)
摘要: Super palindrome 题目描述 You are given a string that is consisted of lowercase English alphabet. You are supposed to change it into a super palindrome st 阅读全文
posted @ 2019-04-05 15:08 llke 阅读(166) 评论(0) 推荐(0)
摘要: Hakase and Nano 题目描述 Hakase and Nano are playing an ancient pebble game (pebble is a kind of rock). There are n packs of pebbles, and the i th pack co 阅读全文
posted @ 2019-04-05 15:03 llke 阅读(210) 评论(0) 推荐(0)
摘要: Master of GCD 题目描述 Hakase has n numbers in a line. At fi rst, they are all equal to 1. Besides, Hakase is interested in primes. She will choose a cont 阅读全文
posted @ 2019-04-05 14:58 llke 阅读(267) 评论(0) 推荐(0)