随笔分类 - 水题
摘要:Tony最近喜欢上了龙之谷游戏,所以他想叫上他的好友组建一个公会来一起享受这款游戏。 Tony一共有n 个好友,他可以叫上任意k (1<=k<=n )个好友来组建公会,并且所有好友都会答应他的请求。问Tony一共可以有多少种方案组建这个公会? 只要不是完全相同的人组建的方案视为不同方案,并且Tony
阅读全文
摘要:时间过得好快啊,SHU计算机学院又有新的一批小朋友们进来了。2016级的同学想必也是非常喜欢计算机学院的,于是院长想测试一下大家对计算机的喜爱程度(院长大人别查我水表)。 院长给大家一行由大写字母(A-Z)和小写字母(a-z)组成的字符串,允许同学们在这个字符串里面任意挑选若干个字符,问最多可以组成
阅读全文
摘要:《神无月》作为盛大游戏2017年的全新原创大作,其开发团队在自研实力强大的传世工作室基础之上,还有美树本晴彦等日本一线知名画师及日本游戏音乐大师崎元仁加盟参与制作。目前正在不限号内测中,有很多玩家进入到神无月的世界中。 在神无月中,有着玩家之间切磋的排位赛,其段位主要分为五大段位,从低到高依次为:新
阅读全文
摘要:在一个矩形的灰度图像上,每个像素点或者是黑色的或者是白色的。黑色像素点用1 表示,白色像素点用0 表示。现在要求你编写一个程序,计算每列上黑色像素点的个数并输出。如下图所示是一个6∗8 的黑板图像。 1 1 0 0 1 1 1 1 0 1 1 0 1 0 1 0 1 1 1 1 0 1 1 0 0
阅读全文
摘要:Description The marmots have prepared a very easy problem for this year's HC2 – this one. It involves numbers n, k and a sequence of n positive intege
阅读全文
摘要:Description A few years ago, Hitagi encountered a giant crab, who stole the whole of her body weight. Ever since, she tried to avoid contact with othe
阅读全文
摘要:Description You are given matrix with n rows and n columns filled with zeroes. You should put k ones in it in such a way that the resulting matrix is
阅读全文
摘要:Description Mike has a string s consisting of only lowercase English letters. He wants to change exactly one character from the string so that the res
阅读全文
摘要:Description You are given sequence a1, a2, ..., an of integer numbers of length n. Your task is to find such subsequence that its sum is odd and maxim
阅读全文
摘要:Description Given a positive integer n, find k integers (not necessary distinct) such that all these integers are strictly greater than 1, and their p
阅读全文
摘要:A - ι⊥l Time limit : 2sec / Memory limit : 256MB Score : 100 points Problem Statement Three poles stand evenly spaced along a line. Their heights are
阅读全文
摘要:Description Bear Limak wants to become the largest of bears, or at least to become larger than his brother Bob. Right now, Limak and Bob weigh a and b
阅读全文
摘要:Description Input The input contains a single integer a (1 ≤ a ≤ 30). Description Input The input contains a single integer a (1 ≤ a ≤ 30). Output Out
阅读全文
摘要:A - Remaining Time Time limit : 2sec / Memory limit : 256MB Score : 100 points Problem Statement Dolphin loves programming contests. Today, he will ta
阅读全文
摘要:Description Young Timofey has a birthday today! He got kit of n cubes as a birthday present from his parents. Every cube has a number ai, which is wri
阅读全文
摘要:Description Comrade Dujikov is busy choosing artists for Timofey's birthday and is recieving calls from Taymyr from Ilia-alpinist. Ilia-alpinist calls
阅读全文
摘要:Description Pashmak has fallen in love with an attractive girl called Parmida since one year ago... Today, Pashmak set up a meeting with his partner i
阅读全文
摘要:草爷要的榜Problem Description苏州大学代表队又勤奋地开始了训练。今天开了一场时长5小时的组队训练赛,苏州大学的n(1//#include#include#include#include#include#include#include#include#include#include#...
阅读全文
摘要:A. Uncowed Forces time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Uncowed Forces time
阅读全文
摘要:A. Divisibility time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Divisibility time limi
阅读全文