結果
問題 | No.2765 Cross Product |
ユーザー |
|
提出日時 | 2024-06-01 19:49:56 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 3,105 ms |
コンパイル使用メモリ | 247,020 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-22 08:30:51 |
合計ジャッジ時間 | 4,072 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include<bits/stdc++.h>using namespace std;using ll=long long;int main(){vector<ll> a(3);for(ll i=0;i<3;i++){cin>>a[i];}vector<ll> b(3);for(ll 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;}