結果

問題 No.2765 Cross Product
ユーザー elphe
提出日時 2024-07-15 18:21:45
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 454 ms
コンパイル使用メモリ 65,388 KB
最終ジャッジ日時 2025-02-23 15:47:27
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

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

	int A_x, A_y, A_z, B_x, B_y, B_z;
	cin >> A_x >> A_y >> A_z >> B_x >> B_y >> B_z;

	cout << A_y * B_z - A_z * B_y << ' ' << A_z * B_x - A_x * B_z << ' ' << A_x * B_y - A_y * B_x << '\n';
	return 0;
}
0