結果
問題 |
No.2441 行列累乗
|
ユーザー |
|
提出日時 | 2023-08-25 21:31:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 575 bytes |
コンパイル時間 | 1,823 ms |
コンパイル使用メモリ | 165,376 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 07:57:57 |
合計ジャッジ時間 | 2,507 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> P; #define REP(i,n) for(int i=0;i<int(n);i++) int x[4][4]; int main(void){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int i,j,k; int a,b,c,d; cin >> a >> b >> c >> d; x[0][0]=a*a+b*c; x[0][1]=a*b+b*d; x[1][0]=a*c+d*c; x[1][1]=b*c+d*d; x[0][0]=x[0][0]*a+x[0][1]*c; x[0][1]=x[0][0]*b+x[0][1]*d; x[1][0]=x[1][0]*a+x[1][1]*c; x[1][1]=x[1][0]*b+x[1][1]*d; cout << x[0][0] << ' ' << x[0][1] << endl; cout << x[1][0] << ' ' << x[1][1] << endl; return 0; }