1302 - Easy Game
Time Limit : 1 Second
Memory Limit : 128 MB
Submission: 156
Solved: 46
- Description
- Recently Isun have play a webgame in http://www.hacker.org/coil/. He found in the source of the web page have the data for each level. When he into an higher level he can get the game data from the source. But manual copy is too slow, he wants a program can get the game data from the source automatically.
- Input
- Multi test case, until end of file.
For each case, there are a page’s source include many lines.
A line "##ENDOFSOURCE" indicate the end of a case.
the length of a line will not more than 20000 - Output
- For each case, just find out a line, that without blank or table, the first 11 characters is FlashVars=" and the last character is " (Case sensitive), then this line will be the answer line.
Between the two quotation marks(") is game data, and the formate is x={number r}&y={number c}&board={map data}
For example, if there is a line:
FlashVars="x=4&y=3&board=X..........X"
You should output like this:
C:4 R:3
X...
....
...X
We guarantee if exist an answer it’s the only answer,
If you can't find answer, just output a line:"Not Found!"
The Answer 1<=R,C<=150 - sample input
-
<td> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="710" height="600" align="middle" id="main"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="coil.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#888888" /> <param name="FlashVars" value="x=4&y=3&board=X..........X" /> <embed src="coil.swf" width="710" height="600" autostart="false" quality="high" bgcolor="#888888" FlashVars="x=4&y=3&board=X..........X" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </td> ##ENDOFSOURCE
- sample output
-
C:4 R:3 X... .... ...X
- hint
- source
- Hust Monthly 09.08.21/Zehua HONG