結果
問題 | No.988 N×Mマス計算(総和) |
ユーザー | oshii |
提出日時 | 2020-03-07 14:01:16 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 10,728 KB |
実行使用メモリ | 16,668 KB |
最終ジャッジ日時 | 2023-09-20 12:13:20 |
合計ジャッジ時間 | 4,160 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
12,176 KB |
testcase_01 | AC | 16 ms
7,796 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 17 ms
7,768 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 17 ms
7,940 KB |
testcase_08 | AC | 16 ms
7,916 KB |
testcase_09 | AC | 16 ms
7,860 KB |
testcase_10 | TLE | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
ソースコード
n, m, k = map(int, input().split()) bw = list(map(str, input().split())) a = [int(input()) for i in range(n)] op = bw.pop(0) b = [int(i) for i in bw] c = 0 for i in a: for j in b: if op == "*": c += i*j c %= 10**9+7 else: c += i+j print (c%k)