Car Parking. Task Description IOI 2000 Beijing PROBLEM

Size: px
Start display at page:

Download "Car Parking. Task Description IOI 2000 Beijing PROBLEM"

Transcription

1 CAR Car Parking PROBLEM A parking center by the Great Wall has a long row of parking places. One end of the row is considered left and the other end is considered right. The row is full of cars. Each car has a type and several cars may be of the same type. The types are identified by integer values. A number of workers decide to order the cars parked in the row in ascending order from left to right by the car types using the following method. In what is called a round, each of the workers can simultaneously drive one car out of its place and then park it in a place from where a car has been moved out in the same round. It may be that some workers are not moving a car in a round. For efficiency, a small number of rounds is preferable. Suppose that N is the number of cars and W is the number of workers. You are to write a program which, given the types of the parked cars and the number of workers, finds such a way to sort the cars that the number of rounds needed is at most N /( W 1), that is N/(W-1) rounded up. The minimal number of rounds is never greater than N /( W 1). Consider the following example. There are 10 parked cars of types 1,2,, and with workers. The initial placement of the cars from left to right identified by their types is The minimal number of rounds is three, and the rounds can be implemented so that the placement after each round is as follows: after round 1, after round 2, and 2 2 after round. INPUT The input file name is CAR.IN. The first line in the input file contains three integers. The first integer is the number of cars N, 2 N The second integer is the number of types M, 2 M 50. The car types are identified by the integers from 1 to M. There is at least one car of each type. The third integer is the number of workers W, 2 W M. The second line contains N integers, where the ith integer is the type of the ith car in the row, starting from the left end of the row.

2 CAR OUTPUT The output file name is CAR.OUT. The first line of the output file contains one integer R, which is the number of rounds in the solution. The next R lines describe the rounds ordered from 1 to R. In each line, the first integer is the number of cars C, which are moved in that round. After that follow 2C integers, identifying car positions. The car positions are identified by the integers from 1 to N starting at the left end. The first two are a pair describing how one of the cars is moved: the first integer is the position from the left end before the round and the second is the position from the left after the round. The next two integers are a pair describing how another car is moved, and so on. There may be several different solutions for these R lines, and your program only needs to output one of them. EXAMPLE INPUT AND OUTPUT CAR.IN CAR.OUT PARTIAL CREDIT Suppose that your program s output for an evaluation run is R and N /( W 1) is Q. If in your program s output the R rounds are not described correctly or they do not produce the desired order for the cars, then your score is 0. Otherwise, your score will be calculated from the maximum score as follows.!"r Q!"R=Q+1!"R=Q+2!"R>=Q+ 100% Score 50% Score 20% Score 0% Score

3 MEDIAN PROBLEM Median Strength A new space experiment involves N objects, labeled from 1 to N. It is known that N is odd. Each object has a distinct but unknown strength expressed by a natural number. For each strength Y, it holds that 1 Y N. The object with median strength is the object X such that there are equally many objects having smaller strength than X as there are objects having greater strength than X. You are to write a program that determines the object with median strength. Unfortunately, the only way to compare the strengths is by a device that, given three distinct objects, determines the object with median strength among the three objects. LIBRARY You are given a library named device with three operations: GetN, to be called once at the beginning without arguments; it returns the value of N. Med, called with three distinct object labels as arguments; it returns the label of the object with median (middle) strength. Answer, to be called once at the end, with one object label as argument; it reports the label of object X with median strength and properly ends the execution of your program. The library device produces two text files: MEDIAN.OUT and MEDIAN.LOG. The first line of file MEDIAN.OUT contains one integer: the label of the object passed to the library in the call to Answer. The second line will contain one integer: the number of calls to Med that have been performed by your program. The dialogue between your program and the library is recorded in the file MEDIAN.LOG. Instruction for Pascal programmers: Include the import statement uses device; in the source code. Instructions for C/C++ programmers: Use the instruction #include device.h in the source code, create a project MEDIAN.PRJ and add the files MEDIAN.C (MEDIAN.CPP) and DEVICE.OBJ into this project.

4 MEDIAN EXPERIMENTATION You can experiment with the library by creating a text file DEVICE.IN. The file must contain two lines. The first line must contain one integer: the number of objects N. The second line must contain the integers from 1 to N in some order: the ith integer is the strength of the object with label i. EXAMPLE DEVICE.IN The file DEVICE.IN above describes an input with 5 objects and strengths as below: Label Strength Here is a correct sequence of 5 library calls: 1. GetN (in Pascal) or GetN() (in C/C++) returns Med(1,2,) returns.. Med(,,1) returns.. Med(,2,5) returns. 5. Answer() CONSTRAINTS For the number of objects N we have 5 N 199 and N is odd. For the object labels i, we have 1 i N. For the object strengths Y, we have 1 Y N and all strengths are distinct. Pascal library file name: device.tpu Pascal function and procedure declarations: function GetN: integer; function Med(x,y,z:integer):integer; procedure Answer(m:integer); C/C++ library file names: device.h, device.obj (use large memory model) C/C++ function headers: int GetN(void); int Med(int x, int y, int z); void Answer(int m); No more than 7777 calls of function Med are allowed per run. Your program must not read or write any files.

5 PALIN Palindrome PROBLEM A palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are to write a program which, given a string, determines the minimal number of characters to be inserted into the string in order to obtain a palindrome. As an example, by inserting 2 characters, the string "Abbd" can be transformed into a palindrome ("dabbad" or "AdbbdA"). However, inserting fewer than 2 characters does not produce a palindrome. INPUT The input file name is PALIN.IN. The first line contains one integer: the length of the input string N, N The second line contains one string with length N. The string is formed from uppercase letters from A to Z, lowercase letters from a to z and digits from 0 to 9. Uppercase and lowercase letters are to be considered distinct. OUTPUT The output file name is PALIN.OUT. The first line contains one integer, which is the desired minimal number. EXAMPLE INPUT AND OUTPUT PALIN.IN 5 Abbd PALIN.OUT 2

