Lower Fall Programming Contest 2017

Size: px
Start display at page:

Download "Lower Fall Programming Contest 2017"

Transcription

1 Lower Fall Programming Contest 2017 Lower Division Oct. 28th 2017 Do not open until contest starts Instructions for Participants Contest URL: You have 5 hours to answer questions. You may submit solutions in the following languages: C/C++ (1999, 2011) 1

2 Java 8 C# ( ) Python (2.7 or 3.x) Perl Javascript (Node.js v4.2.6) You are only allowed access to official language documentation and COP3014 reference material. You are restricted to: C/C++: Java: C#: Python 2.7: Python 3.x: Perl: Javascript: COP3014 Reference: vastola/cop3014/ jayarama/prog1.php You are also allowed one textbook or material no larger than 8.5 x 11 x 2 volume. No other resources (e.g. Stack Overflow, Google, Wikipedia) are permitted. Using nonpermitted materials will lead to disqualification. Teams are restricted to using one workstation (computer) each. Use of a cell phone to circumvent these restrictions will lead to disqualification. Use of cell phones in contest rooms is not permitted. The Clarifications tab on Domjudge may be used to submit questions pertaining to each problem. Do not use this feature to request troubleshooting help. All input is redirected via STDIN. All output must be formatted to specification in terms of capitalization and spacing. Please refer to the example output for each question. Do not include a shebang in your submissions. Scoring: Teams are ranked according to score. A higher score is rewarded by answering more questions while acquiring fewer penalties. The team that solves the greatest number of questions in the quickest time wins. Teams which solve the same number of problems are ranked by least total time. Teams may resubmit solutions as many times as needed, but incorrect submission attempts will result in time penalties (and thus a lower score.) The scoreboard may be accessed during the first four hours of the contest. The scoreboard will freeze during the final hour. 2

3 1 Augustus Math Homework Many have thought that most of ancient Rome s secrets have been discovered, but recently ancient tomes belonging to Emperor Augustus have been unearthed! It seems to be mathematical equations written in Roman numerals, but sadly our translator has gotten lost in an Aqueduct, so we need your help to translate! Have we discovered equations that could change our understanding of the world!? Or is this simply homework that his pet lion ate. 1.1 Input The first line of input will be a single integer n representing the number of test cases for the program s execution. There will then be n expressions, for you to translate, each on their own line. Your can assume that all Roman numerals will be in uppercase, only in the range [1-10], and that each expression only has one operation. Furthermore, there will be a single space separating the Roman numerals and the operation. For reference, here are the Roman numerals 1-10: 1.2 Output Roman Decimal Roman Decimal I 1 VI 6 II 2 VII 7 III 3 VIII 8 IV 4 IX 9 V 5 X 10 You output should be a translation of each equation as well as a solution to the equation separated by an =. Include a single space between each number and operation, as well as a single space before and after the =. 1.3 Sample Input/Output = 2 I + I = 6 II + IV 5-2 = 3 V - II 3

4 2 Cycles Within Cycles Within Cycles Researchers at FSU have just made a shocking discovery... Everything has a cycle, and the cycles have cycles, and those cycles have cycles that have cycles that have cycles that have cycles that have cycles that have cycles that have cycles that have cycles that have cycles that have cycles that have cycles that have cycles that have cycles Even words have cycles in them, for example, if we take the word: cycles And shift all the letters to the left by three, we get: lescyc The letters at the beginning of the word, somehow end up at the end, and if we shift all letters to the left by three again: We end up where we started...with cycles. cycles However, in attempt to publish our discovery, some cynical people are not persuaded by our cyclical findings, so we (meaning you) must show them how these cycles work. 2.1 Input The first line of input will be a single integer representing the size of the string, followed by the string itself, and then finally the amount to left shift the string by per cycle. 2.2 Output Your output should be each cycle of the string, with the left shift performed on it. Each cycle must be on its own line, and the amount of cycles you need to perform is the size of the string. 2.3 Sample Input/Output 4 abcd 3 dabc cdab bcda abcd

5 3 Middle-Out Sorting After many hours of coffee and sugary treats from a nearby vending machine, a group of sleep deprived grad students at FSU have come up with a new sorting algorithm that will be sure to end all other sorting algorithms! The algorithm works like this, given a list of integers: The integers are sorted into ascending order The integers are then sorted with an alternating pattern: Lowest integer is placed first. Second lowest integer is placed last. Third lowest is placed second. Fourth lowest is placed second from last. This continues until the largest value is in the center of the pattern. Example of the algorithm in action: Given: Asc. order: Final Sort: It should be noted that it is possible that there can be repeating values in the list, and an even number of values to be sorted. 3.1 Input The first line of input will be a single integer n representing the number of integers that you will need to sort. The following line will be the n integers separated by whitespace. 3.2 Output Your output should be the integers sorted as described above, all on one line and separated by whitespace. 3.3 Sample Input/Output Sample Input Sample Output

6 4 Palindrome Primes 2: The Legend of Curly s Gold A positive integer is called a prime if it has exactly two distinct positive integer divisors: 1 and itself. A positive integer is called a palindrome if its base-10 representation reads the same forwards and backwards. Some palindromes: 2, 77, 101, 33333, A positive integer is called a palindromic prime if it is both a palindrome and a prime. 4.1 Input The first line of input will be a single integer n representing the number of test cases for the program s execution. There will then be n integers, each on their own line and greater than 10, and you are tasked with determining the total number of positive palindrome primes up to and including each number. It should be noted that one can say the palindrome primes up to and including 16 are 2,3,5,7,11. However, to avoid debate on single digit numbers being palindromes, you should only count 11 in this example, and in other examples only those greater then Output For each test case, output one line containing the number of positive palindrome primes up to and including that test case. 4.3 Sample Input/Output

