11 2020 档案

摘要:The twenty-first century is a biology-technology developing century. We know that a gene is made of DNA. The nucleotide bases from which DNA is built 阅读全文
posted @ 2020-11-30 19:34 BlackSnow 阅读(225) 评论(0) 推荐(0) 编辑
摘要:The students of the HEU are maneuvering for their military training. The red army and the blue army are at war today. The blue army finds that Little 阅读全文
posted @ 2020-11-29 20:27 BlackSnow 阅读(68) 评论(0) 推荐(0) 编辑
摘要:The students of the HEU are maneuvering for their military training. The red army and the blue army are at war today. The blue army finds that Little 阅读全文
posted @ 2020-11-28 23:11 BlackSnow 阅读(68) 评论(0) 推荐(0) 编辑
摘要:题目小数部分的位数有限的小数被称为有限小数。例如0.123450.12345是有限小数,1/3,Π是无限小数。给你一个正整数n,请你判断1/n是否为有限小数,如果是输出"YES",否则输出"NO"(不包含引号) 思路:当n为2的m次方或者是2和5的公倍数时,1/n就是有限小数;否则是无限小数。 #i 阅读全文
posted @ 2020-11-28 01:16 BlackSnow 阅读(65) 评论(0) 推荐(0) 编辑
摘要:题目描述 现在你有NN堆硬币,每堆硬币中都有NN枚硬币。其中N-1N−1堆硬币中每枚硬币的重量都为1g1g,只有剩下的一堆硬币中每枚硬币的重量为2g2g,但你并不知道哪堆硬币中的硬币重量为2g2g。 你有一个能称任意重量的电子秤,在最优策略下,请问最多需要称多少次就能知道哪堆硬币中的硬币重量为2g2 阅读全文
posted @ 2020-11-28 01:12 BlackSnow 阅读(138) 评论(0) 推荐(0) 编辑
摘要:题目描述 有一个长度且只包含大写字母的单词。我们在写作时不小心把它写错了,写错的单词与正确的单词中每种字母的个数相同,那么有多少种不同的写错的单词呢? 输入描述: 输入一行字符串,长度 且只包含大写字母 输出描述: 输出一个整数,即答案 示例1 输入 复制 EYE 输出 复制 2 说明 写错的单词有 阅读全文
posted @ 2020-11-28 00:39 BlackSnow 阅读(158) 评论(0) 推荐(0) 编辑
摘要:一个规则的实心十二面体,它的 20个顶点标出世界著名的20个城市,你从一个城市出发经过每个城市刚好一次后回到出发的城市。 Input前20行的第i行有3个数,表示与第i个城市相邻的3个城市.第20行以后每行有1个数m,m<=20,m>=1.m=0退出. Output输出从第m个城市出发经过每个城市1 阅读全文
posted @ 2020-11-25 20:22 BlackSnow 阅读(71) 评论(0) 推荐(0) 编辑
摘要:The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 sliding tiles, eac 阅读全文
posted @ 2020-11-23 19:22 BlackSnow 阅读(178) 评论(1) 推荐(0) 编辑
摘要:《Journey to the West》(also 《Monkey》) is one of the Four Great Classical Novels of Chinese literature. It was written by Wu Cheng'en during the Ming Dy 阅读全文
posted @ 2020-11-21 20:17 BlackSnow 阅读(193) 评论(1) 推荐(0) 编辑
摘要:公主被恶人抓走,被关押在牢房的某个地方。牢房用N*M (N, M <= 200)的矩阵来表示。矩阵中的每项可以代表道路(@)、墙壁(#)、和守卫(x)。 英勇的骑士(r)决定孤身一人去拯救公主(a)。我们假设拯救成功的表示是“骑士到达了公主所在的位置”。由于在通往公主所在位置的道路中可能遇到守卫,骑 阅读全文
posted @ 2020-11-20 21:05 BlackSnow 阅读(155) 评论(0) 推荐(0) 编辑
摘要:已知一张地图(以二维矩阵的形式表示)以及佐助和鸣人的位置。地图上的每个位置都可以走到,只不过有些位置上有大蛇丸的手下,需要先打败大蛇丸的手下才能到这些位置。鸣人有一定数量的查克拉,每一个单位的查克拉可以打败一个大蛇丸的手下。假设鸣人可以往上下左右四个方向移动,每移动一个距离需要花费1个单位时间,打败 阅读全文
posted @ 2020-11-19 22:01 BlackSnow 阅读(128) 评论(0) 推荐(0) 编辑
摘要:定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, }; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要 阅读全文
posted @ 2020-11-18 18:56 BlackSnow 阅读(121) 评论(0) 推荐(0) 编辑
摘要:路飞他们伟大航路行程的起点是罗格镇,终点是拉夫德鲁(那里藏匿着“唯一的大秘宝”——ONE PIECE)。而航程中间,则是各式各样的岛屿。 因为伟大航路上的气候十分异常,所以来往任意两个岛屿之间的时间差别很大,从A岛到B岛可能需要1天,而从B岛到A岛则可能需要1年。当然,任意两个岛之间的航行时间虽然差 阅读全文
posted @ 2020-11-17 21:12 BlackSnow 阅读(388) 评论(1) 推荐(0) 编辑
摘要:Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a 阅读全文
posted @ 2020-11-16 20:23 BlackSnow 阅读(117) 评论(0) 推荐(0) 编辑
摘要:大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 ( 阅读全文
posted @ 2020-11-16 18:53 BlackSnow 阅读(123) 评论(0) 推荐(0) 编辑
摘要:The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvCompworkswithonelargerectangularregionoflandatat 阅读全文
posted @ 2020-11-14 19:43 BlackSnow 阅读(104) 评论(0) 推荐(0) 编辑
摘要:Joe works in a maze. Unfortunately, portions of the maze havecaught on re, and the owner of the maze neglected to create a reescape plan. Help Joe esc 阅读全文
posted @ 2020-11-13 22:21 BlackSnow 阅读(95) 评论(0) 推荐(0) 编辑
摘要:You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot i (1 ≤ i ≤ 2 阅读全文
posted @ 2020-11-12 20:54 BlackSnow 阅读(89) 评论(0) 推荐(0) 编辑
摘要:题目描述 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝着某个方向跳下去, 阅读全文
posted @ 2020-11-10 20:35 BlackSnow 阅读(95) 评论(0) 推荐(0) 编辑
摘要:A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker c 阅读全文
posted @ 2020-11-08 20:18 BlackSnow 阅读(55) 评论(0) 推荐(0) 编辑
摘要:https://ac.nowcoder.com/acm/contest/8282/A y|x 是能够整除的意思 找规律 1,1能被所有数字整除,所以第一个位置我们放最小的1,num[1]=12,2整除1,所以放比num[1]大的数,放最小的2,num[2]=2,其实所有的质数都只能整除1,所以质数放 阅读全文
posted @ 2020-11-08 19:19 BlackSnow 阅读(86) 评论(0) 推荐(0) 编辑
摘要:https://ac.nowcoder.com/acm/contest/8282/B 时间限制:C/C++ 2秒,其他语言4秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 蒟蒻 brz\text{brz}brz 买了 n 个雪糕 阅读全文
posted @ 2020-11-06 22:49 BlackSnow 阅读(131) 评论(0) 推荐(0) 编辑
摘要:The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room 阅读全文
posted @ 2020-11-06 18:59 BlackSnow 阅读(86) 评论(0) 推荐(0) 编辑
摘要:Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You m 阅读全文
posted @ 2020-11-04 18:38 BlackSnow 阅读(75) 评论(0) 推荐(0) 编辑
摘要:Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You m 阅读全文
posted @ 2020-11-03 20:37 BlackSnow 阅读(140) 评论(0) 推荐(0) 编辑
摘要:Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which the 阅读全文
posted @ 2020-11-02 22:33 BlackSnow 阅读(75) 评论(0) 推荐(0) 编辑
摘要:在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在 阅读全文
posted @ 2020-11-01 23:13 BlackSnow 阅读(65) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示