Submission #36043091


Source Code Expand

Copy
import numpy as np
a = np.array(list(map(int, input().split())))
print((a[:3].cumprod()[-1] - a[3:].cumprod()[-1]) % 998244353)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
import numpy as np
a = np.array(list(map(int, input().split())))
print((a[:3].cumprod()[-1] - a[3:].cumprod()[-1]) % 998244353)

Submission Info

Submission Time
Task B - ABC-DEF
User arakaki_tokyo
Language Python (3.8.2)
Score 0
Code Size 129 Byte
Status WA
Exec Time 109 ms
Memory 27372 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 3
AC × 15
WA × 15
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, hand_11.txt, hand_12.txt, hand_13.txt, hand_14.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
Case Name Status Exec Time Memory
example_00.txt AC 109 ms 26912 KB
example_01.txt AC 103 ms 27032 KB
example_02.txt AC 103 ms 27028 KB
hand_00.txt AC 107 ms 26916 KB
hand_01.txt AC 103 ms 26892 KB
hand_02.txt AC 101 ms 27188 KB
hand_03.txt AC 104 ms 27188 KB
hand_04.txt AC 104 ms 27184 KB
hand_05.txt AC 102 ms 26940 KB
hand_06.txt WA 103 ms 27204 KB
hand_07.txt WA 103 ms 27004 KB
hand_08.txt WA 106 ms 27068 KB
hand_09.txt AC 101 ms 26972 KB
hand_10.txt AC 101 ms 27188 KB
hand_11.txt AC 103 ms 27204 KB
hand_12.txt AC 106 ms 27224 KB
hand_13.txt AC 102 ms 26864 KB
hand_14.txt AC 103 ms 26988 KB
random_00.txt WA 106 ms 27204 KB
random_01.txt WA 101 ms 26992 KB
random_02.txt WA 103 ms 26604 KB
random_03.txt WA 104 ms 26968 KB
random_04.txt WA 107 ms 26908 KB
random_05.txt WA 104 ms 26984 KB
random_06.txt WA 103 ms 26916 KB
random_07.txt WA 103 ms 26876 KB
random_08.txt WA 105 ms 27028 KB
random_09.txt WA 106 ms 27372 KB
random_10.txt WA 102 ms 27168 KB
random_11.txt WA 102 ms 27044 KB


2025-04-15 (Tue)
04:47:28 +00:00