結果
| 問題 | No.988 N×Mマス計算(総和) |
| コンテスト | |
| ユーザー |
nehan_der_thal
|
| 提出日時 | 2020-02-14 22:01:05 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 83 ms / 2,000 ms |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 100,876 KB |
| 最終ジャッジ日時 | 2026-03-27 18:39:42 |
| 合計ジャッジ時間 | 1,803 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
N, M, L = map(int, input().split())
bs = []
c = 0
for i in range(N+1):
if i == 0:
X = input().split()
e = X[0] == '+'
b = sum(list(map(int, X[1:])))
continue
c += int(input())
if e:
print((b*N+c*M)%L)
else:
print(b*c%L)
nehan_der_thal