結果

問題 No.620 ぐるぐるぐるりん
ユーザー tailstails
提出日時 2017-12-20 02:42:24
言語 Perl
(5.38.2)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 368 bytes
コンパイル時間 1,137 ms
コンパイル使用メモリ 6,924 KB
実行使用メモリ 5,964 KB
最終ジャッジ日時 2023-08-22 10:47:01
合計ジャッジ時間 2,819 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,836 KB
testcase_01 AC 7 ms
5,616 KB
testcase_02 AC 6 ms
5,556 KB
testcase_03 AC 6 ms
5,604 KB
testcase_04 AC 7 ms
5,628 KB
testcase_05 AC 6 ms
5,608 KB
testcase_06 AC 6 ms
5,856 KB
testcase_07 AC 6 ms
5,904 KB
testcase_08 AC 6 ms
5,724 KB
testcase_09 AC 6 ms
5,620 KB
testcase_10 AC 6 ms
5,964 KB
testcase_11 AC 6 ms
5,552 KB
testcase_12 AC 6 ms
5,908 KB
testcase_13 AC 6 ms
5,668 KB
testcase_14 AC 6 ms
5,716 KB
testcase_15 AC 6 ms
5,860 KB
testcase_16 AC 6 ms
5,896 KB
testcase_17 AC 6 ms
5,772 KB
testcase_18 AC 6 ms
5,716 KB
testcase_19 AC 6 ms
5,796 KB
testcase_20 AC 6 ms
5,736 KB
testcase_21 AC 6 ms
5,792 KB
testcase_22 AC 7 ms
5,608 KB
testcase_23 AC 6 ms
5,904 KB
testcase_24 AC 6 ms
5,568 KB
testcase_25 AC 6 ms
5,556 KB
testcase_26 AC 42 ms
5,732 KB
testcase_27 RE -
testcase_28 AC 42 ms
5,676 KB
testcase_29 AC 40 ms
5,852 KB
testcase_30 AC 41 ms
5,724 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::p" used only once: possible typo at Main.pl line 3.
Main.pl syntax OK

ソースコード

diff #

<>;
for(<>){
	($t,$p,$w,$v,$gx,$gy)=glob;
	$v+=1;
	$r=sqrt($v*$v+$w*$w);
	$a=atan2($w,$v);
	$z=0;
	for(1..$t){
		$z+=$r**(-2*$_);
	}
	{
		$c=cos($a*$t);
		$s=sin($a*$t);
		$dx=($gx/$r**$t-$c)/$z;
		$dy=($gy/$r**$t-$s)/$z;
	}
	for(1..$t){
		$c=cos($a*($_-$t));
		$s=sin($a*($_-$t));
		$x=($dx*$c-$dy*$s)/$r**$_;
		$y=($dx*$s+$dy*$c)/$r**$_;
		print $x," ",$y,"\n";
	}
}
0