7 5 A Not So Pascal Triangle Many people around the world know of Pascal s triangle, but few people are aware of Blaise s triangle. Blaise s triangle is similar to Pascal s, but far simpler. For any entry in the triangle, that is not on the bottom row, the value is determined by the two entries below: A B C D E F A = B + C B = D + E C = E + F Our computer has been trying to print out many of these triangles for use in *insert math class name here*, but has bugged out and now prints incomplete triangles. Your task is to determine the missing values. 5.1 Input The first line of input will be a single integer representing the number of missing variables in the additive pyramid. The following lines will be the pyramid itself, and you may assume the following: The pyramid always has a height of 3. The pyramid can have 1, 2, or 3 variables to solve for. The variable names will always be A, B, C. If there is one variable to solve, it will be labeled A; if two are to be solved, they will be A, B; If there are three they will be, A, B, C. All values are positive integers up to 100. It is possible for there to be two unknowns on same level. There will only be one solution per unknown. There is a single space between multiple values/unknowns 5.2 Output Your output should be the triangle with the value of the missing variables in place of the variables. To print out the triangle, first you should print the top of the triangle on its own line. The next line will be the second layer will be two integers separated by a single space, and the final layer will be three integers, each separated by a single space 5.3 Sample Input/Output 3 9 A B C 1 7

8 6 It Is Simply Chess...Yes? Ahhh yes, Chess, one of the most popular strategy games in the world. It is also quite hard. So we simply made a simple version. Known simply as Simple Chess, the rules are quite simple. Instead of that hard setup that normal chess has, we simply take the pieces and place them randomly on the board, and see if a piece can capture an enemy piece. To simplify things even more, there are only 4 types of pieces: Knight, which can move in an L shape two ways: Up, or down 2 spaces, then left or right 1 space. Left or right 2 spaces, then up or down 1 space. Rook, which can move going up, down, left, or right any distance. Bishop, which can move diagonally any distance. Queen, which can move up, down, left, right, or diagonally any distance. 6.2 Output The chess board is a standard 8x8 board, as shown here, and the labels A-H act as the x-coordinates for a piece, and the labels 1-8 act as the y- coordinates for a piece. 6.1 Input The first line of input will be a single integer n representing the number of chess pieces on the board. The following n lines are in the following format: White/Black piece, type of piece, x-coordinate, y-coordinate. Your output will be the move that a piece can take to capture an enemy piece. The format will be: The piece that can make the move, followed by a >,followed by the enemy piece being captured. There will be only one possible capture per input case, and each input will always have a capture move. Also, there will never be a case where two pieces can technically go at same time, e.g. no case where two rooks can capture each other. Finally, the pieces do not require line of sight, e.g. if a friendly piece is blocking the path of a rook to an enemy, the rook can still capture the enemy. 6.3 Sample Input/Output 4 WQB4>BKF8 WBA1 WQB4 BKF8 BBA2 8

A1 Problem Statement Unit Pricing

A1 Problem Statement Unit Pricing A1 Problem Statement Unit Pricing Given up to 10 items (weight in ounces and cost in dollars) determine which one by order (e.g. third) is the cheapest item in terms of cost per ounce. Also output the

More information

Irish Collegiate Programming Contest Problem Set

Irish Collegiate Programming Contest Problem Set Irish Collegiate Programming Contest 2011 Problem Set University College Cork ACM Student Chapter March 26, 2011 Contents Instructions 2 Rules........................................... 2 Testing and Scoring....................................

More information

repeated multiplication of a number, for example, 3 5. square roots and cube roots of numbers

repeated multiplication of a number, for example, 3 5. square roots and cube roots of numbers NUMBER 456789012 Numbers form many interesting patterns. You already know about odd and even numbers. Pascal s triangle is a number pattern that looks like a triangle and contains number patterns. Fibonacci

More information

n r for the number. (n r)!r!

n r for the number. (n r)!r! Throughout we use both the notations ( ) n r and C n n! r for the number (n r)!r! 1 Ten points are distributed around a circle How many triangles have all three of their vertices in this 10-element set?

More information

B1 Problem Statement Unit Pricing

B1 Problem Statement Unit Pricing B1 Problem Statement Unit Pricing Determine the best buy (the lowest per unit cost) between two items. The inputs will be the weight in ounces and the cost in dollars. Display whether the first or the

More information

2. Nine points are distributed around a circle in such a way that when all ( )

2. Nine points are distributed around a circle in such a way that when all ( ) 1. How many circles in the plane contain at least three of the points (0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), (2, 0), (2, 1), (2, 2)? Solution: There are ( ) 9 3 = 8 three element subsets, all

More information

If a pawn is still on its original square, it can move two squares or one square ahead. Pawn Movement

If a pawn is still on its original square, it can move two squares or one square ahead. Pawn Movement Chess Basics Pawn Review If a pawn is still on its original square, it can move two squares or one square ahead. Pawn Movement If any piece is in the square in front of the pawn, then it can t move forward

More information

Structured Programming Using Procedural Languages INSS Spring 2018

