結果
| 問題 |
No.2765 Cross Product
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-31 21:25:37 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 422 bytes |
| コンパイル時間 | 2,343 ms |
| コンパイル使用メモリ | 194,564 KB |
| 最終ジャッジ日時 | 2025-02-21 17:27:39 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const int MAX = 1000000005;
void solve() {
vector<int> a(3), b(3);
for (int i = 0; i < 3; i++) cin >> a[i];
for (int i = 0; i < 3; i++) cin >> b[i];
cout << a[1]*b[2]-a[2]*b[1] << " ";
cout << a[2]*b[0]-a[0]*b[2] << " ";
cout << a[0]*b[1]-a[1]*b[0] << endl;
}
int main() {
ios::sync_with_stdio(0); cin.tie();
solve();
}