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

Обсуждение задачи 1000. A+B Problem

How do you get 0.001?
Послано test2008 29 окт 2008 22:08
I don't understand, how it is possible... The simplest solution works for 0.015 sec.
Re: How do you get 0.001?
Послано Vedernikoff Sergey (HSE: EconomicsForever!) 30 окт 2008 01:38
How do you read and write?
Re: How do you get 0.001?
Послано test2008 30 окт 2008 01:58
scanf("%d%d", &a, &b);
printf("%d\n", a + b);


and streamed input doesn't give any increase in speed

Edited by author 30.10.2008 01:59
Re: How do you get 0.001?
Послано kcd_{CMC MSU} 12 окт 2009 00:58
Can you explain me how to read and write for 0.001 sec?
Do you use buffer input?
Re: How do you get 0.001?
Послано icanwin 13 окт 2009 15:08
Probably 15 ms is a minimum tick of OS (mb Windows). Thus the program
#include <windows.h>
#include <stdio.h>
int main()
{
 Sleep(0);

 return EXIT_SUCCESS;
}

will work 15 ms while it will be not replaced by any another (as a result of actions of the dispatcher). Including the program for measurement of execution time.
Someone can bypass this restriction.

Edited by author 13.10.2009 15:13