結果
問題 | No.2765 Cross Product |
ユーザー |
|
提出日時 | 2024-05-31 21:27:01 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 427 bytes |
コンパイル時間 | 9,670 ms |
コンパイル使用メモリ | 333,624 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-20 22:22:24 |
合計ジャッジ時間 | 7,673 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h>using namespace std;#include <atcoder/all>using namespace atcoder;#define ll long long#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)//using mint = modint998244353;const int dx[4]={0,1,0,-1};const int dy[4]={1,0,-1,0};ll a[3];ll b[3];int main(){rep(i,3)cin>>a[i];rep(i,3)cin>>b[i];cout<<(a[1]*b[2]-a[2]*b[1])<<" "<<(a[2]*b[0]-a[0]*b[2])<<" "<<(a[0]*b[1]-a[1]*b[0])<<endl;}