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

Envío 2650

Problema 0x9d - ¿Está ordenado?

  • Autor: yesidays
  • Fecha: 2021-01-19 05:17:21 UTC (Hace alrededor de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '1 2 3 4 5'
0.026 s 3 KBi
#2
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '5 4 3 2 1'
0.031 s 3 KBi
#3
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '0 3 2 2 1 5 4 5 0 1'
0.029 s 3 KBi
#4
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '3 2 4 1 2 1 3 3 5 5'
0.03 s 3 KBi
#5
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '4 5 5 2 1 3 5 3 1 1'
0.031 s 3 KBi
#6
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '1 1 1 1 1 3 3 5 5 5'
0.028 s 3 KBi
#7
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '1 2 3 3 3 4 4 4 4 4'
0.026 s 3 KBi
#8
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '0 0 0 1 1 1 1 2 2 2'
0.025 s 3 KBi
#9
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '-916271954 661059257 478664722 132338074 -171124553 878438626 37584288 874853458 -694283744 -21744796 -700662750 -861991287 -591400379 -451392421 -387170014 -295248241 -377342369 -680531262 -622496924 -990199192 637746670 201025788 -682097180 624581284 -60661285 881217860 438293467 -261498435 365913559 683384846 -224516240 697951659 447677444 34723033 -37360099 202035608 751367381 -366280141 618305092 -268345185 516261348 -228046813 998625997 -964271969 -357527403 -494281526 -383868301 587063559 -723896987 805576472 121406235 -970980291 -294158712 -666849033 480005819 -173020026 -524192207 -681519751 -432965609 244089036 -10669809 580315544 -402977469 648228488 -574590322 695801474 -907871446 162481566 744491442 936942266 979268994 -898395376 214756319 82317046 200845139 841221041 -56818100 -811988065 456790966 743081865 525850389 343879495 90826822 -827839613 716615756 -226850769 -649970162 -754264801 -796545102 -687394405 -138862689 -714923597 -118647969 -194712173 -49569265 -280630333 -604639225 -743465198 -923773333 728934486'
0.031 s 3 KBi
#10
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '-86818186 -22114447 831023189 -64267162 -140674830 -678549552 884229599 -555575498 546506748 -286912325 783146620 277832786 -240690560 612629301 131515661 -651513885 561987230 -728648016 474828400 592536549 -616792823 695518489 -422038137 -6568164 82573417 -394111152 -160614129 -842697732 467212772 419113016 -733753464 858865060 -249471795 68790536 114443722 937071277 857644182 81666193 -122674641 281068963 -912775534 -204115163 601816513 -308885074 4479645 -917234771 -117110483 -659665890 591749283 -210727419 -44459453 -254689054 -72974173 -200218948 416499583 -231920077 648289754 372165668 50472833 819465498 -670013666 -721316257 316756579 -642830896 -720112795 -225013899 -29766372 230171699 -833223485 132750879 12534528 -783916870 -662180352 -331263715 -170496787 -762012089 287995790 -473579992 188020379 104544627 -323540166 -803193421 -351029639 498328758 -903835987 144072618 353258184 325329111 -513441772 -771239045 -996369624 -890266441 -2364258 327727427 -826326836 90428229 -973657308 174418594 -390121828 -426971555'
0.024 s 3 KBi
#11
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '-993240437 -956108105 -947143004 -924388464 -922795073 -910202929 -903166164 -860705528 -851690159 -838049471 -829271580 -828211977 -807764920 -805927626 -773587911 -681639938 -639848423 -624989360 -620969118 -605672188 -602375143 -580815015 -577745829 -569230104 -550284715 -528722141 -523180685 -512574566 -489799596 -486664480 -480634039 -468750208 -447979117 -432144919 -424362971 -414480498 -396860241 -393397703 -390952937 -373167351 -366795026 -354527274 -312417318 -285861784 -271987262 -267271290 -247612819 -151065540 -131179586 -122427797 -90629523 -43062222 -38156144 -33289222 41013338 42928207 100260877 103746840 148340825 151182978 164689596 176365004 177466075 177591407 230301371 275911739 390563537 402135804 423714280 433603190 435210699 457043795 488543928 511875658 516204334 564919056 573096101 580972474 611548252 655582201 681637084 685089374 685884704 701805297 703718864 720312401 731032204 741722950 773917500 834315151 850149513 860094883 889104981 940401029 954501276 979687226 992461807 994165691 994216508 998939977'
0.023 s 3 KBi
#12
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    b = float(input())
ValueError: could not convert string to float: '-994371375 -988005287 -974423316 -929392851 -922095902 -906209363 -896430915 -894871356 -865943219 -862590063 -860079344 -832004825 -813676920 -792632052 -777526153 -774910874 -764477295 -711179851 -677575526 -664509464 -662218235 -652754783 -640549570 -630302688 -615670119 -585519599 -581345544 -559591728 -558011548 -535966489 -527426906 -503491172 -488113078 -474863602 -461963035 -454934504 -425785566 -405688125 -380935969 -378948591 -362817235 -322235522 -290858433 -284118184 -259314424 -256484371 -237563814 -220402096 -172510906 -169621086 -162396346 -90373204 -10201255 3234815 17463197 73889445 79377978 80831460 107883445 114813668 134537696 148553845 219947623 244701118 249933045 273318139 324930963 346595744 370554913 398973518 445261569 495243430 528064490 539400244 542408626 543557827 547543711 569739913 596521851 601778626 624848492 635004050 654190151 676309223 687213865 688419990 713798332 770565819 802351587 818374660 820537936 843783532 882660654 904403246 913785052 920253600 937451219 942104354 953586716 972517761'
0.025 s 3 KBi
Puntos totales: 0 / 100

Código

a = float(input())
b = float(input())

n = int(a)
numbers = int(b)

result = 'Desordenado'
if n > 0:
  for i in range(len(numbers)):
    j = i + 1
    for j in range(len(numbers)):
      if numbers[j] < numbers[i]:
        result = 'Ordenado'
      else:
        break