結果
| 問題 |
No.988 N×Mマス計算(総和)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-17 20:07:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 268 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 82,116 KB |
| 実行使用メモリ | 199,312 KB |
| 最終ジャッジ日時 | 2024-06-29 07:47:41 |
| 合計ジャッジ時間 | 4,927 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 TLE * 1 -- * 10 |
ソースコード
n,m,k = map(int,input().split())
op_B = input().split()
op = op_B[0]
B = list(map(int,op_B[1:]))
A = [int(input()) for i in range(n)]
result = 0
for ai in A:
result2 = 0
for bi in B:
result2+=eval(str(ai)+op+str(bi))
result+=result2
print(result%k)