結果

問題 No.2444 一次変換と体積
ユーザー tassei903tassei903
提出日時 2023-08-25 21:57:07
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 584 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 71,404 KB
最終ジャッジ日時 2023-08-25 21:57:10
合計ジャッジ時間 2,607 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,124 KB
testcase_01 AC 61 ms
71,304 KB
testcase_02 AC 60 ms
71,292 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 60 ms
71,084 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 59 ms
71,336 KB
testcase_11 AC 62 ms
71,112 KB
testcase_12 WA -
testcase_13 AC 60 ms
71,404 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 61 ms
71,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################
n, b = na()
a = [na() for i in range(3)]

z = a[0][0]*a[1][1]*a[2][2] + a[0][1]*a[1][2]*a[2][0] + a[0][2]*a[1][0]*a[2][0] - a[0][2]*a[1][1]*a[0][1] - a[0][1]*a[1][0]*a[2][2] - a[0][0]*a[1][2]*a[2][1]
z = abs(z)
print(pow(-z, n, b))
0