6 POST Post Office PROBLEM There is a straight highway with villages alongside the highway. The highway is represented as an integer axis, and the position of each village is identified with a single integer coordinate. There are no two villages in the same position. The distance between two positions is the absolute value of the difference of their integer coordinates. Post offices will be bui lt in some, but not necessarily all of the villages. A village and the post office in it have the same position. For building the post offices, their positions should be chosen so that the total sum of all distances between each village and its nearest post office is minimum. You are to write a program which, given the positions of the villages and the number of post offices, computes the least possible sum of all distances between each village and its nearest post office, and the respective desired positions of the post offices. INPUT The input file name is POST.IN. The first line contains two integers: the first is the number of villages V, 1 V 00, and the second is the number of post offices P, 1 P 0, P V. The second line contains V integers in increasing order. These V integers are the positions of the villages. For each position X it holds that 1 X OUTPUT The output file name is POST.OUT. The first line contains one integer S, which is the sum of all distances between each village and its nearest post office as reported in the second line. The second line contains P integers in increasing order. These integers are the locations of the distinct villages in which the post offices will be built. There may be several different solutions for the locations, and your program needs to output only one of them. EXAMPLE INPUT AND OUTPUT POST.IN POST.OUT

7 POST PARTIAL CREDIT If your program s output does not satisfy the output requirements, then your score is 0. Otherwise, your score will be computed based on Table 1 as follows. If your program outputs sum S and the actual least possible sum is Smin, then calculate q=s/smin and find your score c in the bottom row. q=s/smin q= <q <q <q <q <q 1. 1.<q c Table 1.

8 WALLS Walls PROBLEM In a country, great walls have been built in such a way that every great wall connects exactly two towns. The great walls do not cross each other. Thus, the country is divided into such regions that to move from one region to another, it is necessary to go through a town or cross a great wall. For any two towns A and B, there is at most one great wall with one end in A and the other in B, and further, it is possible to go from A to B by always walking in a town or along a great wall. The input format implies additional restrictions. There is a club whose members live in the towns. In each town, there is only one member or there are no members at all. The members want to meet in one of the regions (outside of any town). The members travel riding their bicycles. They do not want to enter any towns, because of the traffic, and they want to cross as few great walls as possible, as it is a lot of trouble. To go to the meeting region, each member needs to cross a number (possibly 0) of great walls. They want to find such an optimal region that the sum of these numbers (crossing-sum, for short) is minimized Figure 1 Figure 2 The towns are labeled with integers from 1 to N, where N is the number of towns. In Figure 1, the labeled nodes represent the towns and the lines connecting the nodes represent the great walls. Suppose that there are three members, who live in towns, 6, and 9. Then, an optimal meeting region and respective routes for members are shown in Figure 2. The crossing-sum is 2: the member from town 9 has to cross the great wall between towns 2 and, and the member from town 6 has to cross the great wall between towns and 7. You are to write a program which, given the towns, the regions, and the club member home towns, computes an optimal region and the minimal crossing-sum. INPUT The input file name is WALLS.IN. The first line contains one integer: the number of regions M, 2 M 200. The second line contains one integer: the number of towns N, N 250. The third line contains one integer: the number of club members L, 1 L 0,

9 WALLS L N. The fourth line contains L distinct integers in increasing order: the labels of the towns where the members live. After that the file contains 2M lines so that there is a pair of lines for each region: the first two of the 2M lines describe the first region, the following two the second and so on. Of the pair, the first line shows the number of towns I on the border of that region. The second line of the pair contains I integers: the labels of these I towns in some order in which they can be passed when making a trip clockwise along the border of the region, with the following exception. The last region is the outside region surrounding all towns and other regions, and for it the order of the labels corresponds to a trip in counterclockwise direction. The order of the regions gives an integer labeling to the regions: the first region has label 1, the second has label 2, and so on. Note that the input includes all regions formed by the towns and great walls, including the outside region. OUTPUT The output file name is WALLS.OUT. The first line contains one integer: the minimal crossing-sum. The second line contains one integer: the label of an optimal region. There may be several different solutions for the region and your program needs to output only one of them. EXAMPLE INPUT AND OUTPUT The following input and output files correspond to the example given in the text. WALLS.IN WALLS.OUT 2

10 IOI20000 BLOCK Building with Blocks PROBLEM A unit cube is a 1x1x1 cube, whose corners have integer x, y, and z coordinates. Two unit cubes are connected when they share a face. A -dimensional solid object (solid, for short) is a non-empty connected set of unit cubes (see Figure 1). The volume of a solid is the number of unit cubes it contains. A block is a solid with volume at most. Two blocks have the same type when one can be obtained from the other by translations and rotations (not reflections). There are exactly 12 block types (see Figure 2). The colors in the figures only help to clarify the structure of the solids; they have no other meaning. A set D of blocks is a decomposition of a solid S when the union of all blocks in D equals S, and no two distinct blocks in D have a unit cube in common. Your task is to write a program that, given a description of the block types and a solid S, determines a smallest set of blocks into which S can be decomposed. It only needs to report the types of these blocks as often as they occur in the decomposition. INPUT In the input files, we identify a unit cube by a line with three integers x, y, and z, being the coordinate triple of its corner that minimizes x + y + z. The input file describing the block types is named TYPES.IN. The contents of this file are listed below and are the same for all evaluation runs. It contains the descriptions of the 12 block types in Figure 2, sorted on type number. Each block type is described by a group of consecutive lines. The first line contains the integer I identifying the block type (1 I 12). The second line contains the volume V of the block type (1 V ). The remaining V lines contain three integers x, y and z, each being one unit cube of the block type (1 x, y, z ). The input file describing the solid is named BLOCK.IN. The first line contains the volume V of the solid (1 V 50). The remaining V lines contain three integers x, y, z, each being one unit cube of the solid (1 x, y, z 7). OUTPUT The output file is named BLOCK.OUT. The first line must contain one integer M, being the smallest number of blocks into which the input solid can be decomposed. The second line lists M type identifiers of the block types into which the input solid can be decomposed. There may be several solutions for each input file, and your program needs to output only one of them.

