█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 6601

Problema 0x78 - Suma de 2 números

  • Autor: ebeltdev
  • Fecha: 2022-08-18 19:10:45 UTC (Hace alrededor de 2 meses)
Caso # Resultado Tiempo Memoria
#1
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Unhandled Exception:
System.FormatException: Input string was not in a correct format.
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at HelloWorld.Main () [0x00005] in <7d3689b0924e4e0d8a8039f1f000c465>: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 <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at HelloWorld.Main () [0x00005] in <7d3689b0924e4e0d8a8039f1f000c465>:0 
0.025 s 4 KBi
#2
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Unhandled Exception:
System.FormatException: Input string was not in a correct format.
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at HelloWorld.Main () [0x00005] in <7d3689b0924e4e0d8a8039f1f000c465>: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 <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at HelloWorld.Main () [0x00005] in <7d3689b0924e4e0d8a8039f1f000c465>:0 
0.027 s 3 KBi
#3
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Unhandled Exception:
System.FormatException: Input string was not in a correct format.
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at HelloWorld.Main () [0x00005] in <7d3689b0924e4e0d8a8039f1f000c465>: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 <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at HelloWorld.Main () [0x00005] in <7d3689b0924e4e0d8a8039f1f000c465>:0 
0.02 s 4 KBi
#4
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Unhandled Exception:
System.FormatException: Input string was not in a correct format.
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at HelloWorld.Main () [0x00005] in <7d3689b0924e4e0d8a8039f1f000c465>: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 <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at HelloWorld.Main () [0x00005] in <7d3689b0924e4e0d8a8039f1f000c465>:0 
0.022 s 3 KBi
#5
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Unhandled Exception:
System.FormatException: Input string was not in a correct format.
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at HelloWorld.Main () [0x00005] in <7d3689b0924e4e0d8a8039f1f000c465>: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 <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <7a391fb795984bfe88ca30b111f22d2e>:0 
  at HelloWorld.Main () [0x00005] in <7d3689b0924e4e0d8a8039f1f000c465>:0 
0.022 s 3 KBi
Puntos totales: 0 / 100

Código

using System;
class HelloWorld {
  static void Main() {
    int a, b;
    a = Convert.ToInt32(Console.ReadLine());
    b = Convert.ToInt32(Console.ReadLine());
    Console.Write(a + b);
  }
}