結果
| 問題 |
No.2765 Cross Product
|
| コンテスト | |
| ユーザー |
nonon
|
| 提出日時 | 2024-05-31 21:36:27 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 21 ms / 2,000 ms |
| コード長 | 342 bytes |
| コンパイル時間 | 2,169 ms |
| コンパイル使用メモリ | 192,304 KB |
| 最終ジャッジ日時 | 2025-02-21 17:35:15 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
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];
for(int i=0;i<3;i++)
{
if(i)cout<<' ';
cout<<(A[(i+1)%3]*B[(i+2)%3]-A[(i+2)%3]*B[(i+1)%3]);
}
cout<<endl;
}
nonon