Предмет: Английский язык, автор: msinegur

Fill in with the correct preposition.
1. They were … earnest conversation. … time …
time they would halt and one … them would explain
something … the other who, … turn, would nod his
head. 2. He reached his house … midnight and stared
… her … amazement. 3. She made a great impression
… me. 4. Just before Christmas they decided to pass
… London … their way … Paris. 5. He wrote his resignation
… the chairman … the board … directors,
… order that he should be prepared to hand it … him
… once. 5. Two young girls … red came … . 6. I beg
your pardon … calling you … your name. 7. He will
suffer no one to interfere … his business.

Ответы

Автор ответа: nunny
2
1. They were in… earnest conversation. …From time to…time they would halt and one …of them would explain something to… the other who, in… turn, would nod his head.
2. He reached his house at… midnight and stared at… her in… amazement.
3. She made a great impression on… me.
4. Just before Christmas they decided to pass through… London on… their way to… Paris.
5. He wrote his resignation …as the chairman …of the board of… directors,
in… order that he should be prepared to hand it to… him at… once.
5. Two young girls in… red came …in .
6. I beg your pardon for… calling you …by your name.
7. He will suffer no one to interfere in… his business.

Интересные вопросы
Предмет: Информатика, автор: p15
Python. Валидность поля SUDOKU

Все знают SUDOKU.

На входе дают 9 строк. Например

195743862

431865927

876192543

387459216

612387495

549216738

763524189

928671354

254938671

Это построчные наборы цифр.

Необходимо проверить чтобы каждая строка содержала от 1 до 9

Каждый столбец содержал от 1 до 9

И каждый маленький квадратик 3*3 (9 шт) содержал от 1 до 9

Чтобы было все и не повторялось.

Считать циферки можно так:

A=[list(input()) for i in range(9)]

И это уже даже будет списком двухмерным.

Затем можно проверить строки быстро

for i in range(9):

if len(set(A[i]))!=9: print('все плохо :)') #здесь проверка когда еще был одномерный список, но идея должна быть понятна.

но надо еще столбцы проверить, что в принципе легко и самое интересное квадратики. Кто подскажет нерутинные интересные решения?


Еще для теста

295743861

431865927

876192543

387459216

612387495

549216738

763524189

928671354

154938672


На выходе Yes/No (валидное игровое поле или где-то накосячено).


Можно и рутинные, но чтоб не очень сильно :). Предлагайте.


Не знающим - проходите мимо.
Предмет: Математика, автор: akbotabegalina