11 IOI20000 BLOCK EXAMPLE INPUT AND OUTPUT TYPES.IN BLOCK.IN BLOCK.OUT Note: 1.This input file BLOCK.IN describes the solid of the horse in Figure 1. 2.Other solutions for the second line of the output file, which describes the types of the blocks used, are any of the following:

12 IOI20000 BLOCK Z Y X Figure 1. Horse Z X Y Figure 2. The 12 block types

Task Overview Sheet. Type Printer Islands Fish. Batch (stdin/stdout)*

Task Overview Sheet. Type Printer Islands Fish. Batch (stdin/stdout)* Task Overview Sheet Type Time Limit (per test case) Memory Limit (per test case) Type Printer Islands Fish Batch (stdin/stdout)* Batch (stdin/stdout)* Batch (stdin/stdout)* 1 second 2 seconds 3 seconds

More information

CROATIAN OPEN COMPETITION IN INFORMATICS. 5 th ROUND

CROATIAN OPEN COMPETITION IN INFORMATICS. 5 th ROUND CROATIAN OPEN COMPETITION IN INFORMATICS 5 th ROUND COCI 2009/200 Task SOK 5th round, 6. March 200. second / 32 MB / 30 points Mirko and Slavko bought a few litters of orange, apple and pineapple juice.

More information

Written test, 25 problems / 90 minutes

Written test, 25 problems / 90 minutes Sponsored by: UGA Math Department and UGA Math Club Written test, 5 problems / 90 minutes November 8, 04 Instructions. At the top of the left of side of your scan-tron answer sheet, fill in your last name,

More information

put your answers to b and c in human-oriented terms.

put your answers to b and c in human-oriented terms. 2. A. A person object has a social security number, a name, and a phone number. Give a complete C++ implementation of quicksort or mergesort that will sort an array of N pointers to person objects so that

More information

Perimeter Magic Polygons

Perimeter Magic Polygons Perimeter Magic Polygons In, Terrel Trotter, Jr., then a math teacher in Urbana Illinois, published an article called Magic Triangles of Order n. In, he published a follow up article called Perimeter Magic

More information

Discrete Structures. Fall Homework3

Discrete Structures. Fall Homework3 Discrete Structures Fall 2015 Homework3 Chapter 5 1. Section 5.1 page 329 Problems: 3,5,7,9,11,15 3. Let P(n) be the statement that 1 2 + 2 2 + +n 2 = n(n + 1)(2n + 1)/6 for the positive integer n. a)

More information

Introduction to Computer Science Midterm 3 Fall, Points

Introduction to Computer Science Midterm 3 Fall, Points Introduction to Computer Science Fall, 2001 100 Points Notes 1. Tear off this sheet and use it to keep your answers covered at all times. 2. Turn the exam over and write your name next to the staple. Do

More information

Problem A limit 1 second. Alphabet

Problem A limit 1 second. Alphabet Problem A limit 1 second Alphabet A string of lowercase letters is called alphabetical if deleting zero or more of its letters can result in the alphabet string abcdefghijklmnopqrstuvwxyz. Given a string

More information

September 11, Unit 2 Day 1 Notes Measures of Central Tendency.notebook

September 11, Unit 2 Day 1 Notes Measures of Central Tendency.notebook Measures of Central Tendency: Mean, Median, Mode and Midrange A Measure of Central Tendency is a value that represents a typical or central entry of a data set. Four most commonly used measures of central

More information

2013 Four-by-Four Competition Thursday, January 31st, Round Four-by-Four Competition Thursday, January 31st, 2013.

2013 Four-by-Four Competition Thursday, January 31st, Round Four-by-Four Competition Thursday, January 31st, 2013. Round 1 Round 1 1. What is the sum of the terms of an infinite geometric sequence with first term 2016 and common ratio? 2. In how many distinguishable ways can five extra copies of your sided house key

More information

5 Graphs

5 Graphs 5 Graphs jacques@ucsd.edu Some of the putnam problems are to do with graphs. They do not assume more than a basic familiarity with the definitions and terminology of graph theory. 5.1 Basic definitions

More information

Croatian Open Competition in Informatics, Contest #1 October 27, 2007

Croatian Open Competition in Informatics, Contest #1 October 27, 2007 Tasks Task CETVRTA PEG PRINOVA ZAPIS SREDNJI STAZA Memory limit (heap+stack) Time limit (per test) standard (keyboard) standard (screen) 2 MB 1 second Number of tests 5 6 10 10 10 10 Points per test 4

More information

Prime Time (Factors and Multiples)

