摘要: (啊啊啊终于补到了今天的作业了) 本题地址: http://www.luogu.org/problem/show?pid=1058 题目描述 小渊是个聪明的孩子,他经常会给周围的小朋友们将写自己认为有趣的内容。最近,他准备给小朋友们讲解立体图,请你帮他画出立体图。小渊有一块面积为m*n的矩形区域,... 阅读全文
posted @ 2016-05-02 16:44 SBSOI 阅读(351) 评论(0) 推荐(0) 编辑
摘要: (第一次写题解,随意喷) (只是前一天的作业哈) (先凑个数) 题目描述 上体育课的时候,小蛮的老师经常带着同学们一起做游戏。这次,老师带着同学们一起做传球游戏。游戏规则是这样的:n个同学站成一个圆圈,其中的一个同学手里拿着一个球,当老师吹哨子时开始传球,每个同学可以把球传给自己左右的两个同学中的... 阅读全文
posted @ 2016-05-02 16:44 SBSOI 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 题目描述 上体育课的时候,小蛮的老师经常带着同学们一起做游戏。这次,老师带着同学们一起做传球游戏。 游戏规则是这样的:n个同学站成一个圆圈,其中的一个同学手里拿着一个球,当老师吹哨子时开始传球,每个同学可以把球传给自己左右的两个同学中的一个(左右任意),当老师在此吹哨子时,传球停止,此时,拿着球没... 阅读全文
posted @ 2016-05-02 16:44 SBSOI 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 给出一个n(n #include #include using namespace std; int n; void cheng (int a[2][2],int b[2][2]) { int c[2][2]; memset(c,0,sizeof(c)); for (i... 阅读全文
posted @ 2016-05-02 16:44 SBSOI 阅读(162) 评论(0) 推荐(0) 编辑
摘要: T1 ISBN号码 题目描述 每一本正式出版的图书都有一个ISBN号码与之对应,ISBN码包括9位数字、1位识别码和3位分隔符, 其规定格式如“x-xxx-xxxxx-x”,其中符号“-”就是分隔符(键盘上的减号),最后一位是识别码,例如0-670-82162-4就是一个标 准的ISBN码。IS... 阅读全文
posted @ 2016-05-02 16:44 SBSOI 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 题目描述 上体育课的时候,小蛮的老师经常带着同学们一起做游戏。这次,老师带着同学们一起做传球游戏。 游戏规则是这样的:n个同学站成一个圆圈,其中的一个同学手里拿着一个球,当老师吹哨子时开始传球,每个同学可以把球传给自己左右的两个同学中的一个(左右任意),当老师在此吹哨子时,传球停止,此时,拿着球没... 阅读全文
posted @ 2016-05-02 16:44 SBSOI 阅读(191) 评论(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 阅读(137) 评论(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 阅读(112) 评论(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 阅读(120) 评论(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 阅读(164) 评论(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 阅读(153) 评论(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 阅读(122) 评论(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 阅读(145) 评论(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 阅读(79) 评论(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 阅读(184) 评论(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 阅读(120) 评论(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 阅读(87) 评论(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 阅读(110) 评论(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 阅读(122) 评论(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 阅读(86) 评论(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 阅读(76) 评论(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 阅读(138) 评论(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 阅读(157) 评论(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 阅读(94) 评论(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 阅读(299) 评论(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 阅读(118) 评论(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 阅读(144) 评论(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 阅读(173) 评论(0) 推荐(0) 编辑
摘要: T1 生活大爆炸版石头剪刀布 题目描述 石头剪刀布是常见的猜拳游戏:石头胜剪刀,剪刀胜布,布胜石头。如果两个人出拳一样,则不分胜负。在《生活大爆炸》第二季第8 集中出现了一种石头剪刀布的升级版游戏。 升级版游戏在传统的石头剪刀布游戏的基础上,增加了两个新手势: 斯波克:《星际迷航》主角之一。 ... 阅读全文
posted @ 2016-05-02 16:43 SBSOI 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 计算(calc.cpp) 【问题描述】 小明在你的帮助下,破密了Ferrari设的密码门,正要往前走,突然又出现了一个密码门,门上有一个算式,其中只有“(”,“)”,“0-9”,“+”,“-”,“*”,“/”,“^”求出的值就是密码。小明数学学得不好,还需你帮他的忙。(“/”用整数除法) 【输入】... 阅读全文
posted @ 2016-05-02 16:42 SBSOI 阅读(237) 评论(0) 推荐(0) 编辑