結果
| 問題 |
No.988 N×Mマス計算(総和)
|
| コンテスト | |
| ユーザー |
nehan_der_thal
|
| 提出日時 | 2020-02-14 22:01:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 124 ms / 2,000 ms |
| コード長 | 268 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 82,296 KB |
| 実行使用メモリ | 96,324 KB |
| 最終ジャッジ日時 | 2024-07-06 07:15:36 |
| 合計ジャッジ時間 | 2,479 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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