結果

問題 No.3077 🔧
ユーザー keijakkeijak
提出日時 2021-04-01 20:03:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 405 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 10,768 KB
実行使用メモリ 7,996 KB
最終ジャッジ日時 2023-08-22 22:31:58
合計ジャッジ時間 1,076 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,796 KB
testcase_01 AC 16 ms
7,764 KB
testcase_02 AC 15 ms
7,716 KB
testcase_03 AC 16 ms
7,720 KB
testcase_04 AC 16 ms
7,788 KB
testcase_05 AC 16 ms
7,796 KB
testcase_06 AC 16 ms
7,796 KB
testcase_07 AC 16 ms
7,856 KB
testcase_08 AC 16 ms
7,940 KB
testcase_09 AC 16 ms
7,792 KB
testcase_10 AC 16 ms
7,996 KB
testcase_11 AC 16 ms
7,896 KB
testcase_12 AC 16 ms
7,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

try:
    import frosch

    frosch.hook()
except ImportError:
    pass
ini = lambda: int(sys.stdin.readline())
inl = lambda: [int(x) for x in sys.stdin.readline().split()]
ins = lambda: sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))


def solve():
    a, b, c, d, k = inl()
    return (a * b + c - d) % k


print(solve())
0