Structured Programming Using Procedural Languages INSS Spring 2018 Structured Programming Using Procedural Languages INSS 225.101 - Spring 2018 Project #3 (Individual) For your third project, you are going to write a program like what you did for Project 2. You are going

More information

Philadelphia Classic 2013 Hosted by the Dining Philosophers University of Pennsylvania

Philadelphia Classic 2013 Hosted by the Dining Philosophers University of Pennsylvania Philadelphia Classic 2013 Hosted by the Dining Philosophers University of Pennsylvania Basic rules: 4 hours, 9 problems, 1 computer per team You can only use the internet for accessing the Javadocs, and

More information

LEVEL I. 3. In how many ways 4 identical white balls and 6 identical black balls be arranged in a row so that no two white balls are together?

LEVEL I. 3. In how many ways 4 identical white balls and 6 identical black balls be arranged in a row so that no two white balls are together? LEVEL I 1. Three numbers are chosen from 1,, 3..., n. In how many ways can the numbers be chosen such that either maximum of these numbers is s or minimum of these numbers is r (r < s)?. Six candidates

More information

Introduction to Mathematical Reasoning, Saylor 111

Introduction to Mathematical Reasoning, Saylor 111 Here s a game I like plying with students I ll write a positive integer on the board that comes from a set S You can propose other numbers, and I tell you if your proposed number comes from the set Eventually

More information

Pascal Contest (Grade 9) Wednesday, February 23, 2005

Pascal Contest (Grade 9) Wednesday, February 23, 2005 Canadian Mathematics Competition An activity of the Centre for Education in Mathematics and Computing, University of Waterloo, Waterloo, Ontario Pascal Contest (Grade 9) Wednesday, February 23, 2005 C.M.C.

More information

State Math Contest (Junior)

State Math Contest (Junior) Name: Student ID: State Math Contest (Junior) Instructions: Do not turn this page until your proctor tells you. Enter your name, grade, and school information following the instructions given by your proctor.

More information

TEKSING TOWARD STAAR MATHEMATICS GRADE 6. Student Book

TEKSING TOWARD STAAR MATHEMATICS GRADE 6. Student Book TEKSING TOWARD STAAR MATHEMATICS GRADE 6 Student Book TEKSING TOWARD STAAR 2014 Six Weeks 1 Lesson 1 STAAR Category 1 Grade 6 Mathematics TEKS 6.2A/6.2B Problem-Solving Model Step Description of Step 1

More information

2013 ACM ICPC Southeast USA Regional Programming Contest. 2 November, Division 1

2013 ACM ICPC Southeast USA Regional Programming Contest. 2 November, Division 1 213 ACM ICPC Southeast USA Regional Programming Contest 2 November, 213 Division 1 A: Beautiful Mountains... 1 B: Nested Palindromes... 3 C: Ping!... 5 D: Electric Car Rally... 6 E: Skyscrapers... 8 F:

More information

Activity 1: Play comparison games involving fractions, decimals and/or integers.

Activity 1: Play comparison games involving fractions, decimals and/or integers. Students will be able to: Lesson Fractions, Decimals, Percents and Integers. Play comparison games involving fractions, decimals and/or integers,. Complete percent increase and decrease problems, and.

More information

Smyth County Public Schools 2017 Computer Science Competition Coding Problems

Smyth County Public Schools 2017 Computer Science Competition Coding Problems Smyth County Public Schools 2017 Computer Science Competition Coding Problems The Rules There are ten problems with point values ranging from 10 to 35 points. There are 200 total points. You can earn partial

More information

12th Bay Area Mathematical Olympiad

12th Bay Area Mathematical Olympiad 2th Bay Area Mathematical Olympiad February 2, 200 Problems (with Solutions) We write {a,b,c} for the set of three different positive integers a, b, and c. By choosing some or all of the numbers a, b and

More information

Unit. The double attack. Types of double attack. With which pieces? Notes and observations

Unit. The double attack. Types of double attack. With which pieces? Notes and observations Unit The double attack Types of double attack With which pieces? Notes and observations Think Colour in the drawing with the colours of your choice. These types of drawings are called mandalas. They are

More information

Math is Cool Masters

Math is Cool Masters Sponsored by: Algebra II January 6, 008 Individual Contest Tear this sheet off and fill out top of answer sheet on following page prior to the start of the test. GENERAL INSTRUCTIONS applying to all tests:

More information

OCTAGON 5 IN 1 GAME SET

OCTAGON 5 IN 1 GAME SET OCTAGON 5 IN 1 GAME SET CHESS, CHECKERS, BACKGAMMON, DOMINOES AND POKER DICE Replacement Parts Order direct at or call our Customer Service department at (800) 225-7593 8 am to 4:30 pm Central Standard

More information

Homework Assignment #1

Homework Assignment #1 CS 540-2: Introduction to Artificial Intelligence Homework Assignment #1 Assigned: Thursday, February 1, 2018 Due: Sunday, February 11, 2018 Hand-in Instructions: This homework assignment includes two

More information

ChesServe Test Plan. ChesServe CS 451 Allan Caffee Charles Conroy Kyle Golrick Christopher Gore David Kerkeslager

ChesServe Test Plan. ChesServe CS 451 Allan Caffee Charles Conroy Kyle Golrick Christopher Gore David Kerkeslager ChesServe Test Plan ChesServe CS 451 Allan Caffee Charles Conroy Kyle Golrick Christopher Gore David Kerkeslager Date Reason For Change Version Thursday August 21 th Initial Version 1.0 Thursday August

