Submission #3435748


Source Code Expand

from sys import stdin


def main():
    a = next_int()
    b = next_int()
    c = next_int()

    ans = 1

    for v in (a, b, c):
        ans = (ans * v) % (10 ** 9 + 7)

    print(ans)


def next_int():
    return int(next_str())


def next_str():
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


if __name__ == '__main__':
    main()

Submission Info

Submission Time
Task B - 直方体
User ToshiroYanagi
Language Python (3.4.3)
Score 100
Code Size 501 Byte
Status AC
Exec Time 17 ms
Memory 3060 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 4
AC × 9
Set Name Test Cases
Sample 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt
All 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt
Case Name Status Exec Time Memory
0_00.txt AC 17 ms 2940 KB
0_01.txt AC 17 ms 3060 KB
0_02.txt AC 17 ms 2940 KB
0_03.txt AC 17 ms 2940 KB
1_00.txt AC 17 ms 3060 KB
1_01.txt AC 17 ms 2940 KB
1_02.txt AC 17 ms 2940 KB
1_03.txt AC 17 ms 2940 KB
1_04.txt AC 17 ms 2940 KB