Prime Time (Factors and Multiples) CONFIDENCE LEVEL: Prime Time Knowledge Map for 6 th Grade Math Prime Time (Factors and Multiples). A factor is a whole numbers that is multiplied by another whole number to get a product. (Ex: x 5 = ;

More information

Subject: Computer Science

Subject: Computer Science Subject: Computer Science Topic: Data Types, Variables & Operators 1 Write a program to print HELLO WORLD on screen. 2 Write a program to display output using a single cout statement. 3 Write a program

More information

Pacific Northwest Region Programming Contest Division 2

Pacific Northwest Region Programming Contest Division 2 Pacific Northwest Region Programming Contest Division 2 November 11th, 2017 2017 Pacific Northwest Region Programming Contest 2 Reminders For all problems, read the input data from standard input and write

More information

NMC Sample Problems: Grade 8

NMC Sample Problems: Grade 8 NM Sample Problems: Grade 8. right triangle has side lengths of 4 and 8. What is the length of the hypotenuse (the longest side)? 4 0 4 4. n isosceles triangle has a base length of 0 and a side length.

More information

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points MC 0 GRAPH THEORY 0// Solutions to HW # 0 points + XC points ) [CH] p.,..7. This problem introduces an important class of graphs called the hypercubes or k-cubes, Q, Q, Q, etc. I suggest that before you

More information

2017 Four-by-Four Competition Thursday, February 2nd, Round Four-by-Four Competition Thursday, February 2nd, 2017.

2017 Four-by-Four Competition Thursday, February 2nd, Round Four-by-Four Competition Thursday, February 2nd, 2017. Round 1 Round 1 1. How many real roots does 3v 2 4v 5 = 0 have? 2. What is the largest possible area, in square meters, of a triangle with vertices on a circle with a radius of 4 m? 3. In a right triangle

More information

CH 21 CONSECUTIVE INTEGERS

CH 21 CONSECUTIVE INTEGERS 201 CH 21 CONSECUTIVE INTEGERS Introduction An integer is either a positive whole number, or zero, or a negative whole number; in other words it s the collection of numbers:... 4, 3, 2, 1, 0, 1, 2, 3,

More information

3rd Grade Mathematics

3rd Grade Mathematics 3rd Grade Mathematics 2012-2013 MONTH CONTENT/ THEME CORE GOALS/SKILLS WRITTEN ASSESSMENT TEN MINUTE MATH VOCABULARY September 17 days Trading Stickers, Combining Coins Unit 1 *NOT CC NUMBERS AND Addition,

More information

TRIGONOMETRY. T.1 Angles and Degree Measure

TRIGONOMETRY. T.1 Angles and Degree Measure 403 TRIGONOMETRY Trigonometry is the branch of mathematics that studies the relations between the sides and angles of triangles. The word trigonometry comes from the Greek trigōnon (triangle) and metron

More information

Math A Regents Exam 0807 Page 1

Math A Regents Exam 0807 Page 1 Math A Regents Exam 0807 Page 1 1. 080701a, P.I. G.G.5 Given the true statements: "t is a multiple of 3" and "t is even." What could be a value of t? [A] 4 [B] 9 [C] 8 [D] 15. 08070a, P.I. 7.S.6 The accompanying

More information

2 Geometry Solutions

2 Geometry Solutions 2 Geometry Solutions jacques@ucsd.edu Here is give problems and solutions in increasing order of difficulty. 2.1 Easier problems Problem 1. What is the minimum number of hyperplanar slices to make a d-dimensional

More information

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010 CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010 Quick Summary A workbook an Excel document that stores data contains one or more pages called a worksheet. A worksheet or spreadsheet is stored in a workbook, and

More information

NMC Sample Problems: Grade 8

NMC Sample Problems: Grade 8 NM Sample Problems: Grade 8. right triangle has lengths of and 8 in sides. What is the length of hypotenuse (the longest side)? (b) 0 5. n isosceles triangle has the base length of 6 and each side of length.

More information

7 th Asia-Pacific Informatics Olympiad

7 th Asia-Pacific Informatics Olympiad 7 th Asia-Pacific Informatics Olympiad Hosted by National University of Singapore, Singapore Saturday, 11 May, 2013 Task name ROBOTS TOLL TASKSAUTHOR Time Limit 1.5s 2.5s Not Applicable Heap Size 128MB

More information

XV Open Cup named after E.V. Pankratiev Stage 6, Grand Prix of Japan, Sunday, February 1, 2015

XV Open Cup named after E.V. Pankratiev Stage 6, Grand Prix of Japan, Sunday, February 1, 2015 Problem A. Manhattan file: file: 1 second In Manhattan, there are streets x = i and y = i for each integer i. It is known that both Snuke s house and Smeke s house are on streets, and the Euclidean distance

More information

Overview. Finding the Median under IOI Conditions. TomVerhoeff. Programming Contests

Overview. Finding the Median under IOI Conditions. TomVerhoeff. Programming Contests Finding the Median under IOI Conditions Overview TomVerhoeff Technische Universiteit Eindhoven Faculteit Wiskunde en Informatica Software Constructie Groep T.Verhoeff@TUE.NL http://www.win.tue.nl/~wstomv/

More information

Problem A And Then There Was One Input: A.in. Let s play a stone removing game.

Problem A And Then There Was One Input: A.in. Let s play a stone removing game. ACM International Collegiate Programming Contest Asia Regional Contest, Tokyo, 2007 03 Problem A And Then There Was One Input: Ain Let s play a stone removing game Initially, n stones are arranged on a

More information

Summer Packet 7 th into 8 th grade. Name. Integer Operations = 2. (-7)(6)(-4) = = = = 6.

Summer Packet 7 th into 8 th grade. Name. Integer Operations = 2. (-7)(6)(-4) = = = = 6. Integer Operations Name Adding Integers If the signs are the same, add the numbers and keep the sign. 7 + 9 = 16 - + -6 = -8 If the signs are different, find the difference between the numbers and keep

More information

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006 Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006 THE KIT: This kit contains materials for two Instant Insanity games, a student activity sheet with answer key and this instructor

More information

ACM ICPC2009 Latin American Regionals 1. Problem A Pangram. File code name: pangram

ACM ICPC2009 Latin American Regionals 1. Problem A Pangram. File code name: pangram ACM ICPC29 Latin American Regionals Problem A Pangram File code name: pangram Pangram Show is an exciting new television quiz show which offers very large cash prizes for correctly detecting if a sentence

More information

Conditionals. For exercises 1 to 27, indicate the output that will be produced. Assume the following declarations:

Conditionals. For exercises 1 to 27, indicate the output that will be produced. Assume the following declarations: Conditionals For exercises 1 to 27, indicate the output that will be produced. Assume the following declarations: final int MAX = 25, LIMIT = 100; int num1 = 12, num2 = 25, num3 = 87; 1. if (num1 < MAX)

More information

Matrices. Chapter Matrix A Mathematical Definition Matrix Dimensions and Notation

Matrices. Chapter Matrix A Mathematical Definition Matrix Dimensions and Notation Chapter 7 Introduction to Matrices This chapter introduces the theory and application of matrices. It is divided into two main sections. Section 7.1 discusses some of the basic properties and operations

More information

CSE 250 Final Exam. Fall 2013 Time: 3 hours. Dec 11, No electronic devices of any kind. You can open your textbook and notes

CSE 250 Final Exam. Fall 2013 Time: 3 hours. Dec 11, No electronic devices of any kind. You can open your textbook and notes CSE 250 Final Exam Fall 2013 Time: 3 hours. Dec 11, 2013 Total points: 100 14 pages Please use the space provided for each question, and the back of the page if you need to. Please do not use any extra

More information

DRAFT CHAPTER. Surface Area GET READY. xxx. Math Link. 5.1 Warm Up xxx. 5.1 Views of Three-Dimensional Objects xxx. 5.

DRAFT CHAPTER. Surface Area GET READY. xxx. Math Link. 5.1 Warm Up xxx. 5.1 Views of Three-Dimensional Objects xxx. 5. CHAPTER 5 Surface Area GET READY Math Link xxx xxx 5.1 Warm Up xxx 5.1 Views of Three-Dimensional Objects xxx 5.2 Warm Up xxx 5.2 Nets of Three-Dimensional Objects xxx 5.3 Warm Up xxx 5.3 Surface Area

More information

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI 2017-2018 Worksheet No. 1 Topic : Getting Started With C++ 1. Write a program to generate the following output: Year Profit% 2011 18 2012 27 2013 32

More information

A rectangle has a perimeter of 10 cm and a width of 2 cm. What is the number of square centimeters in its area?

A rectangle has a perimeter of 10 cm and a width of 2 cm. What is the number of square centimeters in its area? 1. cm 2 A rectangle has a perimeter of 10 cm and a width of 2 cm. What is the number of square centimeters in its area? y 2 cm x 2. What is the product of all the positive integer factors of 15? 3. When

More information

CSE 101 Final Exam. Spring 2017

CSE 101 Final Exam. Spring 2017 CSE 101 Final Exam Spring 2017 Instructions: Do not open until the exam starts. The exam will run for 180 minutes. The problems are roughly sorted in increasing order of difficulty. Answer all questions

More information

CS2 Practical 1 CS2A 22/09/2004

CS2 Practical 1 CS2A 22/09/2004 CS2 Practical 1 Basic Java Programming The purpose of this practical is to re-enforce your Java programming abilities. The practical is based on material covered in CS1. It consists of ten simple programming

More information

Ratios and Proportional Relationships (RP) 6 8 Analyze proportional relationships and use them to solve real-world and mathematical problems.

Ratios and Proportional Relationships (RP) 6 8 Analyze proportional relationships and use them to solve real-world and mathematical problems. Ratios and Proportional Relationships (RP) 6 8 Analyze proportional relationships and use them to solve real-world and mathematical problems. 7.1 Compute unit rates associated with ratios of fractions,

More information

The 2016 ACM ICPC Vietnam National Programming Contest. The problem set consists of 11 problems: ICPC score distribution. Magical palindromic number

The 2016 ACM ICPC Vietnam National Programming Contest. The problem set consists of 11 problems: ICPC score distribution. Magical palindromic number The problem set consists of 11 problems: Problem A Problem B Problem C Problem D Problem E Problem F Problem G Problem H Problem I Problem J Problem K ICPC score distribution Magical palindromic number

More information

9.1 Measures of Center and Spread

9.1 Measures of Center and Spread Name Class Date 9.1 Measures of Center and Spread Essential Question: How can you describe and compare data sets? Explore Exploring Data Resource Locker Caleb and Kim have bowled three games. Their scores

More information

Problems for Op 2017

Problems for Op 2017 Problems for Op 2017 By Eric Durant, PhD, MBA, PE Friday 17 November 2017 Copyright 2017 MSOE Note: Unless a problem specifies otherwise, you may assume that all user inputs are valid.

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Exam Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Decide if the given number is a solution to the given equation. ) p + 3p - 2 = 62; 8 ) A)

