結果

問題 No.988 N×Mマス計算(総和)
ユーザー akitsugu777akitsugu777
提出日時 2020-06-23 14:39:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 20,100 KB
最終ジャッジ日時 2023-09-20 12:40:25
合計ジャッジ時間 2,849 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,780 KB
testcase_01 AC 16 ms
7,888 KB
testcase_02 AC 15 ms
7,928 KB
testcase_03 AC 15 ms
7,820 KB
testcase_04 WA -
testcase_05 AC 15 ms
7,784 KB
testcase_06 AC 15 ms
7,832 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 93 ms
10,528 KB
testcase_11 AC 53 ms
18,764 KB
testcase_12 AC 160 ms
19,376 KB
testcase_13 WA -
testcase_14 AC 53 ms
14,772 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 58 ms
17,668 KB
testcase_19 AC 157 ms
18,260 KB
testcase_20 AC 253 ms
20,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M, K = map(int, input().split())
L = input().split()
op = L[0]
B = sum([int(i) for i in L[1:]])
A = 0
for _ in range(N):
    A += int(input())
print((A * B) % K if op == '*' else (4*A + 3*B) % K)
0