摘要: 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 阅读(60) 评论(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 阅读(94) 评论(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 阅读(160) 评论(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 阅读(95) 评论(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 阅读(81) 评论(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 阅读(154) 评论(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 阅读(76) 评论(0) 推荐(0)
摘要: 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在 阅读全文
posted @ 2020-11-01 23:13 BlackSnow 阅读(72) 评论(0) 推荐(0)
摘要: 题目背景 kotori 有 n 个可同时使用的设备。 题目描述 第 i 个设备每秒消耗ai个单位能量。能量的使用是连续的,也就是说能量不是某时刻突然消耗的,而是匀速消耗。也就是说,对于任意实数 ,在 k 秒内消耗的能量均为k*ai 单位。在开始的时候第 i 个设备里存储着bi个单位能量。 同时 ko 阅读全文
posted @ 2020-10-30 20:00 BlackSnow 阅读(204) 评论(0) 推荐(0)
摘要: 题目描述 当一个人从银行贷款后,在一段时间内他(她)将不得不每月偿还固定的分期付款。这个问题要求计算出贷款者向银行支付的利率。假设利率按月累计。 输入格式 三个用空格隔开的正整数。 第一个整数表示贷款的原值,第二个整数表示每月支付的分期付款金额,第三个整数表示分期付款还清贷款所需的总月数。 输出格式 阅读全文
posted @ 2020-10-30 18:22 BlackSnow 阅读(165) 评论(0) 推荐(0)