摘要:
T1 ISBN号码 题目描述 每一本正式出版的图书都有一个ISBN号码与之对应,ISBN码包括9位数字、1位识别码和3位分隔符, 其规定格式如“x-xxx-xxxxx-x”,其中符号“-”就是分隔符(键盘上的减号),最后一位是识别码,例如0-670-82162-4就是一个标 准的ISBN码。IS... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(239)
评论(0)
推荐(0)
摘要:
题目描述 上体育课的时候,小蛮的老师经常带着同学们一起做游戏。这次,老师带着同学们一起做传球游戏。 游戏规则是这样的:n个同学站成一个圆圈,其中的一个同学手里拿着一个球,当老师吹哨子时开始传球,每个同学可以把球传给自己左右的两个同学中的一个(左右任意),当老师在此吹哨子时,传球停止,此时,拿着球没... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(199)
评论(0)
推荐(0)
摘要:
The SUM problem can be formulated as follows: given four lists A;B;C;D of integer values, computehow many quadruplet (a; b; c; d) 2 AB C D are suc... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(125)
评论(0)
推荐(0)
摘要:
The United Nations has decided to build a new headquarters in Saint Petersburg, Russia. It will have aform of a rectangular parallelepiped and will c... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(131)
评论(0)
推荐(0)
摘要:
Stacks of Flapjacks Background Stacks and Queues are often considered the bread and butter of data structures and find use in architecture... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(172)
评论(0)
推荐(0)
摘要:
The Dole Queue In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the fo... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(159)
评论(0)
推荐(0)
摘要:
Shanghai Hypercomputers, the world's largest computer chip manufacturer, has invented a new classof nanoparticles called Amphiphilic Carbon Molecules... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(370)
评论(0)
推荐(0)
摘要:
As you may know from the comic \Asterix and the Chieftain's Shield", Gergovia consists of one street,and every inhabitant of the city is a wine sales... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(141)
评论(0)
推荐(0)
摘要:
此处为前三题,第四题将单独发布 火柴棒等式 题目描述 给你n根火柴棍,你可以拼出多少个形如“A+B=C”的等式?等式中的A、B、C是用火柴棍拼出的整数(若该数非零,则最高位不能是0)。用火柴棍拼数字0-9的拼法如图所示: 注意: 加号与等号各自需要两根火柴棍 如果A≠B,则A+... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(194)
评论(0)
推荐(0)
摘要:
Before being an ubiquous communications gadget, a mobilewas just a structure made of strings and wires suspendingcolourfull things. This kind of mobi... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(149)
评论(0)
推荐(0)
摘要:
We would like to place n rooks, 1 n 5000, on a n nboard subject to the following restrictions• The i-th rook can only be placed within the rect... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(145)
评论(0)
推荐(0)
摘要:
题目描述 给你n根火柴棍,你可以拼出多少个形如“A+B=C”的等式?等式中的A、B、C是用火柴棍拼出的整数(若该数非零,则最高位不能是0)。用火柴棍拼数字0-9的拼法如图所示: 注意: 加号与等号各自需要两根火柴棍 如果A≠B,则A+B=C与B+A=C视为不同的等式(A、B、C>=0) ... 阅读全文
posted @ 2016-05-02 16:44
SBSOI
阅读(325)
评论(0)
推荐(0)
摘要:
A common typing error is to place the hands on the keyboard one row to the right of the correct position. So ‘Q’ is typed as ‘W’ and ‘J’ is typed as ... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(156)
评论(0)
推荐(0)
摘要:
quicksum Queation: Given a string of digits, find the minimum number of additions required for the string to equal some target number. Each addition ... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(180)
评论(0)
推荐(0)
摘要:
T1 生活大爆炸版石头剪刀布 题目描述 石头剪刀布是常见的猜拳游戏:石头胜剪刀,剪刀胜布,布胜石头。如果两个人出拳一样,则不分胜负。在《生活大爆炸》第二季第8 集中出现了一种石头剪刀布的升级版游戏。 升级版游戏在传统的石头剪刀布游戏的基础上,增加了两个新手势: 斯波克:《星际迷航》主角之一。 ... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(114)
评论(0)
推荐(0)
摘要:
T1 计数问题 题目描述 试计算在区间 1 到 n 的所有整数中,数字 x(0 ≤ x ≤ 9)共出现了多少次?例如,在 1 到 11 中,即在 1、2、3、4、5、6、7、8、9、10、11 中,数字 1 出现了 4 次。 输入输出格式 输入格式: 输入文件名为 count.in。 输入共 ... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(324)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 struct node 5 { 6 int fat,lson,rson; 7 double wei; 8 }tree[500]; 9 double w[10],lim,ans; 10 int... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(124)
评论(0)
推荐(0)
摘要:
1 /*UVa 11292 Dragon of Loowater*/ 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 int n,m; 8 int main(){ 9 while(s... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(94)
评论(0)
推荐(0)
摘要:
然而等于是默了一遍标程 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 int n; 8 bool bal(int &w){ 9 int w1,w2,d1,d... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(87)
评论(0)
推荐(0)
摘要:
quicksum Given a string of digits, find the minimum number of additions required for the string to equal some target number. Each addition is the equ... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(146)
评论(0)
推荐(0)
摘要:
Bandwidth Given a graph (V,E) where V is a set of nodes and E is a set of arcs in VxV, and an ordering on the elements in V, then the bandwid... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(176)
评论(0)
推荐(0)
摘要:
Krypton Factor You have been employed by the organisers of a Super Krypton Factor Contest in which contestants have very high mental and phy... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(102)
评论(0)
推荐(0)
摘要:
Prime Ring Problem A ring is composed of n (even number) circles as shown in diagram. Put natural numbers into each circle separately, and... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(142)
评论(0)
推荐(0)
摘要:
1 #include 2 int a[30010],b[30010]; 3 int main() 4 { 5 int i,j,k,l,m,n,x,y,z; 6 while (scanf("%d",&k)==1) 7 { 8 n=0; 9... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(118)
评论(0)
推荐(0)
摘要:
1 #include 2 int a[20]; 3 int main() 4 { 5 int i,j,k,m,n,p,t,q,y,z; 6 long long ans,x; 7 t=0; 8 while (scanf("%d",&n)==1) ... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(84)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 bool b; 5 bool ok(int x,int y) 6 { 7 int p,q,i; 8 if (x=100000) break; 39 if (ok(x,y... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(196)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 struct circ 5 { 6 double x,y,r; 7 }a[1010]; 8 bool vis[1010]; 9 int n; 10 double ans_l,ans_r; 11 do... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(125)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 queue q1,q2; 7 stack s; 8 int first[100010],next[400010],to[400010],d... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(98)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 using namespace std; 5 int map[60][60],cnt[60]; 6 queue q; 7 char s[10]; 8 int main() 9 { 10 int i,... 阅读全文
posted @ 2016-05-02 16:43
SBSOI
阅读(155)
评论(0)
推荐(0)
摘要:
OJ地址:洛谷P1981 CODEVS 3292 正常写法是用栈 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 char c[200000... 阅读全文
posted @ 2016-05-02 16:42
SBSOI
阅读(458)
评论(0)
推荐(0)

浙公网安备 33010602011771号