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

Size: px
Start display at page:

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

Transcription

1 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 is a pangram. A pangram is a sentence that contains at least once each of all 26 letters of the English alphabet. Pangram examples: the quick brown fox jumps over a lazy dog jackdaws loves my big sphinx of quartz Each contestant must indicate if each sentence is a pangram or not. During the ACM Contest, you may play along with actual contestants from the show! You ll be given the same sentences as they appeared on the show. Can you do as well as the contestant? The input contains several test cases. Each test case is given in a single line that contains a non-empty string of at most 2 characters. Each string represents a sentence. The words of the sentence are separated with a single space. Only lowercase letters of the English alphabet and spaces appear in each line of the input. The last test case is followed by a line containing a single asterisk. For each test case your program must output a single line, containing an uppercase Y if the sentence is a pangram or an uppercase N if the sentence is not a pangram. jackdawf loves my big quartz sphinx abcdefghijklmnopqrstuvwxyz hello world * for the sample input Y Y N

2 ACM ICPC29 Latin American Regionals 2 Problem B Hexagonal Tiles File code name: hexagonal The path to Mary s school is a straight line paved with hexagonal tiles. The picture below shows an example of the path with 2 numbered tiles Mary loves mathematics. When going to school, she steps on the tiles of that path following these rules: She always starts from the tile with the smiling face (as nothing matches starting anything with a smile!). This tile is always present at the beginning of the path. The other tiles are numbered consecutively, in ascending order, starting from, as shown in the figure. She is not allowed to go back, that is, she must not step on a tile which bears a lower number than the tile she is on (when decided to go to school, there she goes!). She always steps from a tile to a neighboring one (no jumps in order to keep out of harm s way!). She must always finish on the highest numbered tile. When classes are over, she is so tired that she avoids the path and walks on the lawn. Mary does not want to repeat any sequence of steps on the tiles and she would like to know, if the path is paved with N numbered tiles and a tile with the face, how many days will it take to make each possible sequence once. For example, five days will be needed for her to try all possible step sequences if the path has N = 4 tiles, one day for each of the sequences: , -2-4, -3-4, and 2-4. Write a program to determine how many different step sequences there are for a path with a given number N of tiles. The input contains several test cases. Each test case is composed by a line containing an integer N( N 4), the number of tiles in the path. The last test case is followed by a line containing a single zero.

3 ACM ICPC29 Latin American Regionals 3 For each test case, print a line containing a single integer, the number of different step sequences. 4 2 for the sample input

4 ACM ICPC2 Latin American Regional Problem A Mean Median Problem Problem code name: mean The mean of three integers A, B and C is (A + B + C)/3. The median of three integers is the one that would be in the middle if they are sorted in non-decreasing order. Given two integers A and B, return the minimum possible integer C such that the mean and the median of A, B and C are equal. Each test case is given in a single line that contains two integers A and B ( A B 9 ). The last test case is followed by a line containing two zeros. For each test case output one line containing the minimum possible integer C such that the mean and the median of A, B and C are equal. 2 6 for the sample input

5 ACM ICPC2 Latin American Regional 2 Problem B Factorial Again! Problem code name: factorial Mathew, an engineering freshman, is developing an original positional notation for representing integer numbers. He called it A Curious Method (ACM for short). The ACM notation uses the same digits as the decimal notation, i.e., through 9. To convert a number A from ACM to decimal notation you must add k terms, where k is the number of digits of A (in the ACM notation). The value of the i-th term, corresponding the i-th digit a i, counting from right to left, is a i i!. For instance 79 ACM is equivalent to 53, since 7 3! + 2! + 9! = 53. Mathew has just begun studying number theory, and probably does not know which properties a numbering system should have, but at the moment he is only interested in converting a number from ACM to decimal. Could you help him? Each test case is given in a single line that contains a non-empty string of at most 5 digits, representing a number in ACM notation. The string does not have leading zeros. The last test case is followed by a line containing one zero. For each test case output a single line containing the decimal representation of the corresponding ACM number for the sample input

6 ACM ICPC29 Latin American Regionals 6 Problem J Jingle Composing File code name: jingle A. C. Marcos is taking his first steps in the direction of jingle composition. He is having some troubles, but at least he is achieving pleasant melodies and attractive rhythms. In music, a note has a pitch (its frequency, resulting in how high or low is the sound) and a duration (for how long the note should sound). In this problem we are interested only in the duration of the notes. A jingle is divided into a sequence of measures, and a measure is formed by a series of notes. The duration of a note is indicated by its shape. In this problem, we will use uppercase letters to indicate a note s duration. The following table lists all the available notes: Notes Identifier W H Q E S T X Duration /2 /4 /8 /6 /32 /64 The duration of a measure is the sum of the durations of its notes. In Marcos jingles, each measure has the same duration. As Marcos is just a beginner, his famous teacher Johann Sebastian III taught him that the duration of a measure must always be. For example, Marcos wrote a composition containing five measures, of which the first four have the correct duration and the last one is wrong. In the example below, each measure is surrounded with slashes and each note is represented as in the table above. /HH/QQQQ/XXXTXTEQH/W/HW/ Marcos likes computers as much as music. He wants you to write a program that determines, for each one of his compositions, how many measures have the right duration. The input contains several test cases. Each test case is described in a single line containing a string whose length is between 3 and 2 characters, inclusive, representing a composition. A composition begins and ends with a slash /. Measures in a composition are separated by a slash /. Each note in a measure is represented by the corresponding uppercase letter, as described above. You may assume that each composition contains at least one measure and that each measure contains at least one note. All characters in the input will be either slashes or one of the seven uppercase letters used to represent notes, as described above. The last test case is followed by a line containing a single asterisk.