More information

Year 5 Problems and Investigations Spring

Year 5 Problems and Investigations Spring Year 5 Problems and Investigations Spring Week 1 Title: Alternating chains Children create chains of alternating positive and negative numbers and look at the patterns in their totals. Skill practised:

More information

The Four Numbers Game

The Four Numbers Game University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln MAT Exam Expository Papers Math in the Middle Institute Partnership 7-2007 The Four Numbers Game Tina Thompson University

More information

Roll & Make. Represent It a Different Way. Show Your Number as a Number Bond. Show Your Number on a Number Line. Show Your Number as a Strip Diagram

Roll & Make. Represent It a Different Way. Show Your Number as a Number Bond. Show Your Number on a Number Line. Show Your Number as a Strip Diagram Roll & Make My In Picture Form In Word Form In Expanded Form With Money Represent It a Different Way Make a Comparison Statement with a Greater than Your Make a Comparison Statement with a Less than Your

More information

ProCo 2017 Advanced Division Round 1

ProCo 2017 Advanced Division Round 1 ProCo 2017 Advanced Division Round 1 Problem A. Traveling file: 256 megabytes Moana wants to travel from Motunui to Lalotai. To do this she has to cross a narrow channel filled with rocks. The channel

More information

Discrete Mathematics. Spring 2017

Discrete Mathematics. Spring 2017 Discrete Mathematics Spring 2017 Previous Lecture Binomial Coefficients Pascal s Triangle The Pigeonhole Principle If a flock of 20 pigeons roosts in a set of 19 pigeonholes, one of the pigeonholes must

More information

MTEL General Curriculum Mathematics 03 Multiple Choice Practice Test A Debra K. Borkovitz, Wheelock College

MTEL General Curriculum Mathematics 03 Multiple Choice Practice Test A Debra K. Borkovitz, Wheelock College MTEL General Curriculum Mathematics 03 Multiple Choice Practice Test A Debra K. Borkovitz, Wheelock College Note: This test is the same length as the multiple choice part of the official test, and the

More information

Math 1111 Math Exam Study Guide

Math 1111 Math Exam Study Guide Math 1111 Math Exam Study Guide The math exam will cover the mathematical concepts and techniques we ve explored this semester. The exam will not involve any codebreaking, although some questions on the

More information

JIGSAW ACTIVITY, TASK # Make sure your answer in written in the correct order. Highest powers of x should come first, down to the lowest powers.

JIGSAW ACTIVITY, TASK # Make sure your answer in written in the correct order. Highest powers of x should come first, down to the lowest powers. JIGSAW ACTIVITY, TASK #1 Your job is to multiply and find all the terms in ( 1) Recall that this means ( + 1)( + 1)( + 1)( + 1) Start by multiplying: ( + 1)( + 1) x x x x. x. + 4 x x. Write your answer

More information

Math Shape and Space: Perimeter

Math Shape and Space: Perimeter F A C U L T Y O F E D U C A T I O N Department of Curriculum and Pedagogy Math Shape and Space: Perimeter Science and Mathematics Education Research Group Supported by UBC Teaching and Learning Enhancement

More information

DELUXE 3 IN 1 GAME SET

DELUXE 3 IN 1 GAME SET Chess, Checkers and Backgammon August 2012 UPC Code 7-19265-51276-9 HOW TO PLAY CHESS Chess Includes: 16 Dark Chess Pieces 16 Light Chess Pieces Board Start Up Chess is a game played by two players. One

More information

THE EFFECTIVENESS OF DAMATH IN ENHANCING THE LEARNING PROCESS OF FOUR FUNDAMENTAL OPERATIONS ON WHOLE NUMBERS

THE EFFECTIVENESS OF DAMATH IN ENHANCING THE LEARNING PROCESS OF FOUR FUNDAMENTAL OPERATIONS ON WHOLE NUMBERS THE EFFECTIVENESS OF DAMATH IN ENHANCING THE LEARNING PROCESS OF FOUR FUNDAMENTAL OPERATIONS ON WHOLE NUMBERS Marilyn Morales- Obod, Ed. D. Our Lady of Fatima University, Philippines Presented in Pullman

More information

Math Contest Preparation II

Math Contest Preparation II WWW.CEMC.UWATERLOO.CA The CENTRE for EDUCATION in MATHEMATICS and COMPUTING Math Contest Preparation II Intermediate Math Circles Faculty of Mathematics University of Waterloo J.P. Pretti Wednesday 16

More information

32 nd NEW BRUNSWICK MATHEMATICS COMPETITION

32 nd NEW BRUNSWICK MATHEMATICS COMPETITION UNIVERSITY OF NEW BRUNSWICK UNIVERSITÉ DE MONCTON 32 nd NEW BRUNSWICK MATHEMATICS COMPETITION Friday, May 9, 2014 GRADE 7 INSTRUCTIONS TO THE STUDENT: 1. Do not start the examination until you are told

More information

March 5, What is the area (in square units) of the region in the first quadrant defined by 18 x + y 20?

March 5, What is the area (in square units) of the region in the first quadrant defined by 18 x + y 20? March 5, 007 1. We randomly select 4 prime numbers without replacement from the first 10 prime numbers. What is the probability that the sum of the four selected numbers is odd? (A) 0.1 (B) 0.30 (C) 0.36

More information

