We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Unhandled Exception:
System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <254335e8c4aa42e3923a8ba0d5ce8650>:0
at System.Number.ParseInt32 (System.ReadOnlySpan1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <254335e8c4aa42e3923a8ba0d5ce8650>:0
at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <254335e8c4aa42e3923a8ba0d5ce8650>:0
at System.Convert.ToInt32 (System.String value) [0x0000b] in <254335e8c4aa42e3923a8ba0d5ce8650>:0
at Solution.Main (System.String[] args) [0x00033] in <38d1b93bc503403d93754bc7a44d3cc3>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <254335e8c4aa42e3923a8ba0d5ce8650>:0
at System.Number.ParseInt32 (System.ReadOnlySpan1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <254335e8c4aa42e3923a8ba0d5ce8650>:0
at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <254335e8c4aa42e3923a8ba0d5ce8650>:0
at System.Convert.ToInt32 (System.String value) [0x0000b] in <254335e8c4aa42e3923a8ba0d5ce8650>:0
at Solution.Main (System.String[] args) [0x00033] in <38d1b93bc503403d93754bc7a44d3cc3>:0
Input (stdin)
Download
2
2
1 2
2
2 2
Your Output (stdout)
~ no response on stdout ~
Expected Output
Download
W
L
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Zero-Move Nim
You are viewing a single comment's thread. Return to all comments →
It looks like there is a bug in the system:
Unhandled Exception: System.FormatException: Input string was not in a correct format. at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 at System.Number.ParseInt32 (System.ReadOnlySpan
1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 at System.Convert.ToInt32 (System.String value) [0x0000b] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 at Solution.Main (System.String[] args) [0x00033] in <38d1b93bc503403d93754bc7a44d3cc3>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.FormatException: Input string was not in a correct format. at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 at System.Number.ParseInt32 (System.ReadOnlySpan
1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 at System.Convert.ToInt32 (System.String value) [0x0000b] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 at Solution.Main (System.String[] args) [0x00033] in <38d1b93bc503403d93754bc7a44d3cc3>:0 Input (stdin)Download 2 2 1 2 2 2 2 Your Output (stdout) ~ no response on stdout ~ Expected Output
Download W L