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

×

GCTNM Editorial

PROBLEM LINK: Contest Practice

Author: Baban Gain
Editorialist: Baban Gain

DIFFICULTY:

EASY

PREREQUISITES:

String

PROBLEM:

As the name of our college "Government College of Engineering & Textile Technology Berhampore" is too long, many students usually misspell the name.
Hence our college has decided to reject any application, if more than 50% characters of any word is wrong.
You need to calculate if a application will be accepted or rejected.
Note : It is guaranteed that each word in input consists of equal no. of characters as college name. Also, They are not case sensitive.

EXPLANATION:

For every word, count the no. of correct characters and no. of wrong charcters in a word.
As the words are space separated, by space, check if wrong > correct at the end of every word (i.e. on encountering " ") and check the same at the end of string for the last word.

AUTHOR'S AND TESTER'S SOLUTIONS:

Author's solution can be found here.

This question is marked "community wiki".

asked 05 Sep '18, 19:06

babangain's gravatar image

3★babangain
434213
accept rate: 4%

edited 30 Oct '18, 22:48

admin's gravatar image

0★admin ♦♦
19.8k350498541

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:

×15,852
×3,820
×643
×10
×2

question asked: 05 Sep '18, 19:06

question was seen: 141 times

last updated: 30 Oct '18, 22:48