摘要:
Problem Statement You are given a positive integer N. Find the number of the pairs of integers u and v(0≦u,v≦N) such that there exist two non-negative 阅读全文
摘要:
Problem Statement There are N cities. There are also K roads and L railways, extending between the cities. The i-th road bidirectionally connects the 阅读全文
摘要:
Problem Statement You are given an integer N. Find the number of the positive divisors of N!, modulo 10^9+7. Constraints 1≤N≤10^3 Input The input is g 阅读全文
摘要:
Palindromic characteristics of string s with length |s| is a sequence of |s|integers, where k-th number is the total number of non-empty substrings of 阅读全文
摘要:
/*函数:r进制转换成10进制*/ int rToTen(string n,int r){ //将r进制转为10进制,n是该r进制的字符串表示 int len = n.length(); int ans = 0; int i = 0; while(i<len){ ans*=r; ans+=n[i]- 阅读全文
摘要:
Misha and Grisha are funny boys, so they like to use new underground. The underground has n stations connected with n - 1 routes so that each route co 阅读全文
摘要:
题目描述: AS WE ALL KNOW, lfx是咱们组的神仙,但是mxh想考一考lfx一个简单的问题,以此看一下lfx到底是不是神仙。但是lfx要准备补考,于是请你来帮忙回答问题: 给定一个整数N,和N个整数ai(1<=i<=n),mxh有n个询问,即第i个询问(1<=i<=n)是数组a从1~i 阅读全文
摘要:
题目描述: 在lfx高尚又有趣的灵魂的影响下,我想出一个简短而优美的题目。 This is too simple a question. Given an integer N, find the value of this formula C (n, 0)+C (n, 1)+C (n, 2)+... 阅读全文