You are not logged in. Please login at www.codechef.com to post your questions!

×

INOI1602 Brackets

As the statement did not state very clear, I would like to ask if a subseqeunce can be empty? (Not choosing any pairs at all)

Also what is the answer if there is no valid subseqeunces at all?

asked 19 Jun '17, 11:27

kirakira's gravatar image

3★kirakira
1
accept rate: 0%

A Link to Q will be appreciated ^^

(19 Jun '17, 11:31) vijju123 ♦♦5★

This is the problem https://www.codechef.com/IOIPRAC/problems/INOI1602

  1. Yes, a sub-sequence may be empty.
  2. There may be no valid sub-sequence at all.

In both the cases, the answer should be 0.

link

answered 19 Jun '17, 16:19

c_utkarsh's gravatar image

5★c_utkarsh
1.1k5
accept rate: 17%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×67

question asked: 19 Jun '17, 11:27

question was seen: 292 times

last updated: 19 Jun '17, 16:19