七里笑
七里笑
全部文章
分类
C语言基础(1)
UVa(4)
WOJ(144)
笔试(11)
归档
标签
去牛客网
登录
/
注册
七里笑的博客
全部文章
(共160篇)
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
WOJ1228-The Flower Garden
Imagine Betsy's surprise as she rounded the barn and discovered that Farmer John had built a secret greenhouse that was now brimming with gorgeous f...
2017-09-07
0
571
WOJ1225-Catch That Cow
Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 <= N <= 100,000)...
2017-09-07
0
781
WOJ1229-Cow Counting
Farmer John wants to label his N (1 <= N <= 1,000,000) cows, but cows don't like having the digit L (0 <= L <= 9) written on them, so he...
2017-09-07
0
899
WOJ1211-表达式的值
如果给你一个只包含+,-,*,/,(,),及非负整数数字和空格组成的字符串表达式,你能编程计算它的值吗? 输入格式 第一行为一个N,表示测试样例数。 以下N行每个样例为一个字符串表达式,每个表达式至少一个字符,可能包含空格,但长度不超过50. 输出格式 对每一测试样例,输出它的值。 样例输...
2017-09-07
0
663
WOJ1210-Common Subsequence
A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = < x1, x2, ..., xm > an...
2017-09-07
0
421
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页