結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,296 KB
testcase_01 AC 72 ms
71,280 KB
testcase_02 AC 72 ms
71,320 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 71 ms
71,184 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 72 ms
71,104 KB
testcase_11 AC 70 ms
71,184 KB
testcase_12 WA -
testcase_13 AC 71 ms
71,296 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 72 ms
71,296 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]

print(pow(z, n, b))
0