Adding Fractions with Different Denominators. Subtracting Fractions with Different Denominators

Adding Fractions with Different Denominators. Subtracting Fractions with Different Denominators Adding Fractions with Different Denominators How to Add Fractions with different denominators: Find the Least Common Denominator (LCD) of the fractions Rename the fractions to have the LCD Add the numerators

More information

Solutions of problems for grade R5

Solutions of problems for grade R5 International Mathematical Olympiad Formula of Unity / The Third Millennium Year 016/017. Round Solutions of problems for grade R5 1. Paul is drawing points on a sheet of squared paper, at intersections

More information

Lecture 20: Combinatorial Search (1997) Steven Skiena. skiena

Lecture 20: Combinatorial Search (1997) Steven Skiena.   skiena Lecture 20: Combinatorial Search (1997) Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Give an O(n lg k)-time algorithm

More information

Pascal Contest (Grade 9)

Pascal Contest (Grade 9) The CENTRE for EDUCATION in MATHEMATICS and COMPUTING cemc.uwaterloo.ca Pascal Contest (Grade 9) Thursday, February 20, 201 (in North America and South America) Friday, February 21, 201 (outside of North

More information

Westminster College 2012 High School Programming Contest. October 8, 2012

Westminster College 2012 High School Programming Contest. October 8, 2012 Westminster College 01 High School Programming Contest October, 01 Rules: 1. There are six questions to be completed in two and 1/ hours.. All questions require you to read the test data from standard

More information

4th Pui Ching Invitational Mathematics Competition. Final Event (Secondary 1)

4th Pui Ching Invitational Mathematics Competition. Final Event (Secondary 1) 4th Pui Ching Invitational Mathematics Competition Final Event (Secondary 1) 2 Time allowed: 2 hours Instructions to Contestants: 1. 100 This paper is divided into Section A and Section B. The total score

More information

UK JUNIOR MATHEMATICAL CHALLENGE. April 25th 2013 EXTENDED SOLUTIONS

UK JUNIOR MATHEMATICAL CHALLENGE. April 25th 2013 EXTENDED SOLUTIONS UK JUNIOR MATHEMATICAL CHALLENGE April 5th 013 EXTENDED SOLUTIONS These solutions augment the printed solutions that we send to schools. For convenience, the solutions sent to schools are confined to two

More information

N-Queens Problem. Latin Squares Duncan Prince, Tamara Gomez February

N-Queens Problem. Latin Squares Duncan Prince, Tamara Gomez February N-ueens Problem Latin Squares Duncan Prince, Tamara Gomez February 19 2015 Author: Duncan Prince The N-ueens Problem The N-ueens problem originates from a question relating to chess, The 8-ueens problem

More information

elements in S. It can tricky counting up the numbers of

elements in S. It can tricky counting up the numbers of STAT-UB.003 Notes for Wednesday, 0.FEB.0. For many problems, we need to do a little counting. We try to construct a sample space S for which the elements are equally likely. Then for any event E, we will

More information

Grade 7/8 Math Circles Game Theory October 27/28, 2015

Grade 7/8 Math Circles Game Theory October 27/28, 2015 Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 7/8 Math Circles Game Theory October 27/28, 2015 Chomp Chomp is a simple 2-player game. There is

More information

2014 Edmonton Junior High Math Contest ANSWER KEY

2014 Edmonton Junior High Math Contest ANSWER KEY Print ID # School Name Student Name (Print First, Last) 100 2014 Edmonton Junior High Math Contest ANSWER KEY Part A: Multiple Choice Part B (short answer) Part C(short answer) 1. C 6. 10 15. 9079 2. B

More information

Official Problem Set 2017 ACM/ICPC. The 2017 ACM-ICPC Asia Kabul Regional Contest

Official Problem Set 2017 ACM/ICPC. The 2017 ACM-ICPC Asia Kabul Regional Contest Official Problem Set 207 ACM/ICPC The 207 ACM-ICPC Asia Kabul Regional Contest A. Sum of Numbers Razaia and Alireza are school students. They have a homework to add two integer numbers. Your task is to

More information

CS 787: Advanced Algorithms Homework 1

CS 787: Advanced Algorithms Homework 1 CS 787: Advanced Algorithms Homework 1 Out: 02/08/13 Due: 03/01/13 Guidelines This homework consists of a few exercises followed by some problems. The exercises are meant for your practice only, and do

More information

Twenty-fourth Annual UNC Math Contest Final Round Solutions Jan 2016 [(3!)!] 4

Twenty-fourth Annual UNC Math Contest Final Round Solutions Jan 2016 [(3!)!] 4 Twenty-fourth Annual UNC Math Contest Final Round Solutions Jan 206 Rules: Three hours; no electronic devices. The positive integers are, 2, 3, 4,.... Pythagorean Triplet The sum of the lengths of the

More information

Lesson 16: The Computation of the Slope of a Non Vertical Line

Lesson 16: The Computation of the Slope of a Non Vertical Line ++ Lesson 16: The Computation of the Slope of a Non Vertical Line Student Outcomes Students use similar triangles to explain why the slope is the same between any two distinct points on a non vertical

More information

Making Middle School Math Come Alive with Games and Activities

Making Middle School Math Come Alive with Games and Activities Making Middle School Math Come Alive with Games and Activities For more information about the materials you find in this packet, contact: Sharon Rendon (605) 431-0216 sharonrendon@cpm.org 1 2-51. SPECIAL

More information

Chapter 4 Number Theory

Chapter 4 Number Theory Chapter 4 Number Theory Throughout the study of numbers, students Á should identify classes of numbers and examine their properties. For example, integers that are divisible by 2 are called even numbers

More information

Croatian Open Competition in Informatics, contest 5 February 23, 2008

Croatian Open Competition in Informatics, contest 5 February 23, 2008 Tasks Task TRI PASCAL JABUKE AVOGADRO BARICA BAZA Memory limit (heap+stack) Time limit (per test) standard (keyboard) standard (screen) 2 MB 1 second 2 seconds Number of tests 10 10 10 10 Points per test

More information

Math is Cool Championships Sponsored by: EKA Chemicals 6 th Grade - February 26, 1999 Individual Contest

Math is Cool Championships Sponsored by: EKA Chemicals 6 th Grade - February 26, 1999 Individual Contest Math is Cool Championships - 1998-99 Sponsored by: EKA Chemicals Individual Contest Express all answers as reduced fractions unless stated otherwise. Leave answers in terms of π where applicable. Do not

More information

Launchpad Maths. Arithmetic II

Launchpad Maths. Arithmetic II Launchpad Maths. Arithmetic II LAW OF DISTRIBUTION The Law of Distribution exploits the symmetries 1 of addition and multiplication to tell of how those operations behave when working together. Consider

More information

IMOK Maclaurin Paper 2014

IMOK Maclaurin Paper 2014 IMOK Maclaurin Paper 2014 1. What is the largest three-digit prime number whose digits, and are different prime numbers? We know that, and must be three of,, and. Let denote the largest of the three digits,

More information

Math 205 Test 2 Key. 1. Do NOT write your answers on these sheets. Nothing written on the test papers will be graded

Math 205 Test 2 Key. 1. Do NOT write your answers on these sheets. Nothing written on the test papers will be graded Math 20 Test 2 Key Instructions. Do NOT write your answers on these sheets. Nothing written on the test papers will be graded. 2. Please begin each section of questions on a new sheet of paper. 3. Please

More information

Fermat Contest (Grade 11)

Fermat Contest (Grade 11) The CENTE for EDUCATION in MATHEMATIC and COMUTING www.cemc.uwaterloo.ca Fermat Contest (Grade 11) Thursday, February 23, 2012 (in North America and outh America) Friday, February 24, 2012 (outside of

More information

PART I: NO CALCULATOR (115 points)

PART I: NO CALCULATOR (115 points) Prealgebra Practice Midterm Math 40 OER (Ch. 1-4) PART I: NO CALCULATOR (115 points) (1.) 1. Find the difference. a) 578 80 480 b) 10 165 51 (1.). Multiply the given numbers. 684 9. Divide the given numbers.

