当前位置:首页
> Luz 第671页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论编程题:阶梯电价计算
为倡导节约用电,某省部分地区电网实施阶梯电价,对于一户一表的居民生活用电,分为两种电压等级,分别是不满1千伏和1至10千伏及以上,每种等级对应三档。第一档,居民户月用电量在180度及以内,维持现行电价水平,其中不满1千伏用户电价每度0.52…
编程题:统计各个数据个数
输入一组数据,现在要你统计各个数据出现了多少次。### 输入格式:输入一组整数数据,数据的总数量sum(sum>=21),各个数据的值x(x<=20)。### 输出格式:输出sum值。从小到大输出各个数据x(0<=x<…
编程题:football scoreing
There are five ways to score points in american professional football: 1) Touchdown - 6 points 2) Field Goal - 3 points…
编程题:最大公约数
求两个正整数m,n的最大公约数(Greatest Common Divisor,简称GCD)。### 输入格式:首先输入一个正整数$T$,表示测试数据的组数,然后是T组测试数据。每组测试输入2个整数$m,n (0<m,n<10^…
编程题:Elevator
The highest building in our city has only one elevator. A request list is made up with **N** positive numbers. The numbe…
编程题:Dripping Water Wears Through a Stone
Dripping water wears away stone is an idiom, which originated from the 《Chinese book • Meicheng biography》by Ban Gu of t…
编程题:Assign Cookies
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most on…
编程题:Integer Solution
There are two integers $x$ and $y$. The sum of $x$ and $y$ equals an integer $n$ and $x$ multiplied by $y$ equal to anot…
编程题:A Mathematical Curiosity
Given two integers n and m, count the number of pairs of integers $(a,b)$ such that $0 < a < b < n$ and $(a^2+b…
编程题:Segment Tree
Today HH is learning a new data structure named segment tree, which is often used to solve segment problem, here comes…