結果

問題 No.199 星を描こう
ユーザー tails
提出日時 2015-04-30 19:08:42
言語 Perl
(5.40.0)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 5,760 KB
実行使用メモリ 6,016 KB
最終ジャッジ日時 2024-07-05 17:13:04
合計ジャッジ時間 1,245 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 14
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::Y3" used only once: possible typo at Main.pl line 1.
Name "main::Y2" 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::X3" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

$\=YES;sub g{pop=~$",${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