結果

問題 No.2765 Cross Product
ユーザー 👑 obakyan
提出日時 2024-08-04 11:12:55
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 245 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-04 11:12:57
合計ジャッジ時間 1,331 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = io.read("*n", "*n", "*n")
x, y, z = io.read("*n", "*n", "*n")
p = b * z - c * y
q = c * x - a * z
r = a * y - b * x
-- -0 to 0
if p == 0 then p = 0 end
if q == 0 then q = 0 end
if r == 0 then r = 0 end
print(p .. " " .. q .. " " .. r)
0