自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 CCF 201612-2 工资计算

试题编号: 201612-2 试题名称: 工资计算 时间限制: 1.0s 内存限制: 256.0MB 问题描述: 问题描述   小明的公司每个月给小明发工资,而小明拿到的工资为交完个人所得税之后的工资。假设他一个月的税前工资(扣除五险一金后、未扣税前的工资)为S元,则他应交的个人所得税按如下公式计算:   1) 个人所得税起征点为...

2018-07-29 12:13:12 148

原创 CCF 201612-1 中间数

试题编号: 201612-1 试题名称: 中间数 时间限制: 1.0s 内存限制: 256.0MB 问题描述: 问题描述   在一个整数序列a1, a2, …, an中,如果存在某个数,大于它的整数数量等于小于它的整数数量,则称其为中间数。在一个序列中,可能存在多个下标不相同的中间数,这些中间数的值是相同的。   给定一个整数序列...

2018-07-29 11:13:12 200

原创 CCF 201703-4 地铁修建(迪杰斯特拉或最小生成树)

                                                                                  问题描述试题编号: 201703-4 试题名称: 地铁修建 时间限制: 1.0s 内存限制: 256.0MB 问题描述: 问题描述   A市有n个交通枢纽,其中1号和n号...

2018-07-29 11:03:34 425

原创 CCF 201703-2 学生排队

问题描述  体育老师小明要将自己班上的学生按顺序排队。他首先让学生按学号从小到大的顺序排成一排,学号小的排在前面,然后进行多次调整。一次调整小明可能让一位同学出队,向前或者向后移动一段距离后再插入队列。  例如,下面给出了一组移动的例子,例子中学生的人数为8人。  0)初始队列中学生的学号依次为1, 2, 3, 4, 5, 6, 7, 8;  1)第一次调整,命令为“3号同学向后移动2”...

2018-07-21 11:22:26 120

原创 CCF 201703-1 分蛋糕

问题描述  小明今天生日,他有n块蛋糕要分给朋友们吃,这n块蛋糕(编号为1到n)的重量分别为a1, a2, …, an。小明想分给每个朋友至少重量为k的蛋糕。小明的朋友们已经排好队准备领蛋糕,对于每个朋友,小明总是先将自己手中编号最小的蛋糕分给他,当这个朋友所分得蛋糕的重量不到k时,再继续将剩下的蛋糕中编号最小的给他,直到小明的蛋糕分完或者这个朋友分到的蛋糕的总重量大于等于k。  请问当小明...

2018-07-21 11:11:39 142

原创 CCF 201709-5 除法

问题描述  小葱喜欢除法,所以他给了你N个数a1, a2, ⋯, aN,并且希望你执行M次操作,每次操作可能有以下两种:  给你三个数l, r, v,你需要将al, al+1, ⋯, ar之间所有v的倍数除以v。  给你两个数l, r,你需要回答al + al+1 + ⋯ + ar的值是多少。输入格式  第一行两个整数N, M,代表数的个数和操作的次数。  接下来一行N个整数,代...

2018-07-20 12:42:32 132

原创 CCF 201709-2 公共钥匙盒

问题描述试题编号: 201709-2 试题名称: 公共钥匙盒 时间限制: 1.0s 内存限制: 256.0MB 问题描述: 问题描述   有一个学校的老师共用N个教室,按照规定,所有的钥匙都必须放在公共钥匙盒里,老师不能带钥匙回家。每次老师上课前,都从公共钥匙盒里找到自己上课的教室的钥匙去开门,上完课后,再将钥匙放回到钥匙盒中。 ...

2018-07-19 10:54:05 162

原创 CCF 201709-1 打酱油

问题描述试题编号:201709-1试题名称:打酱油时间限制:1.0s内存限制:256.0MB问题描述:问题描述  小明带着N元钱去买酱油。酱油10块钱一瓶,商家进行促销,每买3瓶送1瓶,或者每买5瓶送2瓶。请问小明最多可以得到多少瓶酱油。输入格式  输入的第一行包含一个整数N,表示小明可用于买酱油的钱数。N是10的整数倍,N不超过300。输出格式  输出一个整数,表示小明最多可以得到多少瓶酱油。样...

2018-07-16 10:56:44 148

原创 German Collegiate Programming Contest 2015: K. Upside down primes

Last night, I must have dropped my alarm clock. When the alarm went off in the morning, it showed 51:8051:80instead of 08:1508:15. This made me realize that if you rotate a seven segment display like ...

2018-07-15 17:31:16 152

原创 German Collegiate Programming Contest 2015: I. Milling machines

A fab lab is an open, small-scale workshop where you can create or fabricate almost anything you want mostly by using computer controlled tools like a laser cutter or a 3D printer. The FAU fab lab rec...

2018-07-15 17:28:52 257

原创 German Collegiate Programming Contest 2015:G. Extreme Sort

John likes sorting algorithms very much. He has studied quicksort, merge sort, radix sort, and many more.A long time ago he has written a lock-free parallel string sorting program. It was a combinatio...

2018-07-15 17:26:17 157

原创 German Collegiate Programming Contest 2015 :

Spike the bounty hunter is tracking another criminal through space. Luckily for him hyperspace travel has made the task of visiting several planets a lot easier. Each planet has a number of Astral Gat...

2018-07-15 17:24:57 213

原创 Benelux Algorithm Programming Contest 2014 Final: B. Button Bashing

You recently acquired a new microwave, and noticed that it provides a large number of buttons to be able to quickly specify the time that the microwave should be running for. There are buttons both fo...

2018-07-15 17:22:56 167

原创 Benelux Algorithm Programming Contest 2014 Final:G. Growling Gears

The Best Acceleration Production Company specializes in multi-gear engines. The performance of an engine in a certain gear, measured in the amount of torque produced, is not constant: the amount of to...

2018-07-15 17:21:39 148

原创 Benelux Algorithm Programming Contest 2014 Final: J. Jury Jeopardy

What would a programming contest be without a problem featuring an ASCII-maze? Do not despair: one of the judges has designed such a problem.The problem is about a maze that has exactly one entrance/e...

2018-07-15 17:18:54 141

原创 BAPC 2014 Preliminary B. Failing Components

As a jury member of the Best Architectural Planning Contest, you are tasked with scoring the reliability of a system. All systems entered in the contest consist of a number of components which depend ...

2018-07-15 17:14:04 154

原创 NEUQ OJ 1666: Pupils Redistribution

题目描述:In Berland each high school student is characterized by academic performance — integer value between 1 and 5.In high school 0xFF there are two groups of pupils: the group A and the group B. Each ...

2018-07-15 17:10:34 184

原创 NEUQ OJ 1233: 幸运儿

题目描述:n 个人围成一圈, 并依次编号1~n,。从编号为1 的人开始,按顺时针方向每隔一人选出一个,剩下的人重新围成一圈,如此循环直到剩下两人,这剩下的两人就是幸运儿。如果你想成为最后两个幸运儿,请问开始时应该站在什么位置?(设3<=n<=50)输入:有多个测试序列。每行是开始时的人数n输出:第1 行是选出顺序,第2 行是两名幸运儿的开始位置(按升序排列),位置编号之间用一个空格分开...

2018-07-14 09:16:17 1209 2

超市管理系统的设计与实现(附数据库和论文)

主要是基于C#做的一个超市管理系统,有收银员登录,收钱、结账、VIP、进货、出货、交易明细等。主要是基于C#做的一个超市管理系统,有收银员登录,收钱、结账、VIP、进货、出货、交易明细等。

2017-07-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除