結果

問題 No.199 星を描こう
ユーザー tailstails
提出日時 2015-04-30 19:18:29
言語 Perl
(5.38.2)
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 5,512 KB
最終ジャッジ日時 2023-08-28 18:38:34
合計ジャッジ時間 1,554 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
5,512 KB
testcase_01 AC 8 ms
5,200 KB
testcase_02 AC 8 ms
5,328 KB
testcase_03 AC 8 ms
5,440 KB
testcase_04 AC 8 ms
5,380 KB
testcase_05 AC 8 ms
5,324 KB
testcase_06 AC 8 ms
5,184 KB
testcase_07 AC 8 ms
5,508 KB
testcase_08 AC 8 ms
5,384 KB
testcase_09 AC 8 ms
5,512 KB
testcase_10 AC 9 ms
5,424 KB
testcase_11 AC 8 ms
5,460 KB
testcase_12 AC 8 ms
5,328 KB
testcase_13 AC 8 ms
5,220 KB
testcase_14 AC 8 ms
5,376 KB
testcase_15 AC 8 ms
5,280 KB
testcase_16 AC 8 ms
5,276 KB
testcase_17 AC 9 ms
5,184 KB
testcase_18 AC 8 ms
5,324 KB
testcase_19 AC 8 ms
5,324 KB
testcase_20 AC 8 ms
5,432 KB
testcase_21 AC 8 ms
5,200 KB
testcase_22 AC 8 ms
5,196 KB
testcase_23 AC 8 ms
5,200 KB
testcase_24 AC 8 ms
5,356 KB
testcase_25 AC 8 ms
5,392 KB
testcase_26 AC 8 ms
5,488 KB
testcase_27 AC 8 ms
5,328 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.
Name "main::Y3" 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