七里笑
七里笑
全部文章
WOJ
C语言基础(1)
UVa(4)
笔试(11)
归档
标签
去牛客网
登录
/
注册
七里笑的博客
全部文章
/ WOJ
(共144篇)
WOJ1274-Sum of Different Primes
A positive integer may be expressed as a sum of different prime numbers (primes), in one way or another. Given two positive integers n and k, you shou...
2017-09-08
0
628
WOJ1271-How I Wonder What You Are
One of the questions children often ask is ?How many stars are there in the sky?? Under ideal conditions, even with the naked eye, nearly eight thousa...
2017-09-08
0
485
WOJ1254-The Counting Problem
Given two integers a and b, we write the numbers between a and b, inclusive, in a list. Your task is to calculate the number of occurrences of each di...
2017-09-08
0
532
WOJ1224-City Horizon
Farmer John has taken his cows on a trip to the city! As the sun sets, the cows gaze at the city horizon and observe the beautiful silhouettes formed ...
2017-09-08
0
647
WOJ1223-Dining
Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others. Farmer John has cooked fabulou...
2017-09-08
0
591
WOJ1269-Inversion
The inversion number of an integer sequence a1, a2, . . . , an is the number of pairs (ai, aj) that satisfy i < j and ai > aj . Given n and the ...
2017-09-07
0
442
WOJ1268-Game of Connections
This is a small but ancient game. You are supposed to write down the numbers 1, 2, 3, . . . , 2n - 1, 2n consecutively in clockwise order on the groun...
2017-09-07
0
458
WOJ1265-Recaman's Sequence
The Recaman's sequence is defined by a0 = 0 ; for m > 0, am = am−1 − m if the rsulting am is positive and not already in the sequence, otherwise am...
2017-09-07
0
517
WOJ1262-Matrix
Given an n*n matrix A, whose entries Ai,j are integer numbers ( 0 <= i < n, 0 <= j < n ). An operation SHIFT at row i ( 0 <= i < n )...
2017-09-07
0
708
WOJ1240-Perfect Service
A network is composed of N computers connected by N - 1 communication links such that any two computers can be communicated via a unique route. Two co...
2017-09-07
0
433
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页