A bug or problem in C# support at Codeforces

Правка en5, от Epikem, 2016-01-15 15:02:13

In my IDE, my console prints good answer ( 12.5663706143592 ) But when I submit, jury says like below.


Time: 46 ms, memory: 40 KB

Verdict: WRONG_ANSWER

Input

3 0 0

0 1

-1 2

1 2

Participant's output

12,5663706143592

Jury's answer

12.566370614359172464

Checker comment

wrong output format Expected double, but "12,5663706143592" found


I tried many encoding settings — including ASCII, Unicode, UTF-8 — because I thought it is encoding problem. However, all submission ended up with this failure.

I'm using C# and submitted as MS C#.

I hope this problem to be fixed soon so other's don't suffer assuming incomprehensible cause of test failure.

http://mirror.codeforces.com/predownloaded/e6/8f/e68fad01d04ad839394726dc0af95d592da47884.png

http://mirror.codeforces.com/predownloaded/60/d5/60d5608f8a8ad4a46d1ad86e686cfc94f5f3c8df.png

[Edit] There is a solution using CultureInfo but still it seems unnecessary workaround to me.


string answer = ans.ToString(CultureInfo.InvariantCulture); Console.WriteLine(answer);
Теги c#

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en6 Английский Epikem 2016-01-17 06:47:05 18 Tiny change: 'und to me.\n\n~~~~~\' -
en5 Английский Epikem 2016-01-15 15:02:13 209
en4 Английский Epikem 2016-01-15 13:45:21 180
en3 Английский Epikem 2016-01-15 13:42:16 0 (published)
en2 Английский Epikem 2016-01-15 13:41:53 28 (saved to drafts)
en1 Английский Epikem 2016-01-15 13:40:37 862 Initial revision (published)