結果
| 問題 | No.988 N×Mマス計算(総和) |
| コンテスト | |
| ユーザー |
rythem00359
|
| 提出日時 | 2020-08-14 14:45:33 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 133 ms / 2,000 ms |
| + 87µs | |
| コード長 | 194 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 22,896 KB |
| 最終ジャッジ日時 | 2026-09-13 05:07:22 |
| 合計ジャッジ時間 | 3,079 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
N,M,K=map(int,input().split())
B=input().split()
B2=map(int,B[1:])
A=[int(input()) for _ in range(N)]
if B[0]=='+':
ans=((sum(A)*M)+(sum(B2)*N))%K
else:
ans=(sum(A)*sum(B2))%K
print(ans)
rythem00359