結果

問題 No.199 星を描こう
コンテスト
ユーザー tails
提出日時 2015-04-30 19:18:29
言語 Perl
(5.40.0)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 6,820 KB
実行使用メモリ 6,016 KB
最終ジャッジ日時 2024-12-30 03:34:03
合計ジャッジ時間 1,689 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::Y3" used only once: possible typo at Main.pl line 1.
Name "main::X3" used only once: possible typo at Main.pl line 1.
Name "main::X2" used only once: possible typo at Main.pl line 1.
Name "main::Y2" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

$\=YES;sub g{$_[$_]=~$",${X.$_}=$`-$X0,${Y.$_}=$'-$Y0 for($X0=$Y0=0)..3;($X1*$Y2-$Y1*$X2)*($X1*$Y3-$Y1*$X3)<0}sub f{g@_ or g@_[1,2,0,3]or g@_[2,0,1,3]or$\=NO}@z=<>;/(.).*\1/||f@z[/./g]for glob'{0,1,2,3,4}'x4;print
0