7 ACM ICPC29 Latin American Regionals 7 For each test case your program must output a single line, containing a single integer, the number of measures that have the right duration. /HH/QQQQ/XXXTXTEQH/W/HW/ /W/W/SQHES/ /WE/TEX/THES/ * for the sample input 4 3

2015 ICPC. Northeast North America Preliminary

2015 ICPC. Northeast North America Preliminary 2015 ICPC Northeast North America Preliminary sponsored by the Clarkson Student Chapter of the ACM Saturday, October 17, 2015 11:00 am 5:00 pm Applied CS Labs, Clarkson University Science Center 334-336

More information

To practice overall problem-solving skills, as well as general design of a program

To practice overall problem-solving skills, as well as general design of a program Programming Assignment 5 Due March 27, 2015 at 11:59 PM Objectives To gain experience with file input/output techniques To gain experience with formatting output To practice overall problem-solving skills,

More information

ACM-ICPC Indonesia National Contest Problem A. The Best Team. Time Limit: 2s

ACM-ICPC Indonesia National Contest Problem A. The Best Team. Time Limit: 2s Problem A The Best Team Time Limit: 2s ACM-ICPC 2010 is drawing near and your university want to select three out of N students to form the best team. The university however, has a limited budget, so they

More information

CPS 109 Lab 2 Alexander Ferworn Updated Fall 05. Ryerson University. School of Computer Science CPS109. Lab 2

CPS 109 Lab 2 Alexander Ferworn Updated Fall 05. Ryerson University. School of Computer Science CPS109. Lab 2 Ryerson University Chapter 2: Using Objects Lab Exercises School of Computer Science CPS109 Lab 2 Objects, Classes and Methods 1. The String class provides methods that you can apply to String objects.

More information

Problem J1: Squares. Sample Session 1 Program Output: Number of tiles? User Input: 9 Program Output: The largest square has side length 3.

Problem J1: Squares. Sample Session 1 Program Output: Number of tiles? User Input: 9 Program Output: The largest square has side length 3. Problem J1: Squares Gigi likes to play with squares. She has a collection of equal-sized square tiles. Gigi wants to arrange some or all of her tiles on a table to form a solid square. What is the side

More information

ACM ICPC Bolivia Programming Contest Cuarto On-Line. Set de Problemas. Domingo 30 de Mayo del 2010

ACM ICPC Bolivia Programming Contest Cuarto On-Line. Set de Problemas. Domingo 30 de Mayo del 2010 ACM ICPC Bolivia Programming Contest 1 Cuarto On-Line Set de Problemas Domingo 3 de Mayo del 1 A - Comparison Expressions B - Esperanto Lessons C - Karaoke D - Playing with Marbles E - Publish of Perish

More information

Problem A A New Alphabet

Problem A A New Alphabet Problem A A New Alphabet A New Alphabet has been developed for Internet communications. While the glyphs of the new alphabet don t necessarily improve communications in any meaningful way, they certainly

More information

Part II Composition of Functions

Part II Composition of Functions Part II Composition of Functions The big idea in this part of the book is deceptively simple. It s that we can take the value returned by one function and use it as an argument to another function. By

More information

Program Example 15 String Handling 2

Program Example 15 String Handling 2 Program Example 15 String Handling 2 Objectives Program Purpose Count the number of words, spaces and alphabetic characters in a sentence. Display the tally of letters Learning Goals To develop string

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

Intermediate Mathematics League of Eastern Massachusetts

Intermediate Mathematics League of Eastern Massachusetts Meet # January 010 Intermediate Mathematics League of Eastern Massachusetts Meet # January 010 Category 1 - Mystery Meet #, January 010 1. Of all the number pairs whose sum equals their product, what is

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

第六屆 ACM ICPC 全國私立大專校院程式競賽. National Contest for Private Universities, Taiwan 2016 競賽題目

