随笔分类 - 数学
摘要:Daylight Saving Time Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description Last month, xiaodao together
阅读全文
摘要:Code Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description WLD likes playing with codes.One day he is w
阅读全文
摘要:Counting Divisors Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Problem Description In mathematics, the function
阅读全文
摘要:TrickGCD Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Problem Description You are given an array A , and Zhu wan
阅读全文
摘要:简单GCD问题(一) Time Limit: 1500/500MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others) 秦队长给你两个长度为nn的序列AA和BB,第ii个数分别为aiai和bibi请你求出∑1≤i,j≤ngcd(i,j)ai
阅读全文
摘要:Xiao Ming's Hope Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description Xiao Ming likes counting numbers
阅读全文
摘要:#1196 : 高斯消元·二 #1196 : 高斯消元·二 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 在上一回中,小Hi和小Ho趁着便利店打折,买了一大堆零食。当他们结账后,看到便利店门口还有其他的活动。 店主:买了东西还可以参加游戏活动哦,如果能够完成游戏还有额
阅读全文
摘要:E. Pretty Song time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output E. Pretty Song time limit
阅读全文
摘要:题目链接:http://codeforces.com/contest/785 A. Anton and Polyhedrons time limit per test 2 seconds memory limit per test 256 megabytes input standard input
阅读全文
摘要:C. Tennis Championship time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Famous Brazil cit
阅读全文
摘要:题目链接:Taxes D. Taxes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output 题目链接:Taxes D. Taxes
阅读全文
摘要:Fibonacci Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others) Problem Description We know the Fibonacci SequenceF1=1,F2=1
阅读全文
摘要:F. Video Cards time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Little Vlad is fond of pop
阅读全文
摘要:题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4763 题意:给你一个区间L,R;求区间所有数的并,和或的答案; 思路:两个数的二进制长度不一样
阅读全文
摘要:C. Dreamoon and Sums time limit per test 1.5 seconds memory limit per test 256 megabytes input standard input output standard output Dreamoon loves su
阅读全文
摘要:E. Vanya and Field time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Vanya and Field ti
阅读全文
摘要:D. Vanya and Computer Game time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vanya and his
阅读全文
摘要:Harmonic Number (II) Description I was trying to solve problem '1234 - Harmonic Number', I wrote the following code long long H( int n ) { long long r
阅读全文
摘要:n!的长度为 ll ans = log10(2*pi*n)/2 + n*(log10(n/exp(1.0)))+1; n!的长度为 ll ans = log10(2*pi*n)/2 + n*(log10(n/exp(1.0)))+1;
阅读全文
摘要:D. Road to Post Office time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasiliy has a car
阅读全文