結果

問題 No.594 壊れた宝物発見機
ユーザー %20%20
提出日時 2017-11-11 19:30:02
言語 Perl
(5.38.2)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 24,336 KB
平均クエリ数 8.00
最終ジャッジ日時 2023-09-23 15:03:35
合計ジャッジ時間 3,559 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
23,916 KB
testcase_01 AC 98 ms
23,364 KB
testcase_02 AC 102 ms
23,388 KB
testcase_03 AC 97 ms
23,436 KB
testcase_04 AC 97 ms
23,388 KB
testcase_05 AC 96 ms
23,412 KB
testcase_06 AC 97 ms
23,844 KB
testcase_07 AC 101 ms
24,048 KB
testcase_08 AC 101 ms
23,412 KB
testcase_09 AC 101 ms
24,048 KB
testcase_10 AC 106 ms
24,036 KB
testcase_11 AC 99 ms
23,676 KB
testcase_12 AC 99 ms
23,376 KB
testcase_13 AC 98 ms
23,856 KB
testcase_14 AC 99 ms
24,336 KB
testcase_15 AC 98 ms
23,676 KB
testcase_16 AC 100 ms
23,700 KB
testcase_17 AC 98 ms
24,036 KB
testcase_18 AC 97 ms
23,844 KB
testcase_19 AC 98 ms
23,400 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub p{$|=print"? @_\n";<>}

$b=p 0,0,0;

$a=p -1,0,0;
$c=p 1,0,0;
$x=($c-$a)/(2*$b-$c-$a)/2;

$a=p 0,-1,0;
$c=p 0,1,0;
$y=($c-$a)/(2*$b-$c-$a)/2;

$a=p 0,0,-1;
$c=p 0,0,1;
$z=($c-$a)/(2*$b-$c-$a)/2;

print"! $x $y $z\n"
0