Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newtask 515845 #2092

Open
wants to merge 3 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions zdn/matege2025b/15/515845.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(function() {
let statisticForSummer = sluchch(0.39, 0.98, 0.01);
let answer = (1 - statisticForSummer) * 100;
let time = ['летом', 'зимой'];
let difference = ['уменьшилось', 'увеличилось'];
let slTime1 = sl1();
let slTime2 = (slTime1 + 1) % 2;
NAtask.setTask({
text: ['Число', 'Количество'].iz() + ' дорожно-транспортных происшествий (ДТП) в летний период составило ' + parseFloat((statisticForSummer).toFixed(2)) +
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parseFloat((statisticForSummer).toFixed(2))
Зачем это? (Вопрос не риторический)
Поможет ли вместо этого statisticForSummer.ts()?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давайте проявим фантазию и подумаем, статистика чего ещё ведёт себя аналогичным образом? Ну, чтобы гуглилось хуже. Чего ещё зимой больше, чем летом? Переломов? Повреждений кровли? Проявите фантазию!

' числа ДТП в зимний период. На сколько процентов ' + difference[slTime1] +
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Раз уж берётесь менять число/количество, так везде и меняйте.

' число дорожно-транспортных происшествий ' + time[slTime1] + [' по сравнению ', ' в сравнении '].iz() + 'с ' +
time[slTime2] + ' ?',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь можно обойтись 1-slTime1

answers: answer,
});
})();

//515845
3 changes: 3 additions & 0 deletions zdn/matege2025b/15/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
window.nomer=[
515845,
].iz();