Rezultati

Up. imeNalogaJezikRezultatČas oddaje
kumkvat-2018 Podnapisi Python 3 0/100Napačen odgovor (WA) 10. maj '18 @ 17:02

Test Točke Porabljen spomin Porabljen čas Status
#1 7/7 8,918 MiB 0,000 s OK
#2 0/7 8,973 MiB 0,000 s Napačen odgovor
Tvoj izhod:
​772
21:33:17,096 --> 21:33:18,297
How do I disarm it?

773
21:33:18,331 --> 21:33:21
Uh, use the Category D
Permission Action Link,

774
Pravilen izhod:
​772
21:33:17,096 --> 21:33:18,297
How do I disarm it?

773
21:33:18,331 --> 21:33:21,000
Uh, use the Category D
Permission Action Link,

774
#3 0/7 8,918 MiB 0,000 s Napačen odgovor
Tvoj izhod:
​00:00:23,360 --> 00:00:25,670
Are we looking at the day
of last week's launch?

6
00:00:25 --> 00:00:27,950
End of Line

7
00:00:25,680 --> 00:00:27,950
Pravilen izhod:
​00:00:23,360 --> 00:00:25,670
Are we looking at the day
of last week's launch?

6
00:00:25,000 --> 00:00:27,950
End of Line

7
00:00:25,680 --> 00:00:27,950
#4 7/7 9,031 MiB 0,000 s OK
#5 7/7 9,152 MiB 0,000 s OK
#6 7/7 8,895 MiB 0,000 s OK
#7 7/7 9,145 MiB 0,000 s OK
#8 0/7 8,961 MiB 0,000 s Napačen odgovor
Tvoj izhod:
​333333
-->
    
     
<<<EOF>>>
Pravilen izhod:
​333333
-->
    
     
     
to zgoraj so presledki

3
00:11:15,100 --> 00:11:16,850
naj bo konec lep
#9 7/7 9,027 MiB 0,000 s OK
#10 7/7 8,992 MiB 0,000 s OK
#11 7/7 9,121 MiB 0,000 s OK
#12 0/7 8,902 MiB 0,000 s Napačen odgovor
Tvoj izhod:
​00:21:51,864 --> 00:21:54,998
That's nice, but I'm not
really interested.

272
00:21:55 --> 00:21:56,967
What do you mean?

273
00:21:56,969 --> 00:21:59,369
Pravilen izhod:
​00:21:51,864 --> 00:21:54,998
That's nice, but I'm not
really interested.

272
00:21:55,000 --> 00:21:56,967
What do you mean?

273
00:21:56,969 --> 00:21:59,369
#13 0/8 8,973 MiB 0,000 s Napačen odgovor
Tvoj izhod:
​04:34:29,494 --> 04:34:34,079
Lahko pa pomagam spraviti ljudi
na varno. -Potem ostanem tudi jaz.

622
04:34:34,166 --> 04:34:39
Potrebovala bova nekaj ?asa.
-Dobila ga bosta. -Pojdimo.

623
Pravilen izhod:
​04:34:29,494 --> 04:34:34,079
Lahko pa pomagam spraviti ljudi
na varno. -Potem ostanem tudi jaz.

622
04:34:34,166 --> 04:34:39,000
Potrebovala bova nekaj ?asa.
-Dobila ga bosta. -Pojdimo.

623
#14 0/8 9,129 MiB 0,000 s Napačen odgovor
Tvoj izhod:
​1
01:10:25 --> 01:10:30,130
In 2022, mankind finally

2
01:11:01 --> 01:11:05,090
Pravilen izhod:
​1
01:10:25,000 --> 01:10:30,130
In 2022, mankind finally

2
01:11:01,000 --> 01:11:05,090

Ocenjevani program (podnapisi.py):
from datetime import datetime, timedelta

prva = input().strip().split(' ')[1]
prva = prva.split(':')
ura = int(prva[0])
minu = int(prva[1])
sekunde = prva[2].split(',')
sec = int(sekunde[0])
micro = int(sekunde[1])

delta = timedelta(hours=ura, minutes=minu, seconds=sec, milliseconds=micro)

def predelaj(prva):
    prva = prva.split(':')
    ura = int(prva[0])
    minu = int(prva[1])
    sekunde = prva[2].split(',')
    sec = int(sekunde[0])
    micro = int(sekunde[1])
    t = datetime(year=1, day=1, month=1, hour=ura, minute=minu, second=sec, microsecond=micro * 1000)
    return t



prazna = True

while True:
    try:
        prazna = False

        vnos = input()
        print(vnos)

        cas = input().split(' --> ')
        t1 = predelaj(cas[0]) + delta
        t2 = predelaj(cas[1]) + delta
        t1 = str(t1.time()).replace('.', ',')[0:12]
        t2 = str(t2.time()).replace('.', ',')[0:12]
        print(t1 + ' --> ' + t2)

        while not prazna:
            try:
                vn = input()
                if vn.strip() == '':
                    prazna = True
                print(vn)

            except:
                break
    except:
        break