結果

問題 No.3224 2×2行列入門
コンテスト
ユーザー KKT89
提出日時 2026-02-14 23:10:20
言語 C++17
(gcc 15.2.0 + boost 1.89.0)
結果
WA  
実行時間 -
コード長 426 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,818 ms
コンパイル使用メモリ 210,036 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-02-14 23:10:24
合計ジャッジ時間 3,137 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 2 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    ll A, B, C, D, Ap, Bp, Cp, Dp;
    cin >> A >> B >> C >> D >> Ap >> Bp >> Cp >> Dp;

    ll W = A * Ap + B * Cp;
    ll X = A * Bp + B * Dp;
    ll Y = C * Ap + D * Cp;
    ll Z = C * Bp + D * Dp;

    cout << W << " " << X << "\n";
    cout << Y << " " << Z << "\n";
    return 0;
}
0