]]></sample_output>
  <?php 
        printTestCases($row->problem_id, $OJ_DATA);
        ?>
<hint><![CDATA[<?php 
        echo $row->hint;
        ?>
]]></hint>
<source><![CDATA[<?php 
        echo fixcdata($row->source);
        ?>
]]></source>
<?php 
        require "../include/const.inc.php";
        for ($lang = 0; $lang < count($language_name); $lang++) {
            $solution = getSolution($row->problem_id, $lang);
            if ($solution->language) {
                ?>
	<solution language="<?php 
                echo $solution->language;
                ?>
"><![CDATA[<?php 
                echo fixcdata($solution->source_code);
                ?>
]]></solution>
	<?php 
            }
        }
        if ($row->spj != 0) {
            $filec = "{$OJ_DATA}/" . $row->problem_id . "/spj.c";
            $filecc = "{$OJ_DATA}/" . $row->problem_id . "/spj.cc";
        ?>
]]></test_input>
<test_output><![CDATA[<?php 
        echo getTestFileOut($row->problem_id, $testfile, $OJ_DATA);
        ?>
]]></test_output>
<hint><![CDATA[<?php 
        echo $row->hint;
        ?>
]]></hint>
<source><![CDATA[<?php 
        echo $row->source;
        ?>
]]></source>
<solution language="<?php 
        $solution = getSolution($row->problem_id);
        ?>
"><![CDATA[<?php 
        echo $solution;
        ?>
]]></solution>
<spj><![CDATA[<?php 
        if ($row->spj != 0) {
            $filec = "{$OJ_DATA}/" . $row->problem_id . "/spj.c";
            $filecc = "{$OJ_DATA}/" . $row->problem_id . "/spj.cc";
            if (file_exists($filec)) {
                echo file_get_contents($filec);
            } elseif (file_exists($filecc)) {
                echo file_get_contents($filecc);
            }
        }