More information

Problem A. Ascent Sequences

Problem A. Ascent Sequences Problem A. Ascent Sequences file: file: Consider a sequence a 1, a 2,..., a n of non-negative integers. An ascent in the sequence is a pair of adjacent elements such that the element with greater index

More information

UCF Practice Local Contest Aug 23, 2014

UCF Practice Local Contest Aug 23, 2014 UCF Practice Local Contest Aug 3, 014 How Sweet It Is! filename: sweet (Difficulty Level: Easy) Dr. Orooji's twins, Mack and Zack, love video games. We will assume that all games are $50. M/Z save all

More information

AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI ASSIGNMENT CLASS XI Session Chapter 1: Computer Overview

AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI ASSIGNMENT CLASS XI Session Chapter 1: Computer Overview AHLCON PUBLIC SCHOOL, MAYUR VIHAR I, DELHI - 110091 ASSIGNMENT CLASS XI Session 2018-19 Chapter 1: Computer Overview 1. 2. 3. What is the difference between data and information. What is CPU. Explain the

More information

1. One-third of 105 is the same as seven-sixths of what number? 1.

1. One-third of 105 is the same as seven-sixths of what number? 1. Blitz, Page. One-third of 05 is the same as seven-sixths of what number?. 2. A rectangle has length 6 and width 2. What is the radius of the 2. units circle that passes through the four vertices of the

More information

Tenka1 Programmer Contest/Tenka1 Programmer Beginner Contest 2018

Tenka1 Programmer Contest/Tenka1 Programmer Beginner Contest 2018 Tenka1 Programmer Contest/Tenka1 Programmer Beginner Contest 2018 DEGwer 2018/10/27 For International Readers: English editorial starts on page 5. A: Measure #include #include

