上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 60 下一页
摘要: 题目描述 原文 The government of Byteland has decided that it is time to connect their little country to the Internet, so that all citizens can participate i 阅读全文
posted @ 2018-02-05 18:38 蒟蒻JHY 阅读(313) 评论(0) 推荐(0) 编辑
摘要: Function 时限:5s 空限:256M (都是单点) Discription 现在你有一个函数: 其中v可以被看成是一个无限大的每一个位置初始值都为0的数组。 对于一个给定的n,大(shen)葱想知道 f(n) 的期望是多少。 但是这个问题太简单了,于是他把它丢给了你。 Input 一行一个整 阅读全文
posted @ 2018-02-05 16:23 蒟蒻JHY 阅读(520) 评论(6) 推荐(0) 编辑
摘要: 题目描述 Let's denote as L(x,p)L(x,p) an infinite sequence of integers yy such that gcd(p,y)=1gcd(p,y)=1 and y>xy>x (where gcdgcd is the greatest common d 阅读全文
posted @ 2018-02-05 15:59 蒟蒻JHY 阅读(318) 评论(0) 推荐(0) 编辑
摘要: Dicription Let D(x) be the number of positive divisors of a positive integer x. For example, D(2) = 2 (2 is divisible by 1 and 2), D(6) = 4 (6 is divi 阅读全文
posted @ 2018-02-03 21:16 蒟蒻JHY 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given an integer xx . Your task is to find out how many positive integers nn ( 1<=n<=x1<=n<=x ) satisfy where a,b,pa,b,p are all known constants. 阅读全文
posted @ 2018-02-02 22:02 蒟蒻JHY 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Discription This task is very simple. Given a string S of length n and q queries each query is on the format i j k which means sort the substring cons 阅读全文
posted @ 2018-02-02 21:04 蒟蒻JHY 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 题目描述 阿申准备报名参加GT考试,准考证号为N位数X1X2....Xn(0<=Xi<=9),他不希望准考证号上出现不吉利的数字。他的不吉利数学A1A2...Am(0<=Ai<=9)有M位,不出现是指X1X2...Xn中没有恰好一段等于A1A2...Am. A1和X1可以为0 输入输出格式 输入格式 阅读全文
posted @ 2018-02-02 17:59 蒟蒻JHY 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 题目描述 This year Alex has finished school, and now he is a first-year student of Berland State University. For him it was a total surprise that even tho 阅读全文
posted @ 2018-02-02 17:17 蒟蒻JHY 阅读(377) 评论(0) 推荐(0) 编辑
摘要: Read problems statements in Mandarin and Russian. Translations in Vietnamese to be uploaded soon. Nikitosh the painter has a 1-indexed array A of N el 阅读全文
posted @ 2018-02-02 11:17 蒟蒻JHY 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 题意翻译 给定一个n个顶点,m条边的有向图。你允许从其中去掉最多一条边。 你能够去掉最多一条边就让这个图无环吗?我们称一个有向图无环,当且仅当它不包含一个环(起点和终点相同的路径)。 输入格式: 第一行两个正整数n,mn,m 2\le n\le 500,1\le m\le min(n(n-1),10 阅读全文
posted @ 2018-02-01 21:48 蒟蒻JHY 阅读(320) 评论(0) 推荐(0) 编辑
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 60 下一页