More information

Skill Builder. J. B. Wright A D VA N TA G E

Skill Builder. J. B. Wright A D VA N TA G E MATHS MATE Skill Builder 6 J. B. Wright THE EDUCATIONAL A D VA N TA G E THE EDUCATIONAL MATHS MATE /6 Skill Builder J. B. Wright Published by The Educational Advantage Pty Ltd PO Box 068 Echuca VIC 64

More information

MATHCOUNTS Mock National Competition Sprint Round Problems Name. State DO NOT BEGIN UNTIL YOU HAVE SET YOUR TIMER TO FORTY MINUTES.

MATHCOUNTS Mock National Competition Sprint Round Problems Name. State DO NOT BEGIN UNTIL YOU HAVE SET YOUR TIMER TO FORTY MINUTES. MATHCOUNTS 2015 Mock National Competition Sprint Round Problems 1 30 Name State DO NOT BEGIN UNTIL YOU HAVE SET YOUR TIMER TO FORTY MINUTES. This section of the competition consists of 30 problems. You

More information

Movement of the pieces

Movement of the pieces Movement of the pieces Rook The rook moves in a straight line, horizontally or vertically. The rook may not jump over other pieces, that is: all squares between the square where the rook starts its move

More information

Grade 6 Math Circles. Math Jeopardy

Grade 6 Math Circles. Math Jeopardy Faculty of Mathematics Waterloo, Ontario N2L 3G1 Introduction Grade 6 Math Circles November 28/29, 2017 Math Jeopardy Centre for Education in Mathematics and Computing This lessons covers all of the material

More information

Math 1111 Math Exam Study Guide

Math 1111 Math Exam Study Guide Math 1111 Math Exam Study Guide The math exam will cover the mathematical concepts and techniques we ve explored this semester. The exam will not involve any codebreaking, although some questions on the

More information

SENIOR DIVISION COMPETITION PAPER

SENIOR DIVISION COMPETITION PAPER A u s t r a l i a n M at h e m at i c s C o m p e t i t i o n a n a c t i v i t y o f t h e a u s t r a l i a n m at h e m at i c s t r u s t THURSDAY 2 AUGUST 2012 NAME SENIOR DIVISION COMPETITION PAPER

More information

Instruction Cards Sample

Instruction Cards Sample Instruction Cards Sample mheducation.com/prek-12 Instruction Cards Table of Contents Level A: Tunnel to 100... 1 Level B: Race to the Rescue...15 Level C: Fruit Collector...35 Level D: Riddles in the Labyrinth...41

More information

NRP Math Challenge Club

NRP Math Challenge Club Week 7 : Manic Math Medley 1. You have exactly $4.40 (440 ) in quarters (25 coins), dimes (10 coins), and nickels (5 coins). You have the same number of each type of coin. How many dimes do you have? 2.

