結果
| 問題 | No.2765 Cross Product |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-27 04:12:24 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 465µs | |
| コード長 | 481 bytes |
| 記録 | |
| コンパイル時間 | 1,727 ms |
| コンパイル使用メモリ | 173,320 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-27 04:12:31 |
| 合計ジャッジ時間 | 3,616 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include<iostream>
#include<vector>
#include<set>
#include<algorithm>
using namespace std;
using ll = long long;
struct Point{
int x, y, z;
Point(int x, int y, int z):x(x), y(y), z(z){}
};
Point cross(Point a, Point b){
return Point(a.y*b.z-a.z*b.y, a.z*b.x-a.x*b.z, a.x*b.y-a.y*b.x);
}
int main(void){
int a, b, c, d, e, f;
cin >> a >> b >> c >> d >> e >> f;
auto ans=cross(Point(a, b, c), Point(d, e, f));
printf("%d %d %d\n", ans.x, ans.y, ans.z);
return 0;
}