結果

問題 No.988 N×Mマス計算(総和)
ユーザー matriematrie
提出日時 2020-12-07 12:27:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 231 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 402 ms
コンパイル使用メモリ 11,760 KB
実行使用メモリ 17,964 KB
最終ジャッジ日時 2023-10-17 16:27:47
合計ジャッジ時間 4,163 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,036 KB
testcase_01 AC 29 ms
10,036 KB
testcase_02 AC 30 ms
10,040 KB
testcase_03 AC 28 ms
10,044 KB
testcase_04 AC 28 ms
10,040 KB
testcase_05 AC 28 ms
10,044 KB
testcase_06 AC 28 ms
10,044 KB
testcase_07 AC 28 ms
10,044 KB
testcase_08 AC 28 ms
10,040 KB
testcase_09 AC 28 ms
10,044 KB
testcase_10 AC 100 ms
11,752 KB
testcase_11 AC 55 ms
17,236 KB
testcase_12 AC 156 ms
17,548 KB
testcase_13 AC 73 ms
14,256 KB
testcase_14 AC 61 ms
14,256 KB
testcase_15 AC 129 ms
12,316 KB
testcase_16 AC 163 ms
14,536 KB
testcase_17 AC 188 ms
16,044 KB
testcase_18 AC 63 ms
16,340 KB
testcase_19 AC 155 ms
16,652 KB
testcase_20 AC 231 ms
17,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m,k = map(int, input().split())
op,*x = input().split()
x = sum(map(int,x))
y = sum([int(input()) for _ in range(n)])
print((x*n+y*m)%k if op=='+' else x*y%k)
0