結果
| 問題 | No.2765 Cross Product |
| コンテスト | |
| ユーザー |
nonon
|
| 提出日時 | 2024-05-31 21:36:27 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 6 ms / 2,000 ms |
| コード長 | 342 bytes |
| 記録 | |
| コンパイル時間 | 1,241 ms |
| コンパイル使用メモリ | 209,668 KB |
| 実行使用メモリ | 11,968 KB |
| 最終ジャッジ日時 | 2026-07-04 19:41:13 |
| 合計ジャッジ時間 | 2,087 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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