More information

Probability and Statistics

Probability and Statistics Probability and Statistics Activity: Do You Know Your s? (Part 1) TEKS: (4.13) Probability and statistics. The student solves problems by collecting, organizing, displaying, and interpreting sets of data.

More information

Math is Cool Masters

Math is Cool Masters Individual Multiple Choice Contest 1 Evaluate: ( 128)( log 243) log3 2 A) 35 B) 42 C) 12 D) 36 E) NOTA 2 What is the sum of the roots of the following function? x 2 56x + 71 = 0 A) -23 B) 14 C) 56 D) 71

More information

HIGH SCHOOL - PROBLEMS

HIGH SCHOOL - PROBLEMS PURPLE COMET! MATH MEET April 2013 HIGH SCHOOL - PROBLEMS Copyright c Titu Andreescu and Jonathan Kane Problem 1 Two years ago Tom was 25% shorter than Mary. Since then Tom has grown 20% taller, and Mary

More information

The Real Number System and Pythagorean Theorem Unit 9 Part B

The Real Number System and Pythagorean Theorem Unit 9 Part B The Real Number System and Pythagorean Theorem Unit 9 Part B Standards: 8.NS.1 Know that numbers that are not rational are called irrational. Understand informally that every number has a decimal expansion;

More information

South African Computer Olympiad Final Round Day 2. Overview. Carruthers- Smith Problem parrots seen search. seen.java seen.py seen.c seen.cpp seen.

South African Computer Olympiad Final Round Day 2. Overview. Carruthers- Smith Problem parrots seen search. seen.java seen.py seen.c seen.cpp seen. Overview Keegan Carruthers- Smith Marco Gallotta Carl Hultquist Problem parrots seen search Source parrots.java parrots.py parrots.c parrots.cpp parrots.pas seen.java seen.py seen.c seen.cpp seen.pas N/A

More information

Binary Continued! November 27, 2013

