Given n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively prime if there are ...
分类:
其他好文 时间:
2018-07-25 20:10:32
阅读次数:
177
Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7 ...
分类:
其他好文 时间:
2018-07-25 11:30:56
阅读次数:
165
题目描述 There are infinitely many cards, numbered 1, 2, 3, … Initially, Cards x1, x2, …, xN are face up, and the others are face down.Snuke can perform t ...
分类:
其他好文 时间:
2018-07-25 01:10:08
阅读次数:
230
Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7 ...
分类:
其他好文 时间:
2018-07-24 19:30:11
阅读次数:
158
第7章 7.13-1调和平均数 //7.13-1 excise.cpp 调和平均数 #include <iostream> double calculate(double a,double b); using namespace std; main(){ double x,y,z; cout<<"p ...
分类:
编程语言 时间:
2018-07-24 13:56:06
阅读次数:
140
Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less t ...
分类:
其他好文 时间:
2018-07-23 15:08:31
阅读次数:
171
Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ... shows the first 11 ugly numbers. ...
分类:
其他好文 时间:
2018-07-23 14:39:02
阅读次数:
134
快速幂入门。。。 wa一次是因为没认识到p不能为质数 c++ / author:hdsdogge begin: end: cost: / include include include include include include include include include include i ...
分类:
其他好文 时间:
2018-07-22 14:12:41
阅读次数:
124
Problem DescriptionIn this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n. Input The input will consist of a series of integers n, on ...
分类:
其他好文 时间:
2018-07-22 11:31:03
阅读次数:
118
Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in ...
分类:
其他好文 时间:
2018-07-22 11:27:34
阅读次数:
105