More information

Competitive Programming Network - 2nd Activity March 11th, Alphabet.c, Alphabet.cpp, Alphabet.java, Alphabet.py Standard Standard

Competitive Programming Network - 2nd Activity March 11th, Alphabet.c, Alphabet.cpp, Alphabet.java, Alphabet.py Standard Standard Problem A. Alphabet Source file name: : : Alphabet.c, Alphabet.cpp, Alphabet.java, Alphabet.py A string of lowercase letters is called alphabetical if deleting zero or more of its letters can result in

More information

Number and Operation Standard #1. Divide multi- digit numbers; solve real- world and mathematical problems using arithmetic.

Number and Operation Standard #1. Divide multi- digit numbers; solve real- world and mathematical problems using arithmetic. Number and Operation Standard #1 MN Math Standards Vertical Alignment for Grade 5 Demonstrate mastery of multiplication and division basic facts; multiply multi- digit numbers; solve real- world and mathematical

More information

Common Core Vocabulary and Representations

Common Core Vocabulary and Representations Vocabulary Description Representation 2-Column Table A two-column table shows the relationship between two values. 5 Group Columns 5 group columns represent 5 more or 5 less. a ten represented as a 5-group

More information

Harvard-MIT Mathematics Tournament February 19, 2005

Harvard-MIT Mathematics Tournament February 19, 2005 Harvard-MIT Mathematics Tournament February 19, 2005 Guts Round... 1. [5] Find the largest positive integer n such that 1 + 2 + 3 + + n 2 is divisible by 1 + 2 + 3 + + n. 2. [5] Let x, y, and z be positive

More information

COS 226 Algorithms and Data Structures Fall Midterm

COS 226 Algorithms and Data Structures Fall Midterm COS 226 Algorithms and Data Structures Fall 2017 Midterm This exam has 10 questions (including question 0) worth a total of 55 points. You have 0 minutes. This exam is preprocessed by a computer, so please

More information

AP CSA 3rd Period MR. D. Course Map

AP CSA 3rd Period MR. D. Course Map AP CSA 3rd Period MR. D. Course Map AP Computer Science in Java (Mocha) Aug. 10, Aug. 11, Aug. 14, Aug. 15, 1.1.1 Introduction to With Karel 1.1.2 Quiz: Karel Commands 1.1.3 Our First Karel Program 1.1.4

More information

CHAPTER 2: SAMPLING AND DATA

CHAPTER 2: SAMPLING AND DATA CHAPTER 2: SAMPLING AND DATA This presentation is based on material and graphs from Open Stax and is copyrighted by Open Stax and Georgia Highlands College. OUTLINE 2.1 Stem-and-Leaf Graphs (Stemplots),

More information

The Ultimate Maths Vocabulary List

The Ultimate Maths Vocabulary List The Ultimate Maths Vocabulary List The 96 Words Every Pupil Needs to Know by the End of Year 6 KS1 & KS2 How to Use This Resource An essential building block in pupil s understanding of maths is their

More information

Key Words. 3.2 Exploring the Pythagorean Relationship, pages Squares and Square Roots, pages 80 87

Key Words. 3.2 Exploring the Pythagorean Relationship, pages Squares and Square Roots, pages 80 87 Key Words For #1 to #5, write in your notebook the terms from the list that complete the sentences below. hypotenuse perfect square prime factorization Pythagorean relationship square root 1. The of 36

More information

CS3L Summer 2011 Exam 2 Time: up to 170 minutes (you may leave when finished; or, you must stop promptly at noon)

CS3L Summer 2011 Exam 2 Time: up to 170 minutes (you may leave when finished; or, you must stop promptly at noon) CS3L Summer 2011 Exam 2 Time: up to 170 minutes (you may leave when finished; or, you must stop promptly at noon) Name: Login: cs3- First names of the people to your left and right, if any: Left: Right:

More information

Math 155. Measures of Central Tendency Section 3.1

Math 155. Measures of Central Tendency Section 3.1 Math 155. Measures of Central Tendency Section 3.1 The word average can be used in a variety of contexts: for example, your average score on assignments or the average house price in Riverside. This is

More information

Problem Set. The 37 th Annual ACM International Collegiate Programming Contest ASIA Regional - Daejeon. A. Accelerator (2 pages)

Problem Set. The 37 th Annual ACM International Collegiate Programming Contest ASIA Regional - Daejeon. A. Accelerator (2 pages) ASIA Regional - Daejeon Problem Set Please check that you have 1 problems and 1 sheets (excluding additional materials). A. Accelerator ( pages) B. Contour Maps ( pages) C. Critical -Path ( pages) D. Dot

More information

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013 Information Technology, UTU 203 030000 Fundamentals of Programming Problems to be solved in laboratory Note: Journal should contain followings for all problems given below:. Problem Statement 2. Algorithm

More information

Unit I Supplement OpenIntro Statistics 3rd ed., Ch. 1

Unit I Supplement OpenIntro Statistics 3rd ed., Ch. 1 Unit I Supplement OpenIntro Statistics 3rd ed., Ch. 1 KEY SKILLS: Organize a data set into a frequency distribution. Construct a histogram to summarize a data set. Compute the percentile for a particular

More information

place value Thousands Hundreds Tens Units

place value Thousands Hundreds Tens Units Number add total altogether sum plus + take away subtract minus the difference multiply times lots of groups of product divide share equally remainder (rem.) digit two digit numbers three digit numbers

More information

2-5 Graphing Special Functions. Graph each function. Identify the domain and range. SOLUTION:

2-5 Graphing Special Functions. Graph each function. Identify the domain and range. SOLUTION: Graph each function Identify the domain and range Write the piecewise-defined function shown in each graph 1 3 The left portion of the graph is the line g(x) = x + 4 There is an open circle at ( 2, 2),

More information

ACM Pacific NW Region Programming Contest 13 November 2004 Problem A: Mersenne Composite Numbers

