英语翻译一道题目
After a success of the previous Vasechkin’s program that allowed to calculate the results of the elections in cause of two days Artemy Sidorovich was placed at the head of the department. At the moment Artemy Sidorovich prepares a task for his subordinate — programmer Petechkin. The task is to write a very useful function that would ease the life of all the department programmers. For each integer from 0 to M the function would calculate how many times this number appears in the N-element array. Artemy Sidorovich deems that the function should work as follows (the sample code for N=3, M=1):
Artemy Sidorovich wants to estimate the time that Petechkin will need to execute the task. We know that Petechkin needs one second to write a line of the code (he’s fast, isn’t he?). Artemy Sidorovich doesn’t know exactly bounds for M and N. Your task is to write program that would calculate a number of seconds that Petechkin will write the code.
Input
contains 2 nonnegative integers — N (N
上面那题不用翻译了!!!!!!
翻译下面那题……
Once an ACM programmer was driving along a highway. The road was very smooth and straight, no pits, no bumps, no turns miles and miles forward. In short, boring! So the programmer decided to view billboards along the highway. One billboard was so interesting that the programmer wanted to examine it properly. But without a computer he found it difficult to determine the point with the maximal viewing angle.
Input
We regard the billboard as a segment on a plane and assume that the road is represented by the abscissa axis. The four lines of the input file contain numbers x1, y1, x2, y2, which are the coordinates of the billboard's edges. The numbers are integers in the range from −1000 to 1000. Billboard's edges are not coincide.
Output
You should output the value (in radians) of the best viewing angle of the billboard from the road within 6 digits after the decimal point.
http://acm.timus.ru/problem.aspx?space=1&num
人气:293 ℃ 时间:2019-09-22 09:25:03
解答
从前有个计算机程序员正沿着高速公路行驶.路很平坦而且笔直,没有坑,没有包,没有转弯处,向前延伸到很远很远.一个词,无聊!所以这个程序员决定看看沿路的广告牌.有一个广告牌特别有意思,他就想仔细观察观察它.但他发现...
推荐
猜你喜欢
- 一篇八十字的“我们为什么要学习英语”的英语作文
- 学校春季植树500棵,成活率为85%,秋季植树的成活率为90%,已知春季比秋季少成了7棵,秋季植树多少棵?(不要太复杂的算式.)
- 甲乙之间约水路是234千米,一只船传甲港到乙港需要9小时,从乙港返回甲港需要13小时,问船速和水速各为每小时多少千米
- 如图,在△ABC和△DEF中,∠A=∠D=90°,AB=DE=3,AC=2DF=4. (1)判断这两个三角形是否相似并说明为什么?(2)能否分别过A,D在这两个三角形中各作一条辅助线,使△ABC分割成的两个三角形与
- 在一幅平面图上用图上距离2厘米表示实际距离200米这幅图的比例尺是【 】A1:100 B2:2000 C1:10000
- 请帮忙分析一下这个句子的成份:she's what's known around here as a teacher
- you must be very careful because the traffic
- 园林绿化队要栽一批树苗,第一天栽了总数的百分之十五,第二天栽了133棵,这时剩下的与已栽的棵树的比是3:5.这批树苗一共有多少棵?