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

Обсуждение задачи 1074. Очень короткая задача

Test #12?
Послано superlifter 27 май 2011 21:11
my program calculate:

Input:
======================================
String str = "10.23\n" +
               "0\n" +

               ".04\n" +
               "1\n" +

               "-0.051e0\n" +
               "1\n" +

               "1.1e30\n" +
               "10\n" +

               "-1.1E-30\n" +
               "1\n" +

               "2468097632.1358642324268913e-2\n" +
               "20\n" +

               "e23\n" +
               "3\n" +

               "1 e3\n" +
               "1\n" +

               "-7293874219874982174982174987321e-18446744073709551616\n" +
               "10\n" +

               "#1234\n" +
               "3\n" +

               " 12.0\n" +
               "3\n" +

               "2E-1\n" +
               "3\n" +

               "-\n" +
               "2\n" +

               ".e1\n" +
               "2\n" +

               "#";
======================================

Output:
======================================
10
0.0
0.0
1100000000000000000000000000000.0000000000
0.0
24680976.32135864232426891300
Not a floating point number
Not a floating point number
0.0000000000
Not a floating point number
Not a floating point number
0.200
Not a floating point number
Not a floating point number
======================================

It's correct.

why wrong test-12?
Re: Test #12?
Послано AterLux 27 май 2011 21:29
try also
-7293874219874982174982174987321E-18446744073709551616
10
-7293874219874982174982174987321E-4294967296
10
-7293874219874982174982174987321E-65536
10
-7293874219874982174982174987321E-256
10
9126492316491641269352615215701236589213658621356281376589216562319562396592381659862195621281E-190
100
1234E-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002
2
#

(note that last two - is long strings. That only displayed in this forum as several lines

Edited by author 27.05.2011 21:51
Re: Test #12?
Послано superlifter 30 май 2011 14:21
Input:
=============================
String str = "-7293874219874982174982174987321E-18446744073709551616\n" +
           "10\n" +

            "-7293874219874982174982174987321E-4294967296\n" +
            "10\n" +

            "-7293874219874982174982174987321E-65536\n" +
            "10\n" +

            "-7293874219874982174982174987321E-256\n" +
            "10\n" +

           "9126492316491641269352615215701236589213658621356281376589216562319562396592381659862195621281E-190\n" +
           "100\n" +

          "1234E-000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002\n" +
          "2\n" +

                    "#";
==================================

Output:
==================================
0.0000000000
0.0000000000
0.0000000000
0.0000000000
0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009126
12.34
==================================

It's correct.

Edited by author 30.05.2011 14:22
Re: Test #12?
Послано superlifter 30 май 2011 14:47
There are some more examples?
Re: Test #12?
Послано AterLux 30 май 2011 17:19
try
9E-9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
100
-1E-1
5


send to me your solution at aterlux @ mail . ru if you want, I'll take a look

Edited by author 30.05.2011 17:20
Re: Test #12?
Послано superlifter 31 май 2011 13:34

Input:
=============================
String str = "9E-9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999\n" +
                "100\n" +

                "-1E-1\n" +
                "5\n" +

                "#";
==================================

Output:
==================================
0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-0.10000
==================================

It's correct.
Re: Test #12?
Послано superlifter 31 май 2011 13:59
I have resolved!
It's my bug.

My program has not processed this case:
======
+.0
0
======

This example has this answer:
======
0
======

But my program has this answer:
======
Not a floating point number
======
Re: Test #12?
Послано GuangLightman 27 дек 2016 19:45
I passed all the above cases including the +.0  0  but still WA.