結果

問題 No.988 N×Mマス計算(総和)
ユーザー liny_tailliny_tail
提出日時 2023-01-03 18:11:27
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 265 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 81,872 KB
実行使用メモリ 278,604 KB
最終ジャッジ日時 2024-11-27 02:22:02
合計ジャッジ時間 34,982 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8 TLE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M, K = map(int, input().strip().split(' '))

tmp = input().strip().split(' ')
op = tmp[0]
B = tmp[1:]
A = []
for i in range(N):
  A.append(input().strip())

ans = 0

for y in range(N):
  for x in range(M):
    ans += (eval(A[y] + op + B[x])) % K

print(ans % K)
0