Submission #65864460


Source Code Expand

n,k=input().split()
n=int(n)
k=int(k)
ans=1
li=input().split()
for i in li:
    ans*=int(i)
    if(ans>=10**k):
        ans=1
print(ans)

Submission Info

Submission Time
Task B - Product Calculator
User evilwater
Language Python (Mambaforge / CPython 3.10.10)
Score 200
Code Size 147 Byte
Status AC
Exec Time 15 ms
Memory 8308 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 32
Set Name Test Cases
Sample example_00.txt, example_01.txt
All example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_20.txt, random_21.txt, random_22.txt, random_23.txt, random_24.txt
Case Name Status Exec Time Memory
example_00.txt AC 15 ms 8264 KiB
example_01.txt AC 14 ms 8132 KiB
hand_00.txt AC 15 ms 8208 KiB
hand_01.txt AC 14 ms 8280 KiB
hand_02.txt AC 14 ms 8104 KiB
hand_03.txt AC 15 ms 8308 KiB
hand_04.txt AC 15 ms 8100 KiB
random_00.txt AC 15 ms 8304 KiB
random_01.txt AC 15 ms 8264 KiB
random_02.txt AC 14 ms 8284 KiB
random_03.txt AC 15 ms 8072 KiB
random_04.txt AC 14 ms 8308 KiB
random_05.txt AC 14 ms 8116 KiB
random_06.txt AC 15 ms 8144 KiB
random_07.txt AC 15 ms 8220 KiB
random_08.txt AC 15 ms 8100 KiB
random_09.txt AC 15 ms 8200 KiB
random_10.txt AC 15 ms 8084 KiB
random_11.txt AC 15 ms 8228 KiB
random_12.txt AC 15 ms 8280 KiB
random_13.txt AC 15 ms 8180 KiB
random_14.txt AC 14 ms 8196 KiB
random_15.txt AC 15 ms 8148 KiB
random_16.txt AC 15 ms 8196 KiB
random_17.txt AC 15 ms 8264 KiB
random_18.txt AC 15 ms 8212 KiB
random_19.txt AC 15 ms 8108 KiB
random_20.txt AC 15 ms 8248 KiB
random_21.txt AC 15 ms 8188 KiB
random_22.txt AC 15 ms 8304 KiB
random_23.txt AC 15 ms 8120 KiB
random_24.txt AC 15 ms 8212 KiB