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

Обсуждение задачи 1688. Team.GOV!

Показать все сообщения Спрятать все сообщения

WA 11 an100000 28 фев 2009 14:33
What is wrong with this test?
Re: WA 11 Le Do Hoang Nam 28 фев 2009 14:45
use s > 3*n instead of s / 3 > n
Re: WA 11 fR0D 28 фев 2009 14:58
whats wrong with this program?
Got AC using __int64 instead of long long.
Anybody willing to explain why?
Whats the difference between __int64 and long long?

Edited by author 28.02.2009 15:59
Re: WA 11 Le Do Hoang Nam 28 фев 2009 15:48
because s can be greater than max(long long). Use int64 instead.
Re: WA 11 fR0D 28 фев 2009 16:03
But the maximum value of s can be 3000*2*10^6 which is well within the range of long long?
Re: WA 11 Looksery ONU 1 2/3 28 фев 2009 16:20
I use int64 and s>n*3 but have WA10, what's wrong with this program?
Re: WA 11 Wongbenshing 5 янв 2010 10:47
me too
Re: WA 11 Tural Neymanov 12 мар 2010 00:23
maybe you should use qword instead of int64 as i did? do not forget to make them both qword and multiply first by three rather than dividing another one.
Re: WA 11 Inspector [Barnaul] 11 фев 2012 20:05
u can use unsigned long long and get AC
Re: WA 11 an100000 28 фев 2009 15:13
But if i use it i have wa 10
Re: WA 11 BVitaly 28 фев 2009 15:24
Wrong Answer 2
in my pascal code  and in this /\ /\ /\ C code
Re: WA 11 bigtik 19 окт 2011 04:50
use long... something biger than int is needed.