Submission #17749504


Source Code Expand

Copy
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
MOD = 998_244_353
def main(A, B, C):
def f(x):
return x * (x + 1) // 2
return f(A) * f(B) * f(C) % MOD
a, b, c = map(int, read().split())
print(main(a, b, c))
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

MOD = 998_244_353

def main(A, B, C):
    def f(x):
        return x * (x + 1) // 2

    return f(A) * f(B) * f(C) % MOD

a, b, c = map(int, read().split())
print(main(a, b, c))

Submission Info

Submission Time
Task A - Simple Math
User maspy
Language Python (3.8.2)
Score 300
Code Size 310 Byte
Status AC
Exec Time 23 ms
Memory 9176 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 8
Set Name Test Cases
Sample example_00, example_01
All example_00, example_01, max_random_00, max_random_01, max_random_02, small_00, small_01, small_02
Case Name Status Exec Time Memory
example_00 AC 18 ms 9048 KB
example_01 AC 23 ms 8988 KB
max_random_00 AC 20 ms 9176 KB
max_random_01 AC 16 ms 8872 KB
max_random_02 AC 21 ms 8992 KB
small_00 AC 17 ms 8984 KB
small_01 AC 18 ms 9040 KB
small_02 AC 21 ms 9120 KB


2025-03-31 (Mon)
13:16:51 +00:00