第六屆 ACM ICPC 全國私立大專校院程式競賽. National Contest for Private Universities, Taiwan 2016 競賽題目 第六屆 ACM ICPC 全國私立大專校院程式競賽 National Contest for Private Universities, Taiwan 016 競賽題目 Problem 1: Maximum Subsequence Sum Problem (Time Limit: 3 seconds) Given a sequence containing both negative and positive

More information

Problem A : Pak Ga Nern Input from file : a.in Output to console: stdout (in C), cout (in C++), System.out (in Java) Execution time limit: 2 seconds

Problem A : Pak Ga Nern Input from file : a.in Output to console: stdout (in C), cout (in C++), System.out (in Java) Execution time limit: 2 seconds Problem A : Pak Ga Nern Input from file : a.in Contest Problems : 1 Pak and Ga are siblings from the Nern Family. They operate a small poultry business in a remote town. One day, the siblings needed extra

More information

NOWCODER.COM 牛客网 - 中国最大 IT 笔试 / 面试题库 一. 编程题

NOWCODER.COM 牛客网 - 中国最大 IT 笔试 / 面试题库 一. 编程题 牛客网暑期 ACM 多校训练营 ( 第三场 ) 一. 编程题. Eddy was a contestant participating in ACM ICPC contests. ACM is short for Algorithm, Coding, Math. Since in the ACM contest, the most important knowledge is about algorithm,

More information

CS3 Midterm 1 Fall 2007 Standards and solutions

CS3 Midterm 1 Fall 2007 Standards and solutions CS3 Midterm 1 Fall 2007 Standards and solutions Problem 1. And the return value is... ( 9 points) For problems 1-7, write the result of evaluating the Scheme expression that comes before the. If the Scheme

More information

HANDOUT: COMPUTER PARTS

HANDOUT: COMPUTER PARTS HANDOUT: COMPUTER PARTS Because computers are so important to our lives, there is a constant need to design and develop new hardware, software, and systems. Have you used a computer before? I m sure you

More information

Problem A Ceiling Function

Problem A Ceiling Function Problem A Ceiling Function Time limit: 4 seconds Advanced Ceiling Manufacturers (ACM) is analyzing the properties of its new series of Incredibly Collapse-Proof Ceilings (ICPCs). An ICPC consists of n

More information

EUROPEAN KANGOUROU LINGUISTICS ENGLISH-LEVELS 3-4. Linguistic ENGLISH. LEVEL: 3 4 (Γ - Δ Δημοτικού)

EUROPEAN KANGOUROU LINGUISTICS ENGLISH-LEVELS 3-4. Linguistic ENGLISH. LEVEL: 3 4 (Γ - Δ Δημοτικού) Linguistic ENGLISH LEVEL: 3 4 (Γ - Δ Δημοτικού) 10.00 11.00, 20 February 2010 Questions 1-10 : 3 points each Questions 11-20 : 4 points each Questions 21-40 : 5 points each THALES FOUNDATION 1 The Little

More information

2006 Canadian Computing Competition: Senior Division. Sponsor:

2006 Canadian Computing Competition: Senior Division. Sponsor: 2006 Canadian Computing Competition: Senior Division Sponsor: Canadian Computing Competition Student Instructions for the Senior Problems 1. You may only compete in one competition. If you wish to write

More information

COCI 2016/2017. Tasks. Round #3, November 26th, Task Time limit Memory limit Score. Imena 1 s 32 MB 50. Pohlepko 1 s 64 MB 80

COCI 2016/2017. Tasks. Round #3, November 26th, Task Time limit Memory limit Score. Imena 1 s 32 MB 50. Pohlepko 1 s 64 MB 80 Tasks Task Time limit Memory limit Score Imena 1 s 32 MB 50 Pohlepko 1 s 64 MB 80 Kronican 2 s 32 MB 100 Kvalitetni 1 s 64 MB 120 Zoltan 1 s 32 MB 140 Meksikanac 1.5 s 256 MB 160 Total 650 Task Imena 1

More information

Iron County Schools. Yes! Less than 90 No! 90 No! More than 90. angle: an angle is made where two straight lines cross or meet each other at a point.

Iron County Schools. Yes! Less than 90 No! 90 No! More than 90. angle: an angle is made where two straight lines cross or meet each other at a point. Iron County Schools 1 acute angle: any angle that is less than 90. Yes! Less than 90 No! 90 No! More than 90 acute triangle: a triangle where all the angles are less than 90 angle: an angle is made where

More information

Chapter 1. Getting Started

Chapter 1. Getting Started Chapter 1. Hey, Logy, whatcha doing? What s it look like I m doing. I m cleaning the windows so we can get started on our new adventure. Can t you leave the housekeeping until later. We ve got Logo work

More information

Problem 1: Hello World!

Problem 1: Hello World! Problem 1: Hello World! Instructions This is the classic first program made famous in the early 70s. Write the body of the program called Problem1 that prints out The text must be terminated by a new-line

More information

Dear Parent, Sincerely, Your Friends at VTech. To learn more about Preschool Learning and other VTech toys, visit.