Binary Continued! November 27, 2013 Binary Tree: 1 Binary Continued! November 27, 2013 1. Label the vertices of the bottom row of your Binary Tree with the numbers 0 through 7 (going from left to right). (You may put numbers inside of the

More information

2006 Pascal Contest (Grade 9)

2006 Pascal Contest (Grade 9) Canadian Mathematics Competition An activity of the Centre for Education in Mathematics and Computing, University of Waterloo, Waterloo, Ontario 2006 Pascal Contest (Grade 9) Wednesday, February 22, 2006

More information

MATH KANGARO O INSTRUCTIONS GRADE

MATH KANGARO O INSTRUCTIONS GRADE INTERNATIONAL CO NTES T -GAME MATH KANGARO O CANADA, 201 7 INSTRUCTIONS GRADE 11-1 2 1. You have 75 minutes to solve 30 multiple choice problems. For each problem, circle only one of the proposed five

More information

Warm-Up A palindrome is a number that reads the same forward as backward. How many 3-digit palindromes are multiples of 3?

Warm-Up A palindrome is a number that reads the same forward as backward. How many 3-digit palindromes are multiples of 3? Warm-Up 7 1. A triangle with a height of 24 inches has the same area as a rectangle 12 inches by 6 inches. How many inches long is the base of the triangle that corresponds to the 24-inch height? 2. Rohan

More information

POLYA'S FOUR STEP PROBLEM SOLVING PROCESS Understand. Devise a Plan. Carry out Plan. Look Back. PROBLEM SOLVING STRATEGIES (exmples) Making a Drawlnq

POLYA'S FOUR STEP PROBLEM SOLVING PROCESS Understand. Devise a Plan. Carry out Plan. Look Back. PROBLEM SOLVING STRATEGIES (exmples) Making a Drawlnq 1.1 KEY IDEAS POLYA'S FOUR STEP PROBLEM SOLVING PROCESS Understand Devise a Plan Carry out Plan Look Back PROBLEM SOLVING STRATEGIES (exmples) Making a Drawlnq Guesslnc and Checking Making a Table UsinQ

More information

Use the following games to help students practice the following [and many other] grade-level appropriate math skills.

Use the following games to help students practice the following [and many other] grade-level appropriate math skills. ON Target! Math Games with Impact Students will: Practice grade-level appropriate math skills. Develop mathematical reasoning. Move flexibly between concrete and abstract representations of mathematical

More information

UNIT 5 INTRODUCTION TO FRACTIONS

UNIT 5 INTRODUCTION TO FRACTIONS UNIT INTRODUCTION TO FRACTIONS INTRODUCTION In this Unit, we will investigate fractions and their multiple meanings. We have seen fractions before in the context of division. For example, we can think

More information

Cayley Contest (Grade 10) Thursday, February 25, 2010

Cayley Contest (Grade 10) Thursday, February 25, 2010 Canadian Mathematics Competition An activity of the Centre for Education in Mathematics and Computing, University of Waterloo, Waterloo, Ontario Cayley Contest (Grade 10) Thursday, February 2, 2010 Time:

More information

The game of Paco Ŝako

The game of Paco Ŝako The game of Paco Ŝako Created to be an expression of peace, friendship and collaboration, Paco Ŝako is a new and dynamic chess game, with a mindful touch, and a mind-blowing gameplay. Two players sitting

More information

Intermediate Mathematics League of Eastern Massachusetts

Intermediate Mathematics League of Eastern Massachusetts Meet #5 April 2003 Intermediate Mathematics League of Eastern Massachusetts www.imlem.org Meet #5 April 2003 Category 1 Mystery You may use a calculator 1. In his book In an Average Lifetime, author Tom

More information

Senior Math Circles February 10, 2010 Game Theory II

Senior Math Circles February 10, 2010 Game Theory II 1 University of Waterloo Faculty of Mathematics Centre for Education in Mathematics and Computing Senior Math Circles February 10, 2010 Game Theory II Take-Away Games Last Wednesday, you looked at take-away

More information

Grade 6 Math Circles Combinatorial Games November 3/4, 2015

Grade 6 Math Circles Combinatorial Games November 3/4, 2015 Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 6 Math Circles Combinatorial Games November 3/4, 2015 Chomp Chomp is a simple 2-player game. There

More information

What is the sum of the positive integer factors of 12?

What is the sum of the positive integer factors of 12? 1. $ Three investors decided to buy a time machine, with each person paying an equal share of the purchase price. If the purchase price was $6000, how much did each investor pay? $6,000 2. What integer

More information

UTD Programming Contest for High School Students April 1st, 2017

UTD Programming Contest for High School Students April 1st, 2017 UTD Programming Contest for High School Students April 1st, 2017 Time Allowed: three hours. Each team must use only one computer - one of UTD s in the main lab. Answer the questions in any order. Use only

More information

AI Plays Yun Nie (yunn), Wenqi Hou (wenqihou), Yicheng An (yicheng)

AI Plays Yun Nie (yunn), Wenqi Hou (wenqihou), Yicheng An (yicheng) AI Plays 2048 Yun Nie (yunn), Wenqi Hou (wenqihou), Yicheng An (yicheng) Abstract The strategy game 2048 gained great popularity quickly. Although it is easy to play, people cannot win the game easily,

More information

Y8 & Y9 Number Starters A Spire Maths Activity

Y8 & Y9 Number Starters A Spire Maths Activity Y8 & Y9 Number Starters A Spire Maths Activity https://spiremaths.co.uk/ia/ There are 21 Number Interactives: each with three levels. The titles of the interactives are given below. Brief teacher notes

More information

CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2. Assigned: Monday, February 6 Due: Saturday, February 18

CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2. Assigned: Monday, February 6 Due: Saturday, February 18 CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2 Assigned: Monday, February 6 Due: Saturday, February 18 Hand-In Instructions This assignment includes written problems and programming

More information

CS Project 1 Fall 2017

CS Project 1 Fall 2017 Card Game: Poker - 5 Card Draw Due: 11:59 pm on Wednesday 9/13/2017 For this assignment, you are to implement the card game of Five Card Draw in Poker. The wikipedia page Five Card Draw explains the order

More information

ACM ICPC World Finals Warmup 2 At UVa Online Judge. 7 th May 2011 You get 14 Pages 10 Problems & 300 Minutes

ACM ICPC World Finals Warmup 2 At UVa Online Judge. 7 th May 2011 You get 14 Pages 10 Problems & 300 Minutes ACM ICPC World Finals Warmup At UVa Online Judge 7 th May 011 You get 14 Pages 10 Problems & 300 Minutes A Unlock : Standard You are about to finish your favorite game (put the name of your favorite game

More information

The Pieces Lesson. In your chess set there are six different types of piece.

The Pieces Lesson. In your chess set there are six different types of piece. In your chess set there are six different types of piece. In this lesson you'll learn their names and where they go at the start of the game. If you happen to have a chess set there it will help you to

More information

This PDF document created by E.Baud / Eurasia-Chess is an extension to the «Mini-Shogi game formatted to fit a CD box, by Erhan Çubukcuoğlu», to print&cut yourself for crafting your own game. http://www.boardgamegeek.com/geeklist/51428/games-formatted-to-fit-in-a-cd-box

More information

Senior Design Competition Problem

Senior Design Competition Problem Senior Design Competition Problem Spring 2014 Waterloo Engineering Competition July 4-5, 2014 SCHEDULE The schedule of the Spring 2014 Senior Team Design competition is as follows: Friday, July 4 5:15

More information

Grade 6 Math Circles Combinatorial Games - Solutions November 3/4, 2015

Grade 6 Math Circles Combinatorial Games - Solutions November 3/4, 2015 Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Grade 6 Math Circles Combinatorial Games - Solutions November 3/4, 2015 Chomp Chomp is a simple 2-player

More information

After learning the Rules, What should beginners learn next?

After learning the Rules, What should beginners learn next? After learning the Rules, What should beginners learn next? Chess Puzzling Presentation Nancy Randolph Capital Conference June 21, 2016 Name Introduction to Chess Test 1. How many squares does a chess

More information

Intermediate Mathematics League of Eastern Massachusetts

Intermediate Mathematics League of Eastern Massachusetts Meet #5 March 2006 Intermediate Mathematics League of Eastern Massachusetts Meet #5 March 2006 Category 1 Mystery You may use a calculator today. 1. The combined cost of a movie ticket and popcorn is $8.00.

More information

Table of Contents. Table of Contents 1

Table of Contents. Table of Contents 1 Table of Contents 1) The Factor Game a) Investigation b) Rules c) Game Boards d) Game Table- Possible First Moves 2) Toying with Tiles a) Introduction b) Tiles 1-10 c) Tiles 11-16 d) Tiles 17-20 e) Tiles

More information