#100. 【求测试】99f617dcf256eee4557e12af61f431820ec6396f

【求测试】99f617dcf256eee4557e12af61f431820ec6396f

Background

小P温馨提醒,这些题非常毒瘤!!!(

实在想不到哪里错的可以私信发QQ,小P帮你对对答案(

由于加密方法的原因,除非你全对,否则都是0分(我也想设置部分分啊

image

此时是2024/6/17 21:00,小P因讨论功能的关闭而肝肠寸断、泣不成声。然而小P知道自己不能陷入过度的悲伤,遂开始做编程题。但他已经101010^{-10}秒钟没做过编程题了,使他忘记了全部的编程知识……于是他就开始做选择题。为他太蒟蒻了,连选择题都不会,他开始自暴自弃。为防止他继续自暴自弃,就由来做这些难如登天 惨绝人寰 易如反掌的选择题吧。(?

Description

1.image

A.2153142或\frac{15-\sqrt{31}}{4}

B.2153342或\frac{15-\sqrt{33}}{4}

C.2311321639\frac{23}{11}或\frac{32-\sqrt{163}}{9}

D.15314\frac{15-\sqrt{31}}{4}


2.解方程:x33x2(23+1)x+3+3=0x^3-\sqrt{3}x^2-(2\sqrt{3}+1)x+3+\sqrt{3}=0

A.x1=3+1,x2=1+1+432,x3=1+1432(x3虚根舍去)x_1=\sqrt{3}+1,x_2=\frac{-1+\sqrt{1+4\sqrt{3}}}{2},x_3=\frac{-1+\sqrt{1-4\sqrt{3}}}{2}(x_3虚根舍去)

B. x1=3+1,x2=1+1+432,x3=11432(x3虚根舍去)x_1=\sqrt{3}+1,x_2=\frac{-1+\sqrt{1+4\sqrt{3}}}{2},x_3=\frac{-1-\sqrt{1-4\sqrt{3}}}{2}(x_3虚根舍去)

C. x1=3+1,x2=1+1432,x3=11432(x2,x3虚根舍去)x_1=\sqrt{3}+1,x_2=\frac{-1+\sqrt{1-4\sqrt{3}}}{2},x_3=\frac{-1-\sqrt{1-4\sqrt{3}}}{2}(x_2,x_3虚根舍去)

D. x1=3+1,x2=11+432,x3=1+1+432x_1=\sqrt{3}+1,x_2=\frac{-1-\sqrt{1+4\sqrt{3}}}{2},x_3=\frac{-1+\sqrt{1+4\sqrt{3}}}{2}


3.image

可以证明,答案是有理数。求该最简分数分子与分母之积。

A. 3030

B. 30462530或4625

C. 30528030或5280

D. 30496030或4960


4.众所周知,编程与数学密不可分……

所以接下来四题与(python)编程有关。

下面的题对小P来说还是难了,所以你还是继续帮他做题吧(

image

如图,下列哪个不可能是程序的输出?

A. 491496536417 142033846063 362889332009 36642679813 490478111663 67138949323 666783669047 464075764441 516107564507 398585918021

B. 1415375849 48252945341 81169600607 202043051549 259958654159 166476829549 21150812149 45355788487 172360187729 21770521909

C. 107999183767 501302677853 147229555831 368101351759 237634368683 344208795397 46216452937 10788029953 115664327 58236530201

D. 304593889337 213340628959 658913427901 739777253141 178802358961 555617467309 11596604909 225330670597 364859938147 12431016457


5.下面哪个内置异常在内置异常的类层级结构中不以Exception为基类?

A. KeyboardInterrupt

B. AttributeError

C. Warning

D. StopAsyncIteration


6.下面哪个常量在试图给它赋值时不会报错?

A. None

B. __debug__

C. NotImplemented

D. False


7.关于python中的random库,下面哪个说法是有错误的的?

A. 默认的 random() 返回在 0.0x<1.00.0 \leq x < 1.0 范围内 2532^{-53} 的倍数。 所有这些数值间隔相等并能精确表示为 Python 浮点数。 所有可表示浮点数均可能被取到。

B. shuffle(x) 将序列 x 随机打乱位置。 对于长序列也没有排列永远不会产生。(此处定义长序列是长度大于3000的序列)

C. Python 使用 Mersenne Twister 作为核心生成器。 它产生 53 位精度浮点数,周期为 21993712^{19937}-1 ,其在 C 中的底层实现既快又线程安全,因此可将此模块的伪随机生成器用于安全目的。

D. 当两个线程同时调用 gauss() 时,它们有可能将获得相同的返回值。 这可以通过三种办法来避免。 1) 让每个线程使用不同的随机数生成器实例。 2) 在所有调用外面加锁。 3) 改用速度较慢但是线程安全的 normalvariate() 函数。


8~22.因为编程大多都用英语作为基础(也有小部分不是),所以编程与英语息息相关,所以数学与英语密不可分……(?

接下来让我们做一篇简简单单的英语阅读……

很可惜,小P的英语也不太好……

A person with positive thinking mentality expects happiness, health and success, and believes that he or she can overcome any obstacle and difficulty.

__1__ thinking is not a concept that everyone believes and follows. Some, consider it as nonsense, and scoff(laugh)at people who follow it,__2__, there is a growing number of people, who accept positive thinking as a fact, and believe in its __3__.

To use it in your life, you need more than just to be aware of its __4__.You need to adopt the attitude of positive thinking in everything you do.

The following story illustrates how positive thinking works: Allan applied for a new job,__5__ he didn't believe he will get it, since his __6__ himself as a failure and unworthy of success.

He had a __7__ attitude toward himself,__8__ was low, and he considered , believed that the other applicants were better and more qualified than him.

Allan's mind was occupied with negative thoughts and fears concerning the job for the whole week preceding the job interview. He __9__ , expected failure.

On the day of the interview, he got up late, and to his __10__ he discovered that the shirt he planned to wear was dirty, and the other one needed ironing. As it was already too late, he went out wearing a wrinkled shirt and without eating breakfast.

During the interview, he was tense, negative,__11__ and worried about his shirt. All this distracted his mind and made it difficult for him to __12__ the interview. His overall behavior made a bad impression, and __13__ , he couldn't overcome his fear and did not get the job.

Jim applied for the same job too, but approached the matter in a __14__ way. He was sure that he was going to get the job. During the week preceding the interview, he often visualized himself making a good __15__ and getting the job. He prepared fully before the Interview and he got the job as he expected.

image

Format

Input

无输入。

Output

见Samples部分。

Samples

假设你的答案是ABCDABCDABCDABCDABCDAB,则你应该编写这样的程序:

from b import encode
print(encode('ABCDABCDABCDABCDABCDAB'))

不必担心encode函数未实现等问题,因为善良的小P在自暴自弃之前帮你编写好了加密程序。

Prompts

题目中有个彩蛋,不知道你有没有发现(

如果传入的参数不是表示答案的22个字母,则小P无法保证程序能正常运行。

你无需考虑encode函数是如何运作的,也不需要优化该函数。保证在正确的输入下,该函数能在1500ms内返回正确的结果。

请不要使用作某帮、小某搜题等软件作弊。

如果你真的想暴力试出答案,题目名称即为答案用SHA-1加密后的结果。经计算在最差情况下你只需要约1.8×10121.8\times 10^{12}秒即可试出答案。小P就是这么做的,他一定能在公元7600年前得出答案(