All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Algorithms
Roman Square Root Resolution (Posted on 2022-05-15) Difficulty: 4 of 5
A list is created by writing all the positive integers from 1 to 3999 inclusively in Roman numerals in order.

Devise an algorithm that isolates all the perfect squares from the list and writes the corresponding square roots in Roman numerals.

Assume that:
  • The algorithm will process a Roman Numeral directly without converting it to decimal when determining if it is a perfect square.
  • The algorithm knows how to derive the square root of an integer.
  • The algorithm is aware of the corresponding base ten value of all the six individual Roman numerals I, V, X, L, C, D, and M. For example, it knows that: X=10, C=100, D=500 and, so on.
  • The algorithm knows the corresponding base ten value of a given Roman numeral representation. For example, it knows that: XVI = 10+5+1 =16

See The Solution Submitted by K Sengupta    
Rating: 3.0000 (1 votes)

Comments: ( You must be logged in to post comments.)
  Subject Author Date
No SubjectK Sengupta2023-07-25 08:53:07
CoolAngel172023-07-25 03:55:19
No SubjectK Sengupta2022-05-16 22:31:14
Online Sports GamesGibson Trevor 2022-05-16 20:22:41
Implementation of the ideaCharlie2022-05-15 10:59:12
Some ThoughtsIs this allowed?Larry2022-05-15 10:30:12
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (5)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information