結果
問題 | No.2825 Sum of Scores of Sets of Specified Sections |
ユーザー |
![]() |
提出日時 | 2024-01-22 16:05:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 256 bytes |
コンパイル時間 | 233 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 49,488 KB |
最終ジャッジ日時 | 2024-07-26 20:00:15 |
合計ジャッジ時間 | 18,568 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | WA * 4 RE * 28 |
ソースコード
import numpy as np import itertools n, m = map(int, input().split()) A = np.matrix([[*map(int, input().split())] for _ in range(n)]) B = np.matrix([[*map(int, input().split())] for _ in range(m)]) print(int(np.linalg.det(np.identity(n) + A * B) + 0.5))