Dear Parent, Sincerely, Your Friends at VTech. To learn more about Preschool Learning and other VTech toys, visit. Dear Parent, At VTech we know how important the fi rst day of school is for your child. To help prepare preschoolers for this important event, VTech has developed the Preschool Learning series of interactive

More information

2010 ACM ICPC Southeast USA Regional Programming Contest. 6 November, 2010 PROBLEMS

2010 ACM ICPC Southeast USA Regional Programming Contest. 6 November, 2010 PROBLEMS 21 ACM ICPC Southeast USA Regional Programming Contest 6 November, 21 PROBLEMS A: Balloons... 1 B: Bit Counting... 2 C: Data Recovery... 3 D: Equal Angles... 5 E: Maximum Square... 6 F: Palindrometer...

More information

ACM International Collegiate Programming Contest 2012

ACM International Collegiate Programming Contest 2012 International Collegiate acm Programming Contest 202 event sponsor ACM International Collegiate Programming Contest 202 Latin American Regional Contests November 9th-0th, 202 Contest Session This problem

More information

Problem Solving Strategies set of advanced problems

Problem Solving Strategies set of advanced problems Problem Solving Strategies set of advanced problems Maria Keet University of Cape Town, South Africa ICPC Training Session, April 12, 2015 Task: categorise the following set of more and less advanced problems

More information

THIS IS AN EXAMPLE. READ IT CLOSELY TO LEARN HOW TO GRAPH POLYGONS (closed sided figures) ON THE COORDINATE PLANE AND THEN FIND THE AREA.

THIS IS AN EXAMPLE. READ IT CLOSELY TO LEARN HOW TO GRAPH POLYGONS (closed sided figures) ON THE COORDINATE PLANE AND THEN FIND THE AREA. THIS IS AN EXAMPLE. READ IT CLOSELY TO LEARN HOW TO GRAPH POLYGONS (closed sided figures) ON THE COORDINATE PLANE AND THEN FIND THE AREA. NOW TRY THE PROBLEMS BELOW ON YOUR OWN. DO THESE ON A SEPARATE

More information

ACM Collegiate Programming Contest 2015 (Hong Kong)

ACM Collegiate Programming Contest 2015 (Hong Kong) M ollegiate Programming ontest 2015 (Hong Kong) O-ORGNIZERS: Venue: The Hong Kong Polytechnic University Time: 2015-06-13 [Sat] 1400 1800 Number of Questions: 7 (This is a blank page.) M-HK P 2015 Page

More information

ACM International Collegiate Programming Contest 2013

ACM International Collegiate Programming Contest 2013 International Collegiate acm Programming Contest 013 event sponsor ACM International Collegiate Programming Contest 013 Latin American Regional Contests November 8th-9th, 013 Contest Session This problem

More information

Revision of Level I. In this lesson you will: Revise the topics learnt in the previous level.

Revision of Level I. In this lesson you will: Revise the topics learnt in the previous level. A m In this lesson you will: Revise the topics learnt in the previous level. Lesson1 Revision of Level I Moz walks in and sees that Jyoti is wiping the monitor with a soft duster while Tejas is wiping

More information

Problem Y A limit 1 second. Zigzag

Problem Y A limit 1 second. Zigzag Problem Y A limit second Zigzag Your Ph.D. thesis on properties of integer sequences is coming along nicely. Each chapter is on a di erent type of sequence. The first covers arithmetic sequences. Subsequently

More information

Trombone players produce different pitches partly by varying the length of a tube.

Trombone players produce different pitches partly by varying the length of a tube. Trombone players produce different pitches partly by varying the length of a tube. 7 Variables A variable is a connection between a name and a value.* That sounds simple enough, but some complexities arise

More information

Problem A: Two-Way Carry Propagation

