CSES - Aalto Competitive Programming 2024 - wk8 - Mon - Results
Submission details
Task:a times b
Sender:Farah
Submission time:2024-10-28 16:44:24 +0200
Language:Python3 (CPython3)
Status:READY
Result:
Test results
testverdicttime
#10.02 sdetails
#20.02 sdetails
#30.02 sdetails
#40.02 sdetails
#50.02 sdetails
#60.02 sdetails
#70.02 sdetails
#80.02 sdetails
#90.02 sdetails
#100.02 sdetails
#110.02 sdetails
#120.02 sdetails
#130.02 sdetails
#140.02 sdetails
#150.02 sdetails
#160.02 sdetails
#170.02 sdetails
#180.02 sdetails
#190.02 sdetails
#200.02 sdetails
#210.02 sdetails
#220.02 sdetails
#230.02 sdetails
#240.02 sdetails
#250.02 sdetails
#260.02 sdetails
#270.02 sdetails
#280.02 sdetails
#290.02 sdetails
#300.02 sdetails
#310.02 sdetails
#320.02 sdetails
#330.02 sdetails
#340.02 sdetails
#350.02 sdetails
#360.02 sdetails
#370.02 sdetails
#380.02 sdetails
#390.02 sdetails
#400.02 sdetails
#410.02 sdetails
#420.02 sdetails
#430.02 sdetails
#440.02 sdetails
#450.02 sdetails
#460.02 sdetails
#470.02 sdetails
#480.02 sdetails
#490.02 sdetails
#500.02 sdetails
#510.02 sdetails
#520.02 sdetails
#530.02 sdetails
#540.02 sdetails
#550.02 sdetails
#560.02 sdetails
#570.02 sdetails
#580.02 sdetails
#590.02 sdetails
#600.02 sdetails

Code

import sys

def main():
    try:
        # Read the input numbers
        a = int(sys.stdin.readline().strip())
        b = int(sys.stdin.readline().strip())

        # Debug print to check values
        print(f"Debug: a = {a}, b = {b}")

        # Calculate the product
        result = a * b

        # Print the result
        print(result)
    except ValueError:
        print("Error: Invalid input. Please enter valid integers.")
    except Exception as e:
        print(f"An unexpected error occurred: {e}")

if __name__ == "__main__":
    main()

Test details

Test 1

Verdict:

input
8
5

correct output
40

user output
Debug: a = 8, b = 5
40

Test 2

Verdict:

input
9
1

correct output
9

user output
Debug: a = 9, b = 1
9

Test 3

Verdict:

input
9
5

correct output
45

user output
Debug: a = 9, b = 5
45

Test 4

Verdict:

input
2
5

correct output
10

user output
Debug: a = 2, b = 5
10

Test 5

Verdict:

input
8
7

correct output
56

user output
Debug: a = 8, b = 7
56

Test 6

Verdict:

input
48
92

correct output
4416

user output
Debug: a = 48, b = 92
4416

Test 7

Verdict:

input
1
40

correct output
40

user output
Debug: a = 1, b = 40
40

Test 8

Verdict:

input
97
74

correct output
7178

user output
Debug: a = 97, b = 74
7178

Test 9

Verdict:

input
58
8

correct output
464

user output
Debug: a = 58, b = 8
464

Test 10

Verdict:

input
15
24

correct output
360

user output
Debug: a = 15, b = 24
360

Test 11

Verdict:

input
4
7

correct output
28

user output
Debug: a = 4, b = 7
28

Test 12

Verdict:

input
906
417

correct output
377802

user output
Debug: a = 906, b = 417
377802

Test 13

Verdict:

input
778
105

correct output
81690

user output
Debug: a = 778, b = 105
81690

Test 14

Verdict:

input
2
989

correct output
1978

user output
Debug: a = 2, b = 989
1978

Test 15

Verdict:

input
2830
5329

correct output
15081070

user output
Debug: a = 2830, b = 5329
15081070

Test 16

Verdict:

input
9
51382

correct output
462438

user output
Debug: a = 9, b = 51382
462438

Test 17

Verdict:

input
25053
71372

correct output
1788082716

user output
Debug: a = 25053, b = 71372
1788082716

Test 18

Verdict:

input
258180
674616

correct output
174172358880

user output
Debug: a = 258180, b = 674616
174172358880

Test 19

Verdict:

input
8821
2

correct output
17642

user output
Debug: a = 8821, b = 2
17642

Test 20

Verdict:

input
1742712
9600618

correct output
16731112196016

user output
Debug: a = 1742712, b = 960061...

Test 21

Verdict:

input
8898606
2936506

correct output
26130809910636

user output
Debug: a = 8898606, b = 293650...

Test 22

Verdict:

input
82670092
60138633

correct output
4971666322864236

user output
Debug: a = 82670092, b = 60138...

Test 23

Verdict:

input
54746871
83822602

correct output
4589025178578342

user output
Debug: a = 54746871, b = 83822...

Test 24

Verdict:

input
477252461
1032684

correct output
492850980435324

user output
Debug: a = 477252461, b = 1032...

Test 25

Verdict:

input
5932935
379

correct output
2248582365

user output
Debug: a = 5932935, b = 379
2248582365

Test 26

Verdict:

input
620114
3126641

correct output
1938873857074

user output
Debug: a = 620114, b = 3126641
1938873857074