ACM Pacific NW Region Programming Contest 13 November 2004 Problem A: Mersenne Composite Numbers Problem A: Mersenne Composite Numbers One of the world-wide cooperative computing tasks is the Grand Internet Mersenne Prime Search GIMPS striving to find ever-larger prime numbers by examining a particular

More information

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath UNIT - I Introduction to C Programming Introduction to C C was originally developed in the year 1970s by Dennis Ritchie at Bell Laboratories, Inc. C is a general-purpose programming language. It has been

More information

Excel Level 1

Excel Level 1 Excel 2016 - Level 1 Tell Me Assistant The Tell Me Assistant, which is new to all Office 2016 applications, allows users to search words, or phrases, about what they want to do in Excel. The Tell Me Assistant

More information

Algorithms Assignment 3 Solutions

Algorithms Assignment 3 Solutions Algorithms Assignment 3 Solutions 1. There is a row of n items, numbered from 1 to n. Each item has an integer value: item i has value A[i], where A[1..n] is an array. You wish to pick some of the items

More information

TASK CSS HISTOGRAMI MOSTOVI NIZOVI. time limit 5 seconds 1 second 1 second 1 second. memory limit 256 MB 256 MB 256 MB 256 MB. points

TASK CSS HISTOGRAMI MOSTOVI NIZOVI. time limit 5 seconds 1 second 1 second 1 second. memory limit 256 MB 256 MB 256 MB 256 MB. points April 12 th, 2014 Task overview TASK CSS HISTOGRAMI MOSTOVI NIZOVI input standard input output standard output time limit 5 seconds 1 second 1 second 1 second memory limit 256 MB 256 MB 256 MB 256 MB points

More information

(Refer Slide Time 01:41 min)

(Refer Slide Time 01:41 min) Programming and Data Structure Dr. P.P.Chakraborty Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture # 03 C Programming - II We shall continue our study of

More information

Indian National Olympiad in Informatics, 2014

Indian National Olympiad in Informatics, 2014 Indian National Olympiad in Informatics, 2014 Time: 3 hours 19 January, 2014 Instructions (a) You will have to return this question paper at the end of the examination with relevant parts filled out. (b)

More information

LESSON 1: INTRODUCTION TO COUNTING

LESSON 1: INTRODUCTION TO COUNTING LESSON 1: INTRODUCTION TO COUNTING Counting problems usually refer to problems whose question begins with How many. Some of these problems may be very simple, others quite difficult. Throughout this course

More information

CISC220 Lab 2: Due Wed, Sep 26 at Midnight (110 pts)

CISC220 Lab 2: Due Wed, Sep 26 at Midnight (110 pts) CISC220 Lab 2: Due Wed, Sep 26 at Midnight (110 pts) For this lab you may work with a partner, or you may choose to work alone. If you choose to work with a partner, you are still responsible for the lab

More information

Chapter 1 Histograms, Scatterplots, and Graphs of Functions

Chapter 1 Histograms, Scatterplots, and Graphs of Functions Chapter 1 Histograms, Scatterplots, and Graphs of Functions 1.1 Using Lists for Data Entry To enter data into the calculator you use the statistics menu. You can store data into lists labeled L1 through

More information

Q1: Multiple choice / 20 Q2: Arrays / 40 Q3: Functions / 40 TOTAL SCORE / 100 EXTRA CREDIT / 10

Q1: Multiple choice / 20 Q2: Arrays / 40 Q3: Functions / 40 TOTAL SCORE / 100 EXTRA CREDIT / 10 EECE.2160: ECE Application Programming Spring 2017 Exam 2 March 29, 2017 Name: Section (circle 1): 201 (Dr. Li, MWF 8-8:50) 202 (Dr. Geiger, MWF 12-12:50) For this exam, you may use only one 8.5 x 11 double-sided

More information

There are three questions on this exam. You have 2 hours to complete it. Please indent your program so that it is easy for the grader to read.

There are three questions on this exam. You have 2 hours to complete it. Please indent your program so that it is easy for the grader to read. There are three questions on this exam. You have 2 hours to complete it. Please indent your program so that it is easy for the grader to read. 1. Write a function named largestadjacentsum that iterates

More information

S. Dasgupta, C.H. Papadimitriou, and U.V. Vazirani 165

S. Dasgupta, C.H. Papadimitriou, and U.V. Vazirani 165 S. Dasgupta, C.H. Papadimitriou, and U.V. Vazirani 165 5.22. You are given a graph G = (V, E) with positive edge weights, and a minimum spanning tree T = (V, E ) with respect to these weights; you may

More information

Discrete Structures Lecture The Basics of Counting

Discrete Structures Lecture The Basics of Counting Introduction Good morning. Combinatorics is the study of arrangements of objects. Perhaps, the first application of the study of combinatorics was in the study of gambling games. Understanding combinatorics

More information

Problem A - Complete the sequence

Problem A - Complete the sequence Problem A - Complete the sequence You probably know those quizzes in Sunday magazines: given the sequence 1, 2, 3,,, what is the next number? Sometimes it is very easy to answer, sometimes it could be

More information

CHAPTER 5 ARRAYS AND MATRICES. Copyright 2013 Pearson Education, Inc.

CHAPTER 5 ARRAYS AND MATRICES. Copyright 2013 Pearson Education, Inc. CHAPTER 5 ARRAYS AND MATRICES One-Dimensional Arrays When solving engineering problems the data consist of just a single number, and some other times we have hundreds of numbers that need to be identified

More information

Problem A Moogle. source: moogle.c or moogle.cpp or moogle.java

Problem A Moogle. source: moogle.c or moogle.cpp or moogle.java Problem A Moogle source: moogle.c or moogle.cpp or moogle.java You got the original idea of making map software, called Moogle Maps, for the new cool Maple mphone. It will even be capable of indicating

More information

