ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1300. Налогообложение

Radu Berinde Some questions [2] // Задача 1300. Налогообложение 10 авг 2004 02:22
I do not understand how the rounding occurs.
First of all is it a floor(x*100)/100 (trunc-like) or a floor(x*100+0.5)/100 (round-like)?
When does it occur? At any operation other than addition?
For example, when computing the taxes for some value, the result is rounded at every segment (where percentage is applied) or only after the summation? When computing T(R*L%), R*L% is rounded before computations or not?
The gross profit for each enterprise (the one we have to compute) is also with only 2 decimals?
Vladimir Yakovlev (USU) Re: Some questions [1] // Задача 1300. Налогообложение 10 авг 2004 12:17
Rounding is floor(x*100+0.5)/100
It applies to result of T(K) and to regional coefficient.
Radu Berinde Thank you. You are completely right (-) // Задача 1300. Налогообложение 10 авг 2004 12:57