Test 27

Verdict:

input
452757081
222748761

correct output
100851078826726641

user output
Debug: a = 452757081, b = 2227...

Test 28

Verdict:

input
689748332
888826746

correct output
613066765490487672

user output
Debug: a = 689748332, b = 8888...

Test 29

Verdict:

input
111337
25

correct output
2783425

user output
Debug: a = 111337, b = 25
2783425

Test 30

Verdict:

input
809
84435378

correct output
68308220802

user output
Debug: a = 809, b = 84435378
68308220802

Test 31

Verdict:

input
9641697369926504411
425970950212942028697061039529...

correct output
410708299033321711216812810174...

user output
Debug: a = 9641697369926504411...
Truncated

Test 32

Verdict:

input
793769623129909085108356241071...

correct output
264404012608186879272715560773...

user output
Debug: a = 7937696231299090851...
Truncated

Test 33

Verdict:

input
8539777831492675800
436

correct output
3723343134530806648800

user output
Debug: a = 8539777831492675800...

Test 34

Verdict:

input
946492187160898604892390431179...

correct output
585982368537725512535970251461...

user output
Debug: a = 9464921871608986048...
Truncated

Test 35

Verdict:

input
874046401974324184707688863838...

correct output
174556202198322810668657866310...

user output
Debug: a = 8740464019743241847...
Truncated

Test 36

Verdict:

input
168584663428092347854539803060...

correct output
235958453587245776929148968707...

user output
Debug: a = 1685846634280923478...
Truncated

Test 37

Verdict:

input
279013912031336395843652482056...

correct output
856375236460411618343887929304...

user output
Debug: a = 2790139120313363958...
Truncated

Test 38

Verdict:

input
909594443312661242668561455177...

correct output
801297086685128929836268694647...

user output
Debug: a = 9095944433126612426...
Truncated

Test 39

Verdict:

input
521558480102200460144622364590...

correct output
403176935665359352292583479223...

user output
Debug: a = 5215584801022004601...
Truncated

Test 40

Verdict:

input
198766521920629467015839613580...

correct output
197951285207558548760833360414...

user output
Debug: a = 1987665219206294670...
Truncated

Test 41

Verdict:

input
388239940637354291806784217812...

correct output
354893636094929851749498258576...

user output
Debug: a = 3882399406373542918...
Truncated

Test 42

Verdict:

input
580031950564534684773525167998...

correct output
225288306472433597677862095876...

user output
Debug: a = 5800319505645346847...
Truncated

Test 43

Verdict:

input
673497493525004204568833306269...

correct output
104167516519697053781119530996...

user output
Debug: a = 6734974935250042045...
Truncated

Test 44

Verdict:

input
583582406474458495157747860432...

correct output
355985267949419682046226194863...

user output
Debug: a = 5835824064744584951...
Truncated

Test 45

Verdict:

input
154401310284121033413839709675...

correct output
472687322036571910421947159369...

user output
Debug: a = 1544013102841210334...
Truncated

Test 46

Verdict:

input
964784520177212016698
135881607827957154173561484162...

correct output
131096471809203739325264543904...

user output
Debug: a = 9647845201772120166...
Truncated

Test 47

Verdict:

input
506417941420848908877158785176...

correct output
124940484872553056181800567857...

user output
Debug: a = 5064179414208489088...
Truncated

Test 48

Verdict:

input
278205703909200971326699489015...

correct output
213362541886605761113025837459...

user output
Debug: a = 2782057039092009713...
Truncated

Test 49

Verdict:

input
488919747667763730629078434642...

correct output
244261035002054726047225565934...

user output
Debug: a = 4889197476677637306...
Truncated

Test 50

Verdict:

input
683013292533355268532590162229...

correct output
271255985219635665074840248062...

user output
Debug: a = 6830132925333552685...
Truncated

Test 51

Verdict:

input
701382950383712289025758984281...

correct output
396240397875971182850884660551...

user output
Debug: a = 7013829503837122890...
Truncated

Test 52

Verdict:

input
950530137216618089651057517232...

correct output
525100658977646195130452101103...

user output
Debug: a = 9505301372166180896...
Truncated

Test 53

Verdict:

input
758180874616256083097058082046...

correct output
612777382638418549100062437996...

user output
Debug: a = 7581808746162560830...
Truncated

Test 54

Verdict:

input
282198270649528096385750216226...

correct output
878945962031578099916769892430...

user output
Debug: a = 2821982706495280963...
Truncated

Test 55

Verdict:

input
374271236006180996628555027124...

correct output
205927043926518428842129271440...

user output
Debug: a = 3742712360061809966...
Truncated

Test 56

Verdict:

input
789860669365068182777748873091...

correct output
369460448033120451265094062370...

user output
Error: Invalid input. Please e...

Test 57

Verdict:

input
826700926013863385104801713448...

correct output
291751287859134397942962144651...

user output
Error: Invalid input. Please e...

Test 58

Verdict:

input
947468718382260248801518078140...

correct output
226868697296935607336651841496...

user output
Error: Invalid input. Please e...

Test 59

Verdict:

input
177252461103268440789803954968...

correct output
111876380249200192763403085310...

user output
Error: Invalid input. Please e...

Test 60

Verdict:

input
393293577943612353036749957226...

correct output
336630505716557163667422969707...

user output
Error: Invalid input. Please e...