Problem A: Two-Way Carry Propagation Problem A: Two-Way Carry Propagation In 1897, the mathematician L. Aguile invented a special operation (#) over the binary representation of integer numbers. In its simple form, is computed according to

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

Solutions to In Class Problems Week 9, Fri.

Solutions to In Class Problems Week 9, Fri. Massachusetts Institute of Technology 6.042J/18.062J, Fall 05: Mathematics for Computer Science November 4 Prof. Albert R. Meyer and Prof. Ronitt Rubinfeld revised November 4, 2005, 1254 minutes Solutions

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

Encryption à la Mod Name

Encryption à la Mod Name Rock Around the Clock Part Encryption à la Mod Let s call the integers,, 3,, 5, and the mod 7 encryption numbers and define a new mod 7 multiplication operation, denoted by, in the following manner: a

More information

A. Petr and a calendar

A. Petr and a calendar 1-29 Spring 2017 #2 A. Petr and a calendar time limit per test: 2 seconds : standard : standard Petr wants to make a calendar for current month. For this purpose he draws a table in which columns correspond

More information

Week 12: Running Time and Performance

Week 12: Running Time and Performance Week 12: Running Time and Performance 1 Most of the problems you have written in this class run in a few seconds or less Some kinds of programs can take much longer: Chess algorithms (Deep Blue) Routing

More information

Genetic Algorithms Applied to the Knapsack Problem

Genetic Algorithms Applied to the Knapsack Problem Genetic Algorithms Applied to the Knapsack Problem Christopher Queen Department of Mathematics Saint Mary s College of California Moraga, CA Essay Committee: Professor Sauerberg Professor Jones May 16,

More information

TASK NAJBOLJIH 5 OKRET ZADAĆA KOMPIĆI FUNKCIJA RASPORED. zadaca.pas zadaca.c zadaca.cpp

TASK NAJBOLJIH 5 OKRET ZADAĆA KOMPIĆI FUNKCIJA RASPORED. zadaca.pas zadaca.c zadaca.cpp 2 nd round, November 9 th, 20 TASK NAJBOLJIH 5 OKRET ZADAĆA KOMPIĆI FUNKCIJA RASPORED source code najboljih5.pas najboljih5.c najboljih5.cpp okret.pas okret.c okret.cpp zadaca.pas zadaca.c zadaca.cpp kompici.pas

More information

Problem A. Character Encoding

Problem A. Character Encoding Problem A. Character Encoding second In computer science, a character is a letter, a digit, a punctuation mark or some other similar symbol. Since computers can only process numbers, number codes are used

More information

Computer Science Competition District 2018 Programming Problem Set

Computer Science Competition District 2018 Programming Problem Set UIL Computer Science Programming Packet District - 2018 Computer Science Competition District 2018 Programming Problem Set I. General Notes 1. Do the problems in any order you like. They do not have to

More information

Cryptography Worksheet

Cryptography Worksheet Cryptography Worksheet People have always been interested in writing secret messages. In ancient times, people had to write secret messages to keep messengers and interceptors from reading their private

More information

Have the students look at the editor on their computers. Refer to overhead projector as necessary.

Have the students look at the editor on their computers. Refer to overhead projector as necessary. Intro to Programming (Time 15 minutes) Open the programming tool of your choice: If you ve installed, DrRacket, double-click the application to launch it. If you are using the online-tool, click here to

More information

Correlation of Ontario Mathematics 2005 Curriculum to. Addison Wesley Mathematics Makes Sense

Correlation of Ontario Mathematics 2005 Curriculum to. Addison Wesley Mathematics Makes Sense Correlation of Ontario Mathematics 2005 Curriculum to Addison Wesley Math Makes Sense 2 Number Sense and Numeration Overall Expectations By the end of Grade 2, students will: read, represent, compare,

More information

Python allows variables to hold string values, just like any other type (Boolean, int, float). So, the following assignment statements are valid:

Python allows variables to hold string values, just like any other type (Boolean, int, float). So, the following assignment statements are valid: 1 STRINGS Objectives: How text data is internally represented as a string Accessing individual characters by a positive or negative index String slices Operations on strings: concatenation, comparison,

More information

Objective- Students will be able to use the Order of Operations to evaluate algebraic expressions. Evaluating Algebraic Expressions

Objective- Students will be able to use the Order of Operations to evaluate algebraic expressions. Evaluating Algebraic Expressions Objective- Students will be able to use the Order of Operations to evaluate algebraic expressions. Evaluating Algebraic Expressions Variable is a letter or symbol that represents a number. Variable (algebraic)

More information

Student Outcomes. Lesson Notes. Classwork. Discussion (4 minutes)

Student Outcomes. Lesson Notes. Classwork. Discussion (4 minutes) Student Outcomes Students write mathematical statements using symbols to represent numbers. Students know that written statements can be written as more than one correct mathematical sentence. Lesson Notes

More information

Factor Quadratic Expressions

Factor Quadratic Expressions Factor Quadratic Expressions BLM 6... BLM 6 Factor Quadratic Expressions Get Ready BLM 6... Graph Quadratic Relations of the Form y = a(x h) + k. Sketch each parabola. Label the vertex, the axis of symmetry,

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

9.4 Classifying Quadrilaterals

9.4 Classifying Quadrilaterals 9.4 Classifying Quadrilaterals Introduction The Grind Box Isabelle is a friend of Marc and Isaac s at school. She overheard them talking at lunch about the skatepark and is excited to help. Isabelle has

More information

Processing, representing and interpreting data

Processing, representing and interpreting data Processing, representing and interpreting data 21 CHAPTER 2.1 A head CHAPTER 17 21.1 polygons A diagram can be drawn from grouped discrete data. A diagram looks the same as a bar chart except that the

More information

Chapter 5: Probability and Statistics. Middle SchooI Assessments

Chapter 5: Probability and Statistics. Middle SchooI Assessments Chapter 5: Probability and Statistics Middle SchooI Assessments 264 Chapter 5: Probability and Statistics Perplexing Polygons grade 6 OVERARCHING PERPLEXING POLYGONS Cut along dotted lines In Mrs. Mac

More information

Integrated Math 1 Module 3 Honors Sequences and Series Ready, Set, Go! Homework

Integrated Math 1 Module 3 Honors Sequences and Series Ready, Set, Go! Homework 1 Integrated Math 1 Module 3 Honors Sequences and Series Ready, Set, Go! Homework Adapted from The Mathematics Vision Project: Scott Hendrickson, Joleigh Honey, Barbara Kuehl, Travis Lemon, Janet Sutorius

More information

Mth 60 Module 2 Section Signed Numbers All numbers,, and

Mth 60 Module 2 Section Signed Numbers All numbers,, and Section 2.1 - Adding Signed Numbers Signed Numbers All numbers,, and The Number Line is used to display positive and negative numbers. Graph -7, 5, -3/4, and 1.5. Where are the positive numbers always

More information

Physics 306 Computing Lab 1: Hello, World!

Physics 306 Computing Lab 1: Hello, World! 1. Introduction Physics 306 Computing Lab 1: Hello, World! In today s lab, you will learn how to write simple programs, to compile them, and to run them. You will learn about input and output, variables,

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

Westminster College 2016 High School Programming Contest. March 7, 2016

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

More information

Student Password Management and Office 365 Directions

Student Password Management and Office 365 Directions PART I: You will sign in to the Password Self-Service to retrieve your Office 365 account information and set up a new password. This can only be done on a school computer. 1. Double Click on the Password

More information

3 The Building Blocks: Data Types, Literals, and Variables

3 The Building Blocks: Data Types, Literals, and Variables chapter 3 The Building Blocks: Data Types, Literals, and Variables 3.1 Data Types A program can do many things, including calculations, sorting names, preparing phone lists, displaying images, validating

More information

introduction to Programming in C Department of Computer Science and Engineering Lecture No. #40 Recursion Linear Recursion

introduction to Programming in C Department of Computer Science and Engineering Lecture No. #40 Recursion Linear Recursion introduction to Programming in C Department of Computer Science and Engineering Lecture No. #40 Recursion Linear Recursion Today s video will talk about an important concept in computer science which is

More information

Problem A. Find a Number

Problem A. Find a Number Problem A. Find a Number You are given two positive integers d and s. Find minimal positive integer n which is divisible by d and has sum of digits equal to s. The first line contains two positive integers

More information

Objectives. Connecting with Computer Science 2

Objectives. Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn how numbering systems are used to count Understand the significance of positional value

More information

STANDARDS OF LEARNING CONTENT REVIEW NOTES. Grade 6 Mathematics 3 rd Nine Weeks,

STANDARDS OF LEARNING CONTENT REVIEW NOTES. Grade 6 Mathematics 3 rd Nine Weeks, STANDARDS OF LEARNING CONTENT REVIEW NOTES Grade 6 Mathematics 3 rd Nine Weeks, 2016-2017 1 2 Content Review: Standards of Learning in Detail Grade 6 Mathematics: Third Nine Weeks 2016-2017 This resource

More information

Born in Tulsa in 1914 and passed away in Norman in 2010.

Born in Tulsa in 1914 and passed away in Norman in 2010. Sooner Math Bowl 2012 November 15, 2012 Photo Martin Gardner by Alex Bellos in 2008 in Norman Born in Tulsa in 1914 and passed away in Norman in 2010. 1 Stage 1 2 Stage 1, Round 1 (2 Questions, 3 Minutes)

More information

CHAPTER 3: FUNDAMENTAL OF SOFTWARE ENGINEERING FOR GAMES.

CHAPTER 3: FUNDAMENTAL OF SOFTWARE ENGINEERING FOR GAMES. CHAPTER 3: FUNDAMENTAL OF SOFTWARE ENGINEERING FOR GAMES www.asyrani.com TOPICS COVERED C++ Review and Best Practices Data, Code, and Memory in C++ Catching and Handling Errors C++ REVIEW AND BEST PRACTICES

More information

Kharagpur Site Online Problems 2013

Kharagpur Site Online Problems 2013 Kharagpur Site Online Problems 013 Problem #1: List Editing At the ACME University, as part of the Graduate course work, each student is required to undergo project work. The authorities always make an

More information

Problem A All about that base

Problem A All about that base Problem A All about that base The base (or radix) of a positional numeral system is the number of symbols that can be used to represent a number in that system. The base 10 system (also known as decimal)

More information

Unit 2: Accentuate the Negative Name:

Unit 2: Accentuate the Negative Name: Unit 2: Accentuate the Negative Name: 1.1 Using Positive & Negative Numbers Number Sentence A mathematical statement that gives the relationship between two expressions that are composed of numbers and

More information

Encoding. A thesis submitted to the Graduate School of University of Cincinnati in

Encoding. A thesis submitted to the Graduate School of University of Cincinnati in Lossless Data Compression for Security Purposes Using Huffman Encoding A thesis submitted to the Graduate School of University of Cincinnati in a partial fulfillment of requirements for the degree of Master

More information

BNPC-HS 2007 BABAK PENYISIHAN (PILIHAN GANDA)

BNPC-HS 2007 BABAK PENYISIHAN (PILIHAN GANDA) 1 function f(a,b) C = 0 while B > 0 do C = C + A * (B mod 2) A = A * 2 B = B / 2 return C Let A, B, and C be integers. If A and B is natural numbers, what will function f(a,b) return? A. A power B B. Multiplication

More information

Sample midterm 1 #1. Problem 1 (What will Scheme print?).

Sample midterm 1 #1. Problem 1 (What will Scheme print?). Sample midterm 1 #1 Problem 1 (What will Scheme print?). What will Scheme print in response to the following expressions? If an expression produces an error message, you may just say error ; you don t

More information

6d c Does Not Require Renaming. difference. Write each expression and the difference in the correct box. 6a.

6d c Does Not Require Renaming. difference. Write each expression and the difference in the correct box. 6a. Name Page. Kara followed these steps to evaluate the expression + ( ). = + = = George looks at Kara s work and says she made a mistake. He says she should have divided by before she added. Part A Which

More information

62 FLORIDA HIGH SCHOOLS COMPUTING COMPETITION

62 FLORIDA HIGH SCHOOLS COMPUTING COMPETITION 62 FLORIDA HIGH SCHOOLS COMPUTING COMPETITION 1985-1994 FLORIDA HIGH SCHOOLS COMPUTING COMPETITION '89 1.1 Write a program to print the phrase 1989 COMPUTER CONTEST on each line of the screen such that

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

Working with Sequences: Section 8.1 and 8.2. Bonita Sharif

Working with Sequences: Section 8.1 and 8.2. Bonita Sharif Chapter 8 Working with Sequences: Strings and Lists Section 8.1 and 8.2 Bonita Sharif 1 Sequences A sequence is an object that consists of multiple data items These items are stored consecutively Examples

More information

Aston Hall s A-Z of mathematical terms

Aston Hall s A-Z of mathematical terms Aston Hall s A-Z of mathematical terms The following guide is a glossary of mathematical terms, covering the concepts children are taught in FS2, KS1 and KS2. This may be useful to clear up any homework

More information

Meet the Cast. The Cosmic Defenders: Gobo, Fabu, and Pele The Cosmic Defenders are transdimensional

Meet the Cast. The Cosmic Defenders: Gobo, Fabu, and Pele The Cosmic Defenders are transdimensional Meet the Cast Mitch A computer science student who loves to make cool programs, he s passionate about movies and art, too! Mitch is an all-around good guy. The Cosmic Defenders: Gobo, Fabu, and Pele The

More information

Problems Overview. The 2015 Asia ACM-ICPC Hanoi Regional Contest. Note: The input and output for all the problems are standard input and output.

Problems Overview. The 2015 Asia ACM-ICPC Hanoi Regional Contest. Note: The input and output for all the problems are standard input and output. Problems Overview Problem A: Obfuscated Emails Problem B: Parallelogram Problem C: Egyptian Encryption Problem D: Work Effectiveness Problem E: Pepsi Distribution Problem F: Genome Problem G: Cloud Computing

More information

Data Structure and Algorithm Homework #1 Due: 1:20pm, Tuesday, March 21, 2017 TA === Homework submission instructions ===

Data Structure and Algorithm Homework #1 Due: 1:20pm, Tuesday, March 21, 2017 TA   === Homework submission instructions === Data Structure and Algorithm Homework #1 Due: 1:20pm, Tuesday, March 21, 2017 TA email: dsa1@csie.ntu.edu.tw === Homework submission instructions === For Problem 1-3, please put all your solutions in a

More information

CMPS 10 Introduction to Computer Science Lecture Notes

CMPS 10 Introduction to Computer Science Lecture Notes CMPS Introduction to Computer Science Lecture Notes Binary Numbers Until now we have considered the Computing Agent that executes algorithms to be an abstract entity. Now we will be concerned with techniques

More information

IDM 232. Scripting for Interactive Digital Media II. IDM 232: Scripting for IDM II 1

IDM 232. Scripting for Interactive Digital Media II. IDM 232: Scripting for IDM II 1 IDM 232 Scripting for Interactive Digital Media II IDM 232: Scripting for IDM II 1 PHP HTML-embedded scripting language IDM 232: Scripting for IDM II 2 Before we dive into code, it's important to understand

More information

My First Command-Line Program

My First Command-Line Program 1. Tutorial Overview My First Command-Line Program In this tutorial, you re going to create a very simple command-line application that runs in a window. Unlike a graphical user interface application where

More information

(Refer Slide Time: 00:23)

(Refer Slide Time: 00:23) In this session, we will learn about one more fundamental data type in C. So, far we have seen ints and floats. Ints are supposed to represent integers and floats are supposed to represent real numbers.

More information

20 th South African Regional International Collegiate Programming Contest

20 th South African Regional International Collegiate Programming Contest 20 th South African Regional International Collegiate Programming Contest Problem Description 20 October 2018 Problem A Green Balloon Huff and Puff You have discovered a piece of text encoded by an ancient

More information

CS102 Unit 2. Sets and Mathematical Formalism Programming Languages and Simple Program Execution

CS102 Unit 2. Sets and Mathematical Formalism Programming Languages and Simple Program Execution 1 CS102 Unit 2 Sets and Mathematical Formalism Programming Languages and Simple Program Execution 2 Review Show how "Hi!\n" would be stored in the memory below Use decimal to represent each byte Remember

More information

Car Parking. Task Description IOI 2000 Beijing PROBLEM

Car Parking. Task Description IOI 2000 Beijing PROBLEM 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

More information

Lesson 4-1: Angles Notation and Types of Angles

Lesson 4-1: Angles Notation and Types of Angles Name: Date: Lesson 4-1: Angles Notation and Types of Angles Learning Goals: 1. What are a right angle, acute angle, and obtuse angle? 2. How do I name an angle? 3. How can we use special angle pair definitions

More information

ASSIGNMENT 3. COMP-202, Winter 2015, All Sections. Due: Tuesday, February 24, 2015 (23:59)

ASSIGNMENT 3. COMP-202, Winter 2015, All Sections. Due: Tuesday, February 24, 2015 (23:59) ASSIGNMENT 3 COMP-202, Winter 2015, All Sections Due: Tuesday, February 24, 2015 (23:59) Please read the entire pdf before starting. You must do this assignment individually and, unless otherwise specified,

More information

Lavinia Roberts Big Dog Publishing

Lavinia Roberts Big Dog Publishing Lavinia Roberts Big Dog Publishing 2 Copyright 2017, Lavinia Roberts ALL RIGHTS RESERVED Till Emojis Do Us Part is fully protected under the copyright laws of the United States of America, and all of the

More information

BORDER PATTERNS, TESSELLATIONS & PROBLEM SOLVING WITH TRANSFORMATIONS

BORDER PATTERNS, TESSELLATIONS & PROBLEM SOLVING WITH TRANSFORMATIONS BORDER PATTERNS, TESSELLATIONS & PROBLEM SOLVING WITH TRANSFORMATIONS Michael de Villiers University of KwaZulu-Natal (On sabbatical Kennesaw State University, USA) This paper will firstly explore some

More information

Look at these number cards. (a) Choose any two of the number cards that add to 2. (b) Choose any three of the number cards that add to 5

Look at these number cards. (a) Choose any two of the number cards that add to 2. (b) Choose any three of the number cards that add to 5 Number cards 1 Look at these number cards. 7 5 3 1 1 3 5 7 (a) Choose any two of the number cards that add to 2 + = 2 (b) Choose any three of the number cards that add to 5 + + = 5 (c) Choose any four

More information

TASK TABLICA ZBROJ EKIPA ZNANSTVENIK DIFERENCIJA MONO. ekipa.pas ekipa.c ekipa.cpp. zbroj.pas zbroj.c zbroj.cpp

TASK TABLICA ZBROJ EKIPA ZNANSTVENIK DIFERENCIJA MONO. ekipa.pas ekipa.c ekipa.cpp. zbroj.pas zbroj.c zbroj.cpp TASK TABLICA ZBROJ EKIPA ZNANSTVENIK DIFERENCIJA MONO source code tablica.pas tablica.c tablica.cpp zbroj.pas zbroj.c zbroj.cpp ekipa.pas ekipa.c ekipa.cpp znan.pas znan.c znan.cpp dif.pas dif.c dif.cpp

More information

Measuring in Pixels with Scratch

Measuring in Pixels with Scratch In the Primary division, a big mathematical idea is understanding how to measure correctly, using both non standard and standardized measurements. Many students struggle with measuring because they fail

More information

Homework Packet Week #2

Homework Packet Week #2 All problems with answers or work are examples. Homework Packet Week #2 Section 1.1 Determine the independent and dependent quantities in each scenario. (1-2) 1. Phillip enjoys rock climbing on the weekends.

More information

MAT 142 College Mathematics. Module ST. Statistics. Terri Miller revised July 14, 2015

MAT 142 College Mathematics. Module ST. Statistics. Terri Miller revised July 14, 2015 MAT 142 College Mathematics Statistics Module ST Terri Miller revised July 14, 2015 2 Statistics Data Organization and Visualization Basic Terms. A population is the set of all objects under study, a sample

More information

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet. Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that

More information