Please Login First!"; exit(1); } ?> =0&&$start<=mb_strlen($html)) $j=mb_strpos($html,$mark2,$start); else return $html; $descriptionHTML=mb_substr($html,$i+ mb_strlen($mark1),$j-($i+ mb_strlen($mark1))); echo "[$star-$j]"; return $descriptionHTML; } $url=$_POST ['url']; $remote_id=basename($url); if (!$url) $url=$_GET['url']; if (strpos($url, "http") === false){ echo "Please Input like https://www.luogu.com.cn/problem/P1000"; exit(1); } if (false) { $url = stripslashes ( $url); } $baseurl=substr($url,0,strrpos($url,"/")+1); // echo $baseurl; //$html = file_get_html($url); $html = file_get_html($url, false,null,0, -1,true,true, DEFAULT_TARGET_CHARSET,false); foreach($html->find('img') as $element) $element->src=$baseurl.$element->src; $element=$html->find('article',0); $tlimit=1; $mlimit=128; $html=$element->innertext; // $html=getPartByMark($html,"

","

"); $title=getPartByMark($html,"

","

"); $descriptionHTML="
".getPartByMark($html,"

题目背景

","

输入格式

")."
"; $inputHTML=getPartByMark($html,"

输入格式

","

输出格式

"); $outputHTML=getPartByMark($html,"

输出格式

","

输入输出样例

"); $hint=getPartByMark($html,"

输入输出样例

","
**广告**"); ?>

Problem Id:  New Problem

Title: Time Limit:S Memory Limit:MB
LUOGU

Description:

Input: Output:

Sample Input: Sample Output:

Test Input: Test Output:
Hint: SpecialJudge: NY Source: