Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Q: What do you say to a New Yorker with a job? A: Big Mac, fries and a Coke, please!


comp / comp.lang.python / Problem: VIER and NEUN are 4-digit squares

SubjectAuthor
o Problem: VIER and NEUN are 4-digit squaresHenHanna

1
Subject: Problem: VIER and NEUN are 4-digit squares
From: HenHanna
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Tue, 11 Jun 2024 23:53 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna@devnull.tb (HenHanna)
Newsgroups: comp.lang.python
Subject: Problem: VIER and NEUN are 4-digit squares
Date: Tue, 11 Jun 2024 16:53:35 -0700
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <v4ao1v$182gg$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 12 Jun 2024 01:53:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ccb0f6b9ea4c672876c3c6f90f002985";
logging-data="1313296"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Gc3qx3K5xWWxBHJYFMy53B6d6Qgex4aE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:MXuTUkY79L5OtMJqLsl4h8O/cFU=
Content-Language: en-US
View all headers

> VIER and NEUN represent 4-digit squares, each letter denoting a
> distinct digit. You are asked to find the value of each, given the
> further requirement that each uniquely determines the other.
>
> The "further requirement" means that of the numerous pairs of
> answers, choose the one in which each number only appears once
> in all of the pairs.

-------- Is this easy to understand?
(What the problem is asking?)

% Problem: VIER and NEUN are 4-digit squares; determine distinct V, I,
% E, R, N, and U, such that there is a unique solution (VIER,NEUN) for
% some particular E.

-------- OK... that makes more sense.

it's kinda cute that (for solving by a Human)
the names (VIER,NEUN) can act as Hints.

___________________________________________________________
i wrote Python code that gives me a partial solution.

a Dictionary's default printed output is Not too Great

{'1': 'n', '5': 'e', '2': 'u'} {'4': 'v', '3': 'i', '5': 'e', '6': 'r'}
{'1': 'n', '5': 'e', '2': 'u'} {'7': 'v', '0': 'i', '5': 'e', '6': 'r'}

I'd prefer:
(1=n, 5=e, 2=u) (4=v, 3=i, 5=e, 6=r)
(1=n, 5=e, 2=u) (7=v, 0=i, 5=e, 6=r)

1

rocksolid light 0.9.8
clearnet tor