
脑洞
天天爆零
这个作者很懒,什么都没留下…
展开
-
C. Two Arrays
You are given two integersnnandmm. Calculate the number of pairs of arrays(a,b)(a,b)such that:the length of both arrays is equal tomm; each element of each array is an integer between11and...原创 2020-01-16 09:37:39 · 290 阅读 · 0 评论 -
戏说进程,线程,协程
"小笨蛋,起床啦“,我老婆新恒结衣如同平日一般叫我起床了,我睡眼惺忪的起床了,刷牙洗脸,我老婆围着围裙在我给做爱心早餐,我闻着空气中飘来淡淡的肉香,我知道老婆在给我做我最喜欢的汉堡肉。 我看向我老婆露出了幸福的笑容,我老婆还是一如既往的可爱,在早上的早餐还是像平常一样聊起了平日的琐事。 老公,不如我们多买一个平底锅把,我觉得家里一个不够,我平...原创 2019-08-14 15:12:52 · 138 阅读 · 0 评论 -
A. The Party and Sweets
A. The Party and Sweetstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputnboys and m girls came to the party. Each boy presented ...原创 2019-05-14 14:28:43 · 464 阅读 · 1 评论 -
C.HRY and Abbas
链接:https://ac.nowcoder.com/acm/contest/874/C题意:有2个人玩俄罗斯转盘(不知道的百度一下),一个可以装n个子弹,已知抢装了m颗子弹,而且知道,每颗子弹的位置,问你分别在1-n次开枪结束游戏的概率。思路:模拟- -,我们可以在遍历每一颗子弹的位置,然后向前推,如果子弹位置为i,而i-1没有子弹,那么该位置就是开第2枪结束游戏的位置,直到某一位有子弹为...原创 2019-04-27 14:58:17 · 185 阅读 · 0 评论 -
面向对象理解及设计模式八大原则
面向对象的概念: 所谓面向对象,即时对现实世界事物的抽取,例如我们以人作为抽象,一个人有名字,身高,体重,这些都是对人类的抽象,而身高,体重,等我们一般把其成为属性,可以理解为在某一时间段它是静态的,不变的,还有另一种抽象,是动作的抽象,例如一个人会跑,游泳等,是动态的,由一个或几个步骤按照一定的顺序组合而成。面向对象的作用: 任何一种思想的作用都是把复杂变...原创 2019-04-16 21:44:38 · 482 阅读 · 1 评论 -
C. Nastya Is Transposing Matrices
C. Nastya Is Transposing Matricestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNastya came to her informatics lesson, and her t...原创 2019-03-13 21:58:20 · 532 阅读 · 0 评论 -
B. Vasya and Cornfield
outputstandard outputVasya owns a cornfield which can be defined with two integers nand d. The cornfield can be represented as rectangle with vertices having Cartesian coordinates (0,d),(d,0),(n...原创 2018-10-02 14:29:26 · 285 阅读 · 0 评论 -
D. One-Dimensional Battle Ships
outputstandard outputAlice and Bob love playing one-dimensional battle ships. They play on the field in the form of a line consisting of n square cells (that is, on a 1 × n table).At the beginni...原创 2018-09-18 22:19:14 · 427 阅读 · 0 评论 -
CF 436(DIV.2)c
C. Bustime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA bus moves along the coordinate line Ox from the point x = 0 to the point x = a. After star...原创 2018-05-24 16:42:28 · 264 阅读 · 0 评论 -
CF 464 DIV2C
C. Convenient For Everybodytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn distant future on Earth day lasts for n hours and that's why...原创 2018-03-03 16:14:52 · 208 阅读 · 0 评论 -
CF div2 C. Cave Painting
C. Cave Painting time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Imp is watching a documentary about cave painting.Some numbers, carved in原创 2018-02-19 09:47:52 · 249 阅读 · 0 评论 -
CF 441 div1a
题目:A. Classroom Watch time limit per test 1 second memory limit per test 512 megabytes input standard input output standard outputEighth-grader Vova is on duty today in the class. After classes原创 2018-01-08 15:41:28 · 155 阅读 · 0 评论 -
C. Permute Digits
C. Permute Digitstime limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputYou are given two positive integer numbers a and b. Permute (change o原创 2018-01-16 22:33:09 · 499 阅读 · 0 评论