Router placement. Problem statement for Final Round, Hash Code 2017

Router placement. Problem statement for Final Round, Hash Code 2017 Router placement Problem statement for Final Round, Hash Code 2017 Introduction Who doesn't love wireless Internet? Millions of people rely on it for productivity and fun in countless cafes, railway stations

More information

Data parallel algorithms 1

Data parallel algorithms 1 Data parallel algorithms (Guy Steele): The data-parallel programming style is an approach to organizing programs suitable for execution on massively parallel computers. In this lecture, we will characterize

More information

STAAR Mixed Practice HW

STAAR Mixed Practice HW Show all work and label units of measurement. 1. The equation y = x + 7 represents a linear relationship that is non-proportional. What change could you make to the equation to make it proportional? Name:

More information

An array is a collection of data that holds fixed number of values of same type. It is also known as a set. An array is a data type.

An array is a collection of data that holds fixed number of values of same type. It is also known as a set. An array is a data type. Data Structures Introduction An array is a collection of data that holds fixed number of values of same type. It is also known as a set. An array is a data type. Representation of a large number of homogeneous

More information

MATH DICTIONARY. Number Sense. Number Families. Operations. Counting (Natural) Numbers The numbers we say when we count. Example: {0, 1, 2, 3, 4 }

MATH DICTIONARY. Number Sense. Number Families. Operations. Counting (Natural) Numbers The numbers we say when we count. Example: {0, 1, 2, 3, 4 } Number Sense Number Families MATH DICTIONARY Counting (Natural) Numbers The numbers we say when we count Example: {1, 2, 3, 4 } Whole Numbers The counting numbers plus zero Example: {0, 1, 2, 3, 4 } Positive

More information

MID TERM MEGA FILE SOLVED BY VU HELPER Which one of the following statement is NOT correct.

MID TERM MEGA FILE SOLVED BY VU HELPER Which one of the following statement is NOT correct. MID TERM MEGA FILE SOLVED BY VU HELPER Which one of the following statement is NOT correct. In linked list the elements are necessarily to be contiguous In linked list the elements may locate at far positions

More information

STATISTICAL TECHNIQUES. Interpreting Basic Statistical Values

STATISTICAL TECHNIQUES. Interpreting Basic Statistical Values STATISTICAL TECHNIQUES Interpreting Basic Statistical Values INTERPRETING BASIC STATISTICAL VALUES Sample representative How would one represent the average or typical piece of information from a given

More information

2016 AMC12B Problems

2016 AMC12B Problems Problem 1 2016 AMC12B Problems What is the value of? Problem 2 For what value of does? Problem 3 For every dollar Ben spent on bagels, David spent cents less. Ben paid more than David. How much did they

More information

CHAPTER 1. Introduction. Statistics: Statistics is the science of collecting, organizing, analyzing, presenting and interpreting data.

CHAPTER 1. Introduction. Statistics: Statistics is the science of collecting, organizing, analyzing, presenting and interpreting data. 1 CHAPTER 1 Introduction Statistics: Statistics is the science of collecting, organizing, analyzing, presenting and interpreting data. Variable: Any characteristic of a person or thing that can be expressed

More information

ROCHESTER COMMUNITY SCHOOL MATHEMATICS SCOPE AND SEQUENCE, K-5 STRAND: NUMERATION

ROCHESTER COMMUNITY SCHOOL MATHEMATICS SCOPE AND SEQUENCE, K-5 STRAND: NUMERATION STRAND: NUMERATION Shows one-to-one correspondence for numbers 1-30 using objects and pictures Uses objects and pictures to show numbers 1 to 30 Counts by 1s to 100 Counts by 10s to 100 Counts backwards

More information

Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8

Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8 Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8 Grade 6 Grade 8 absolute value Distance of a number (x) from zero on a number line. Because absolute value represents distance, the absolute value

More information

2016 ACM ICPC Southeast USA Regional Programming Contest. Division 1

2016 ACM ICPC Southeast USA Regional Programming Contest. Division 1 206 ACM ICPC Southeast USA Regional Programming Contest Division Alphabet... Base Sums... 2 Buggy Robot... 3 Enclosure... 5 Illumination... 6 InTents... 7 Islands... 9 Paint... 0 Periodic Strings... Water...

More information

How to Make Graphs in EXCEL

How to Make Graphs in EXCEL How to Make Graphs in EXCEL The following instructions are how you can make the graphs that you need to have in your project.the graphs in the project cannot be hand-written, but you do not have to use

More information

MTH-129 Review for Test 4 Luczak

MTH-129 Review for Test 4 Luczak MTH-129 Review for Test 4 Luczak 1. On each of three consecutive days the National Weather Service announces that there is a 50-50 chance of rain. Assuming that they are correct, answer the following:

More information

High Institute of Computer Science & Information Technology Term : 1 st. El-Shorouk Academy Acad. Year : 2013 / Year : 2 nd

High Institute of Computer Science & Information Technology Term : 1 st. El-Shorouk Academy Acad. Year : 2013 / Year : 2 nd El-Shorouk Academy Acad. Year : 2013 / 2014 High Institute of Computer Science & Information Technology Term : 1 st Year : 2 nd Computer Science Department Object Oriented Programming Section (1) Arrays

More information

1. Fastest Animals. Introduction. Task. Constraints. Time limit. Example. Input. Output. Sample output. Sample input

1. Fastest Animals. Introduction. Task. Constraints. Time limit. Example. Input. Output. Sample output. Sample input 1. Fastest Animals Which animal in the zoo is the fastest? Every schoolchild will tell you that it is the cheetah. But is it? In this modern world of fake news and alternative facts, the one way to be

More information

L E A R N I N G O B JE C T I V E S

L E A R N I N G O B JE C T I V E S 2.2 Measures of Central Location L E A R N I N G O B JE C T I V E S 1. To learn the concept of the center of a data set. 2. To learn the meaning of each of three measures of the center of a data set the

More information