{"source_code": ""}, {"source_code": "\n"}, {"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": ""}], "src_uid": "b045abf40c75bb66a80fd6148ecc5bd6"} {"source_code": " $h)\n {\n break;\n }\n else\n {\n $i = $h % $b[$g];\n if($i == 0)\n {\n $f[count($f)] = $b[$g];\n $h /= $b[$g];\n }\n else\n {\n $g++;\n }\n }\n }\n $j = array();\n $k = 0;\n $l = $e;\n while(TRUE)\n {\n if($b[$k] > $l)\n {\n break;\n }\n else\n {\n $m = $l % $b[$k];\n if($m == 0)\n {\n $j[count($j)] = $b[$k];\n $l /= $b[$k];\n }\n else\n {\n $k++;\n }\n }\n }\n $n = array_intersect($f, $j);\n if(count($n) == 0)\n {\n break;\n }\n else\n {\n $d--;\n $e++;\n }\n}\nprint $d . \" \" . $e;\n?>", "positive_code": [{"source_code": " 0 && $b <> 0) {\n if ($a > $b)\n $a = $a % $b;\n else\n $b = $b % $a;\n }\n return abs($a + $b);\n}\n\n$input = rtrim(fgets(STDIN));\n$raw = explode(' ', $input);\n\n$n = (int)$raw[0];\n\nfor ($i = (int)($n / 2); $i > 0; $i--) {\n $a = $i;\n $b = $n - $i;\n\n if ($a >= $b) {\n continue;\n }\n\n $gcd = gcd($a, $b);\n\n if ($gcd == 1) {\n echo $a . ' ' . $b . PHP_EOL;\n die;\n }\n}"}], "negative_code": [{"source_code": " TRUE, \"3\" => TRUE, \"5\" => TRUE, \"7\" => TRUE, \"11\" => TRUE, \"13\" => TRUE, \"17\" => TRUE, \"19\" => TRUE, \"23\" => TRUE, \"29\" => TRUE, \"31\" => TRUE, \"37\" => TRUE, \"41\" => TRUE, \"43\" => TRUE, \"47\" => TRUE, \"53\" => TRUE, \"59\" => TRUE, \"61\" => TRUE, \"67\" => TRUE, \"71\" => TRUE, \"73\" => TRUE, \"79\" => TRUE, \"83\" => TRUE, \"89\" => TRUE, \"97\" => TRUE, \"101\" => TRUE, \"103\" => TRUE, \"107\" => TRUE, \"109\" => TRUE, \"113\" => TRUE, \"127\" => TRUE, \"131\" => TRUE, \"137\" => TRUE, \"139\" => TRUE, \"149\" => TRUE, \"151\" => TRUE, \"157\" => TRUE, \"163\" => TRUE, \"167\" => TRUE, \"173\" => TRUE, \"179\" => TRUE, \"181\" => TRUE, \"191\" => TRUE, \"193\" => TRUE, \"197\" => TRUE, \"199\" => TRUE, \"211\" => TRUE, \"223\" => TRUE, \"227\" => TRUE, \"229\" => TRUE, \"233\" => TRUE, \"239\" => TRUE, \"241\" => TRUE, \"251\" => TRUE, \"257\" => TRUE, \"263\" => TRUE, \"269\" => TRUE, \"271\" => TRUE, \"277\" => TRUE, \"281\" => TRUE, \"283\" => TRUE, \"293\" => TRUE, \"307\" => TRUE, \"311\" => TRUE, \"313\" => TRUE, \"317\" => TRUE, \"331\" => TRUE, \"337\" => TRUE, \"347\" => TRUE, \"349\" => TRUE, \"533\" => TRUE, \"359\" => TRUE, \"367\" => TRUE, \"373\" => TRUE, \"379\" => TRUE, \"383\" => TRUE, \"389\" => TRUE, \"397\" => TRUE, \"401\" => TRUE, \"409\" => TRUE, \"419\" => TRUE, \"421\" => TRUE, \"431\" => TRUE, \"433\" => TRUE, \"439\" => TRUE, \"443\" => TRUE, \"449\" => TRUE, \"457\" => TRUE, \"461\" => TRUE, \"463\" => TRUE, \"467\" => TRUE, \"479\" => TRUE, \"487\" => TRUE, \"491\" => TRUE, \"499\" => TRUE, \"503\" => TRUE, \"509\" => TRUE, \"521\" => TRUE, \"523\" => TRUE, \"541\" => TRUE, \"547\" => TRUE, \"557\" => TRUE, \"563\" => TRUE, \"569\" => TRUE, \"571\" => TRUE, \"577\" => TRUE, \"587\" => TRUE, \"593\" => TRUE, \"599\" => TRUE, \"601\" => TRUE, \"607\" => TRUE, \"613\" => TRUE, \"617\" => TRUE, \"619\" => TRUE, \"631\" => TRUE, \"641\" => TRUE, \"643\" => TRUE, \"647\" => TRUE, \"653\" => TRUE, \"659\" => TRUE, \"661\" => TRUE, \"673\" => TRUE, \"677\" => TRUE, \"683\" => TRUE, \"691\" => TRUE, \"701\" => TRUE, \"709\" => TRUE, \"719\" => TRUE, \"727\" => TRUE, \"733\" => TRUE, \"739\" => TRUE, \"743\" => TRUE, \"751\" => TRUE, \"757\" => TRUE, \"761\" => TRUE, \"769\" => TRUE, \"773\" => TRUE, \"787\" => TRUE, \"797\" => TRUE, \"809\" => TRUE, \"811\" => TRUE, \"821\" => TRUE, \"823\" => TRUE, \"827\" => TRUE, \"829\" => TRUE, \"839\" => TRUE, \"853\" => TRUE, \"857\" => TRUE, \"859\" => TRUE, \"863\" => TRUE, \"877\" => TRUE, \"881\" => TRUE, \"883\" => TRUE, \"887\" => TRUE, \"907\" => TRUE, \"911\" => TRUE, \"919\" => TRUE, \"929\" => TRUE, \"937\" => TRUE, \"941\" => TRUE, \"947\" => TRUE, \"953\" => TRUE, \"967\" => TRUE, \"971\" => TRUE, \"977\" => TRUE, \"983\" => TRUE, \"991\" => TRUE, \"997\" => TRUE);\nwhile(TRUE)\n{\n if(($b == TRUE) && ($c == TRUE))\n {\n break;\n }\n else\n {\n $b--;\n $c++;\n }\n}\nprint $b . \" \" . $c;\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "src_uid": "0af3515ed98d9d01ce00546333e98e77"} {"source_code": "13)\n {\n \t $k1[$i]=array_keys($split,$concate[$i]);\n \t // print_r($k1);\n \t //$key1=$k1[$i];\n \t //\n \t $k2[$i]=array_keys($split,$concate[$i+1]);\n \t //print_r($k2);\n \t //$key2=$k2[$i];\n \t if($k1[$i]>$k2[$i]){\n\n \t $temp[$i]=$k1[$i];\n \t $k1[$i]=$k2[$i];\n \t $k2[$i]=$temp[$i];\n\n \t }\n\n \t \n \t \n $count+=($k1[$i][0]+26)-$k2[$i][0];\n //echo \"plus=$count\\n\";\n }\n else\n {\n \t \t $k1[$i]=array_keys($split,$concate[$i]);\n \t //$key1=$k1[$i];\n \t //\n \t $k2[$i]=array_keys($split,$concate[$i+1]);\n \t //$key2=$k2[$i];\n\n \t \n $count+=abs($k1[$i][0]-$k2[$i][0]);\n //echo \"minus=$count\\n\";\n\n }\n //print_r($k1);\n // print_r($k2);\n\n}\necho \"$count\";\n\n//print_r($keyDistance);", "positive_code": [{"source_code": "= 13) {\n $actualStepsCount = count(CHARACTER_LIST) - $stepsCount;\n $steps += $actualStepsCount;\n\n $prevPosition = $letterNumber;\n } else {\n $actualStepsCount = $stepsCount;\n $steps += $actualStepsCount;\n\n $prevPosition = $letterNumber;\n }\n}\n\necho $steps;\n"}, {"source_code": " 0, \"b\" => 1, \"c\" => 2, \"d\" => 3, \"e\" => 4, \"f\" => 5, \"g\" => 6, \"h\" => 7, \"i\" => 8, \"j\" => 9, \"k\" => 10, \"l\" => 11, \"m\" => 12, \"n\" => 13, \"o\" => 14, \"p\" => 15, \"q\" => 16, \"r\" => 17, \"s\" => 18, \"t\" => 19, \"u\" => 20, \"v\" => 21, \"w\" => 22, \"x\" => 23, \"y\" => 24, \"z\" => 25);\n$c = 0;\n$d = 0;\nfor($x = 0; $x < strlen($a); $x++)\n{\n $e = $b[$a[$x]];\n $f = abs($e - $d);\n $g = abs(26 - $f);\n $c += min($f, $g);\n $d = $e;\n}\nprint $c;\n?>"}, {"source_code": ""}, {"source_code": " '',\n\t\t\"\\n\" => '',\n\t);\n\treturn strtr(fgets($f), $r);\n}\n\nfunction readNumString($f) {\n\treturn trim(fgets($f));\n}\n\nfunction stringToArray($str) {\n\treturn str_split($str);\n}\n\nfunction readNum($f, $is_int = false) {\n\t$v = readNumString($f);\n\treturn $is_int ? intval($v) : floatval($v);\n}\n\nfunction readStringExplode($f, $delimiter = ' ') {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = 'trim';\n\treturn array_map($callf, $return);\n}\n\nfunction readStringExplodeNum($f, $delimiter = ' ', $is_int = false) {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = $is_int ? 'intval' : 'floatval';\n\treturn array_map($callf, $return);\n}\n\n###### /IO ######\n\nfunction getAnswer($is_test = false, $f = false) {\n\tif ($is_test)\n\t\t$stream = $f;\n\telse\n\t\t$stream = STDIN;\n\t/* begin body */\n\t$aPos = str_split('qzawsxedcrfvtgpbyhnujmiklo');\n\tsort($aPos);\n\t$aPos = implode('', $aPos);\n\t$totalLen = strlen($aPos);\n\n\t$inputStr = readString($stream);\n\t$return = 0;\n\twhile (!empty($inputStr)) {\n\t\t$char = $inputStr[0];\n\t\t$pos = strpos($aPos, $char);\n\t\t$left = $totalLen - $pos;\n\t\tif ($pos < $left) {\n\t\t\t$return+=$pos;\n\t\t} else {\n\t\t\t$return+=$left;\n\t\t}\n\t\t$aPos = substr($aPos, $pos) . substr($aPos, 0, $pos);\n\n\t\t$inputStr = substr($inputStr, 1);\n\t}\n\techo $return;\n\t/* / end body */\n}\n\nif (empty($is_test))\n\tgetAnswer();"}, {"source_code": " ord($b)){\n $tmp = $a;\n $a = $b;\n $b = $tmp;\n }\n $i = abs(intval(ord($a) - ord($b)));\n $j = abs(intval(ord($a) - ord('a'))) + abs(intval(ord('z')) - ord($b)) + 1;\n// echo \"a: $a b: $b\" . PHP_EOL;\n// echo \"i: $i j: $j \" . PHP_EOL;\n return min($i,$j);\n}\n$current = 'a';\n$sum = 0;\nforeach(str_split($line) as $c){\n $sum += dis($c,$current);\n $current = $c;\n}\necho $sum . PHP_EOL;"}, {"source_code": ""}, {"source_code": " 'a', 2 => 'b', 3 => 'c', 4 => 'd', 5 => 'e',\n 6 => 'f', 7 => 'g', 8 => 'h', 9 => 'i', 10 => 'j',\n 11 => 'k', 12 => 'l', 13 => 'm', 14 => 'n', 15 => 'o',\n 16 => 'p', 17 => 'q', 18 => 'r', 19 => 's', 20 => 't',\n 21 => 'u', 22 => 'v', 23 => 'w', 24 => 'x', 25 => 'y',\n 26 => 'z'];\n$stdin = fopen('php://stdin', 'r');\n\n$string = trim(fgets($stdin));\n$pos = 1;\n$count = 0;\nfor ($i = 0; $i < strlen($string); $i++) {\n $newPos = array_search($string[$i], $alphabet);\n if ($newPos > $pos) {\n if ($newPos - $pos > 13) {\n\n $count+= $pos + (26 - $newPos);\n }\n if ($newPos - $pos < 13) {\n\n $count+= $newPos - $pos;\n }\n if ($newPos - $pos == 13) {\n $count+=13;\n }\n $pos = $newPos;\n }\n if ($newPos < $pos) {\n if ($pos - $newPos < 13) {\n $count += $pos - $newPos;\n }\n if ($pos - $newPos > 13) {\n $count+= $newPos + (26 - $pos);\n }\n if ($pos - $newPos == 13) {\n $count+=13;\n }\n $pos = $newPos;\n }\n}\necho $count;\n"}, {"source_code": " 0, \"b\" => 1, \"c\" => 2, \"d\" => 3, \"e\" => 4, \"f\" => 5, \"g\" => 6, \"h\" => 7, \"i\" => 8, \"j\" => 9, \"k\" => 10, \"l\" => 11, \"m\" => 12, \"n\" => 13, \"o\" => 14, \"p\" => 15, \"q\" => 16, \"r\" => 17, \"s\" => 18, \"t\" => 19, \"u\" => 20, \"v\" => 21, \"w\" => 22, \"x\" => 23, \"y\" => 24, \"z\" => 25);\n\t$ans = 0;\n\t$d = 0;\n\tfor($x = 0; $x < strlen($a); $x++)\n\t{\n\t\t$e = $b[$a[$x]];\n\t\t$f = abs($e - $d);\n\t\t$g = 26 - $f;\n\t\t$ans += min($f, $g);\n\t\t$d = $e;\n\t}\n\tprint $ans;\n?>"}], "negative_code": [{"source_code": "= 13) {\n $actualStepsCount = count(CHARACTER_LIST) - $stepsCount;\n $steps += $actualStepsCount;\n\n $prevPosition = $letterNumber;\n } else {\n $actualStepsCount = $stepsCount;\n $steps += $actualStepsCount;\n\n $prevPosition = $letterNumber;\n }\n}\n\necho $steps;\n"}, {"source_code": "= 13) {\n $actualStepsCount = count(CHARACTER_LIST) - $stepsCount;\n $steps += $actualStepsCount;\n\n $prevPosition = $letterNumber;\n } else {\n $actualStepsCount = $stepsCount;\n $steps += $actualStepsCount;\n\n $prevPosition = $letterNumber;\n }\n}\n\necho $steps;\n"}, {"source_code": " ord($b)){\n $tmp = $a;\n $a = $b;\n $b = $tmp;\n }\n $i = abs(intval(ord($a) - ord($b)));\n $j = abs(intval(ord($a) - ord('a'))) + abs(intval(ord('z')) - ord($b));\n// echo \"a: $a b: $b\" . PHP_EOL;\n// echo \"i: $i j: $j \" . PHP_EOL;\n return min($i,$j);\n}\n$current = 'a';\n$sum = 0;\nforeach(str_split($line) as $c){\n $sum += dis($c,$current);\n $current = $c;\n}\necho $sum . PHP_EOL;\nexit;"}, {"source_code": " 'a', 2 => 'b', 3 => 'c', 4 => 'd', 5 => 'e',\n 6 => 'f', 7 => 'g', 8 => 'h', 9 => 'i', 10 => 'j',\n 11 => 'k', 12 => 'l', 13 => 'm', 14 => 'n', 15 => 'o',\n 16 => 'p', 17 => 'q', 18 => 'r', 19 => 's', 20 => 't',\n 21 => 'u', 22 => 'v', 23 => 'w', 24 => 'x', 25 => 'y',\n 26 => 'z'];\n$string = trim($_POST['data']);\n$pos = 1;\n$count = 0;\nfor ($i = 0; $i < strlen($string); $i++) {\n $newPos = array_search($string[$i], $alphabet);\n if ($newPos > $pos) {\n if ($newPos - $pos > 13) {\n\n $count+= $pos + (26 - $newPos);\n }\n if ($newPos - $pos < 13) {\n\n $count+= $newPos - $pos;\n }\n if ($newPos - $pos == 13) {\n $count+=13;\n }\n $pos = $newPos;\n }\n if ($newPos < $pos) {\n if ($pos - $newPos < 13) {\n $count += $pos - $newPos;\n }\n if ($pos - $newPos > 13) {\n $count+= $newPos + (26 - $pos);\n }\n if ($pos - $newPos == 13) {\n $count+=13;\n }\n $pos = $newPos;\n }\n}\necho $count;\n"}, {"source_code": " 'a', 2 => 'b', 3 => 'c', 4 => 'd', 5 => 'e',\n 6 => 'f', 7 => 'g', 8 => 'h', 9 => 'i', 10 => 'j',\n 11 => 'k', 12 => 'l', 13 => 'm', 14 => 'n', 15 => 'o',\n 16 => 'p', 17 => 'q', 18 => 'r', 19 => 's', 20 => 't',\n 21 => 'u', 22 => 'v', 23 => 'w', 24 => 'x', 25 => 'y',\n 26 => 'z'];\n$stdin = fopen('php://stdin', 'r');\n$string = trim(fgets($stdin));\n$pos = 1;\n$count = 0;\nfor ($i = 0; $i < strlen($string); $i++) {\n $newPos = array_search($string[$i], $alphabet);\n if ($newPos > $pos) {\n if ($newPos - $pos > 13) {\n\n $count+= $pos + (26 - $newPos);\n }\n if ($newPos - $pos < 13) {\n\n $count+= $newPos - $pos;\n }\n if ($newPos - $pos == 13) {\n $count+=13;\n }\n $pos = $newPos;\n }\n if ($newPos < $pos) {\n if ($pos - $newPos < 13) {\n $count += $pos - $newPos;\n }\n if ($pos - $newPos > 13) {\n $count+= $newPos + (26 - $pos);\n }\n if ($newPos - $pos == 13) {\n $count+=13;\n }\n $pos = $newPos;\n $count;\n }\n}\necho $count;\n"}], "src_uid": "ecc890b3bdb9456441a2a265c60722dd"} {"source_code": " $h[$x + 1])\n {\n $i = 1;\n }\n}\nif($e != count($d))\n{\n print \"need tree\";\n}\nelseif(($e == count($d)) && ($e != count($c)) && ($i != 0))\n{\n print \"both\";\n}\nelseif(($e == count($d)) && ($i != 0))\n{\n print \"array\";\n}\nelseif(($e == count($d)) && ($i == 0))\n{\n print \"automaton\";\n}\n?>", "positive_code": [{"source_code": " $h[$x + 1])\n {\n $i = 1;\n }\n}\nif($e != count($d))\n{\n print \"need tree\";\n}\nelseif(($e == count($d)) && ($e != count($c)) && ($i != 0))\n{\n print \"both\";\n}\nelseif(($e == count($d)) && ($i != 0))\n{\n print \"array\";\n}\nelseif(($e == count($d)) && ($i == 0))\n{\n print \"automaton\";\n}\n?>"}, {"source_code": " $value){\n unset($chs[$key]);\n if($g1+$value<=$y && (array_sum($chs)>=$y||array_sum($chs)>=$x) && $g2==0) $g1+=$value;\n else {\n $g2+=$value;\n if($k==0) $k=$key+1;\n }\n}\nif(($g1<$x||$g1>$y)||($g2<$x||$g2>$y)) $k=0;\necho $k;\nfclose($in);", "positive_code": [{"source_code": "= $c) && ($e <= $d)) && (($f >= $c) && ($f <= $d)))\n {\n $g = 1;\n break;\n }\n}\nif($g == 0)\n{\n print \"0\";\n}\nelse\n{\n print $x + 1;\n}\n?>"}, {"source_code": "$c1){\n if($k>$key+1){\n $b += $c1;\n }else{\n $a += $c1;\n }\n }\n if($b<$x || $b>$y || $a<$x || $a>$y){\n continue;\n }else{\n print $k;\n die();\n }\n}\nprint 0;"}], "negative_code": [{"source_code": " $value){\n if($g1<$x) $g1+=$value;\n else {\n $g2+=$value;\n if($k==0) $k=$key+1;\n }\n}\necho $k;\nfclose($in);"}, {"source_code": " $value){\n if($g1+$value<=$y && $g2==0) $g1+=$value;\n else {\n $g2+=$value;\n if($k==0) $k=$key+1;\n }\n}\nif(($g1<$x||$g1>$y)||($g2<$x||$g2>$y)) $k=0;\necho $k;\nfclose($in);"}, {"source_code": " $value){\n if($g1<$x) $g1+=$value;\n else {\n $g2+=$value;\n if($k==0) $k=$key+1;\n }\n}\nif(($g1<$x||$g1>$y)||($g2<$x||$g2>$y)) $k=0;\necho $k;\nfclose($in);"}], "src_uid": "e595a1d0c0e4bbcc99454d3148b4557b"} {"source_code": "", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "", "positive_code": [{"source_code": " 7) {\n $cur_d = 1;\n }\n\n }\n}\nif ($word == \"month\") {\n for ($i = 0; $i < 12; $i++) {\n if ($n <= $m[$i]) {\n $s++;\n }\n }\n}\necho $s;\n?>"}, {"source_code": " 7) $cur_d = 1;\n }\n} else {\n for ($i = 0; $i < 12; $i++) {\n if ($n <= $m[$i]) $s++;\n }\n}\necho $s;\n?>"}, {"source_code": ""}], "negative_code": [{"source_code": " 7) {\n $cur_d = 1;\n }\n\n }\n}\nif ($word = \"month\") {\n for ($i = 0; $i < 12; $i++) {\n if ($n <= $m[$i]) {\n $s++;\n }\n }\n}\necho $s;\n?>"}, {"source_code": " 7) {\n $cur_d = 1;\n }\n\n }\n}\nif ($word == \"month\") {\n for ($i = 0; $i < 12; $i++) {\n if ($n <= $m[$i]) {\n $s++;\n }\n }\n}\necho $s;\n?>"}, {"source_code": ""}, {"source_code": ""}], "src_uid": "9b8543c1ae3666e6c163d268fdbeef6b"} {"source_code": "", "positive_code": [{"source_code": "= 0, $y >= 0, $z >= 0; $x--, $y--, $z--)\n{\n $i -= $g;\n $j -= 1;\n $f -= $h;\n if(($i < 0) || ($j < 0) || ($f < 0))\n {\n break;\n }\n else\n {\n $k++;\n }\n}\nprint floor($k / $a);\n?>"}, {"source_code": "nextInt();\n\t//$B_first = $Token->nextInt();\n\t\n\t$Token = new Token(rtrim(fgets(STDIN), \"\\n\"), \" \");\n\t//$inp_arr = $Token->nextIntArray(8);\n\t$inp_arr = $Token->nextIntArray();\n\t\n\t$inp_f = $inp_arr[0];\n\t$inp_k = $inp_arr[1];\n\t$inp_l = $inp_arr[2];\n\t$inp_c = $inp_arr[3];\n\t$inp_d = $inp_arr[4];\n\t$inp_p = $inp_arr[5];\n\t$inp_nl = $inp_arr[6];\n\t$inp_np = $inp_arr[7];\n\n\t$drink = (int)(($inp_k * $inp_l) / $inp_nl);\n\t$salt = (int)($inp_p / $inp_np);\n\t$lime = $inp_c * $inp_d;\n\t/*$arr[] = $drink;\n\t$arr[] = $salt;\n\t$arr[] = $lime;\n\t\n\t//$min = min($arr);\n\tif (asort(&$arr) === false) {\n\t\tprint(-1);\n\t\treturn;\n\t}\n\t$min = $arr[0];\n\t\n\t*/\n\t//�ŏ��l�����߂鏈��\n\t//�f�[�^�������Ƃ��A$min = min($arr);\n\t$min = min($drink, $salt, $lime);\n\t$ans = (int)($min / $inp_f);\n\tprintf(\"%d\", $ans);\n\n}\n\nfunction run(){\n\tsolve();\n}\n\nob_end_clean();\nrun();\n\n//input - $inp_\n//block $temp_\n//two block$ttemp_\n//as \t $as_\n//instance $(Upper)\n//ref $ref\n//class menba $_\n\nclass Token{\n\tprivate $token;\n\tprivate $tok;\n\t\n\tpublic function __construct($str_line, $tok) {\n\t\t$this->tok = $tok;\n\t\t$this->token = strtok($str_line, $this->tok);\n\t}\n\n\tpublic function nextToken() {\n\t\t$thisToken = $this->token;\n\t\t$this->token = strtok($this->tok);\n\t\treturn $thisToken;\n\t} \n\t\t\n\tpublic function nextFloat() {\n\t\treturn (float)$this->nextToken();\n\t}\n\t\n \tpublic function nextInt() {\n\t\treturn (int)$this->nextToken();\n\t}\n\t\n\tpublic function nextIntArray() {\n\t\t$temp_arr = array();\n\t\t$flag = -1;\n\t\twhile ($flag !== 1) {\n\t\t\t$thisToken = $this->nextToken();\n\t\t\tif ($thisToken !== false) {\n\t\t\t\t$temp_arr[] = $thisToken;\n\t\t\t} else {\n\t\t\t\t$flag = 1;\n\t\t\t}\n\t\t}\n\t\treturn $temp_arr;\n\t}\n\t\n\tpublic function nnextIntArray($num) {\n\t\t$temp_arr = array();\n\t\tfor ($i = 0; $i < $num; $i++) {\n\t\t\t$temp_arr[] = (int)$this->token;\n\t\t}\n\t\treturn $temp_arr;\n\t}\n}\n/*\nfunction get_line() {\n $stdin = fopen(\"php://stdin\", \"r\"); \n $line = rtrim($stdin, \"\\n\"); \n fclose($stdin); \n return $line; \n}\n*/\n\nfunction num_printf($i){\n\tif (is_float($i)) {\n\t\tprintf(\"%.10f\", $i);\n\t}\n\tif (is_int($i)) {\n\t\tprintf(\"%10d\", $i);\n\t}\n}\n\nfunction array_printf(array $array) {\n\t\t$message = \"\";\n\t\tforeach ($array as $value) {\n\t\t\t$message .= \"$value\" . \" \";\n\t\t}\n\t\t$message = rtrim($message);\n\t\tprintf('%s', $message);\n}\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": ""}], "src_uid": "67410b7d36b9d2e6a97ca5c7cff317c1"} {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "negative_code": [], "src_uid": "c05d0a9cabe04d8fb48c76d2ce033648"} {"source_code": ""}, {"source_code": "= 1 && $i <= 1000) {\n echo $i;\n break;\n }\n}\n\nfunction simple($n)\n{\n for($i = 2; $i <= sqrt($n); $i++) {\n if (!($n % $i)) {\n return false;\n }\n }\n return true;\n}"}], "negative_code": [{"source_code": " 1) {\n foreach (range(1, $n) as $i) {\n $res = $n*$i+1;\n if (!simple($res) && $i >= 1 && $i <= 1000) {\n //echo $res . \"=\" . $n . \"*\". $i . \"+1\" . \"\\n\";\n echo $i;\n break;\n }\n }\n} else {\n echo $i;\n}\n\nfunction simple($n)\n{\n for($i = 2; $i <= sqrt($n); $i++) {\n if (!($n % $i)) {\n return false;\n }\n }\n return true;\n}"}, {"source_code": "= 1 && $res <= 1000) {\n //echo $res . \"=\" . $n . \"*\". $i . \"+1\" . \"\\n\";\n echo $i;\n break;\n }\n}\n\nfunction simple($n)\n{\n for($i = 2; $i <= sqrt($n); $i++) {\n if (!($n % $i)) {\n return false;\n }\n }\n return true;\n}"}, {"source_code": "= 1 && $i <= 1000) {\n echo $i;\n break;\n }\n }\n\n\nfunction simple($n)\n{\n for($i = 2; $i <= sqrt($n); $i++) {\n if (!($n % $i)) {\n return false;\n }\n }\n return true;\n}"}, {"source_code": " 1) {\n foreach (range(1, $n) as $i) {\n $res = $n*$i+1;\n if (!simple($res) && $i >= 1 && $i <= 1000) {\n echo $i;\n break;\n }\n }\n} else {\n echo $i;\n}\n\nfunction simple($n)\n{\n for($i = 2; $i <= sqrt($n); $i++) {\n if (!($n % $i)) {\n return false;\n }\n }\n return true;\n}"}, {"source_code": "= 1 && $res <= 1000) {\n //echo $res . \"=\" . $n . \"*\". $i . \"+1\" . \"\\n\";\n echo $i;\n break;\n }\n}\n\nfunction simple($n)\n{\n for($i = 2; $i <= sqrt($n); $i++) {\n if (!($n % $i)) {\n return false;\n }\n }\n return true;\n}"}, {"source_code": " 2) {\n foreach (range(1, $n) as $i) {\n $res = $n*$i+1;\n if (!simple($res) && $i >= 1 && $i <= 1000) {\n echo $i;\n break;\n }\n }\n} else {\n echo $i;\n}\necho \"\\n\";\n\nfunction simple($n)\n{\n for($i = 2; $i <= sqrt($n); $i++) {\n if (!($n % $i)) {\n return false;\n }\n }\n return true;\n}"}, {"source_code": " 1) {\n foreach (range(1, $n) as $i) {\n $res = $n*$i+1;\n if (!simple($res) && $i >= 1 && $i <= 1000) {\n echo $i;\n break;\n }\n }\n} else {\n echo $i;\n}\n\nfunction simple($n)\n{\n for($i = 2; $i <= sqrt($n); $i++) {\n if (!($n % $i)) {\n return false;\n }\n }\n return true;\n}"}, {"source_code": " 2) {\n foreach (range(1, $n) as $i) {\n $res = $n*$i+1;\n if (!simple($res) && $i >= 1 && $i <= 1000) {\n// echo $i;\n fwrite(STDOUT, $i);\n break;\n }\n }\n} else {\n echo $i;\n}\n\nfunction simple($n)\n{\n for($i = 2; $i <= sqrt($n); $i++) {\n if (!($n % $i)) {\n return false;\n }\n }\n return true;\n}"}], "src_uid": "5c68e20ac6ecb7c289601ce8351f4e97"} {"source_code": "= 0; $i--) {\n if (($i >= 2) and ($t[$i] == $t[$i - 1]) and ($t[$i] == $t[$i - 2])) {\n $s[] = $t[$i] + $t[$i - 1] + $t[$i - 2];\n/* if ($i == 4) {\n break;\n }*/\n } else if (($i >= 1) and ($t[$i] == $t[$i - 1])) {\n $s[] = $t[$i] + $t[$i - 1];\n/* if ($i == 4) {\n break;\n }*/\n }\n}\nif (isset($s)) {\n sort($s);\n $j = count($s);\n $min -= $s[$j - 1];\n}\nprint $min . \"\\n\";\nob_flush(STDOUT);\nflush(STDOUT);\n?>\n\n\n", "positive_code": [{"source_code": ""}, {"source_code": "$v){\n\t\n\tif($v>2){\n\t\tif(($k*3)>$max){\n\t\t\t$max=$k*3;\n\t\t}\n\t}elseif($v==2){\n\t\tif(($k*2)>$max){\n\t\t\t$max=$k*2;\n\t\t}\n\t}\n}\necho (array_sum($cards)-$max);"}, {"source_code": " $value) {\n\t\tif ($value != 1) {\n\t\t\tif ($value > 3) $value = 3;\n\t\t\tif ($key * $value > $max) $max = $key * $value;\n\t\t}\n\t}\n\t$asum = array_sum($a);\n\treturn $asum - $max;\n}\n$in = trim(fgets(STDIN));\n$cards = explode(' ', $in);\necho process($cards);\n?>"}, {"source_code": " $count) {\n if ($count > 3) {\n $count = 3;\n }\n if($count >= 2) {\n $values[] = $key * $count;\n }\n}\n\nif(!empty($values)) {\n echo $allSum - max($values);\n} else {\n echo $allSum;\n}"}, {"source_code": " $s - $t[$i] - $t[$j] - $t[$k])\n {\n $ans = $s - $t[$i] - $t[$j] - $t[$k];\n }\n }\n if($t[$i] == $t[$j] && $ans > $s - $t[$i] - $t[$j])\n {\n $ans = $s - $t[$i] - $t[$j];\n }\n }\n }\n print $ans;\n?>\n"}], "negative_code": [{"source_code": "= 0; $i--) {\n if (($i >= 2) and ($t[$i] == $t[$i - 1]) and ($t[$i] == $t[$i - 2])) {\n $s[] = $t[$i] + $t[$i - 1] + $t[$i - 2];\n if ($i == 4) {\n break;\n }\n } else if (($i >= 1) and ($t[$i] == $t[$i - 1])) {\n $s[] = $t[$i] + $t[$i - 1];\n if ($i == 4) {\n break;\n }\n }\n}\nif (isset($s)) {\n sort($s);\n $j = count($s);\n $min -= $s[$j - 1];\n}\nprint $min . \"\\n\";\nob_flush(STDOUT);\nflush(STDOUT);\n?>\n\n\n"}, {"source_code": "= 0; $i--) {\n if (($i >= 2) and ($t[$i] == $t[$i - 1]) and ($t[$i] == $t[$i - 2])) {\n $s[] = $t[$i] + $t[$i - 1] + $t[$i - 2];\n if ($i == 4) {\n break;\n }\n } else if (($i >= 1) and ($t[$i] == $t[$i - 1])) {\n $s[] = $t[$i] + $t[$i - 1];\n if ($i == 4) {\n break;\n }\n }\n}\nif (isset($s)) {\n sort($s);\n $j = count($s);\n $min -= $s[$j - 1];\n}\nprint $min;\nob_flush();\nflush();\n?>\n\n\n"}, {"source_code": "= 0; $i--) {\n if (($i >= 2) and ($t[$i] == $t[$i - 1]) and ($t[$i] == $t[$i - 2])) {\n $s[] = $t[$i] + $t[$i - 1] + $t[$i - 2];\n if ($i == 4) {\n break;\n }\n } else if (($i >= 1) and ($t[$i] == $t[$i - 1])) {\n $s[] = $t[$i] + $t[$i - 1];\n if ($i == 4) {\n break;\n }\n }\n}\nif (isset($s)) {\n sort($s);\n $j = count($s);\n $min -= $s[$j - 1];\n}\nprint $min;\n?>\n\n\n"}, {"source_code": ""}, {"source_code": " $count) {\n if ($count > 3) {\n $count = 3;\n }\n if($count >= 2) {\n $values[] = $key * $count;\n }\n}\n\nif(!empty($values)) {\n echo $allSum - max($values);\n} else {\n echo $allSum;\n}"}], "src_uid": "a9c17ce5fd5f39ffd70917127ce3408a"} {"source_code": "= $p + 1; $i--){\n $stop = FALSE;\n for($j = 2 ; $j <= min(sqrt($i), $p); $j++){\n if($i % $j == 0){\n $stop = TRUE;\n break;\n }\n }\n if(!$stop){\n echo $i;\n exit;\n }\n}\necho '-1';", "positive_code": [{"source_code": " $p; $n--) {\n $b = true;\n if ($n%2 == 0) {\n continue;\n }\n for ($i = 3; $i <= $p; $i = $i+2) {\n if ($n/$i < sqrt($n)) {\n break;\n } else if ($n%$i == 0) {\n $b = false;\n break;\n }\n }\n if ($n > $p && $b) {\n $k = $n;\n break;\n }\n }\n\n echo $k;\n \n?>"}], "negative_code": [{"source_code": " $p; $n--) {\n $b = true;\n if ($n%2 == 0) {\n continue;\n }\n for ($i = 3; $i <= $p; $i = $i+2) {\n if ($n/$i <= sqrt($n)) {\n break;\n } else if ($n%$i == 0) {\n $b = false;\n break;\n }\n }\n if ($n > $p && $b) {\n $k = $n;\n break;\n }\n }\n\n echo $k;\n \n?>"}, {"source_code": " $p; $n--) {\n if (method($n, $p, $y)) {\n continue;\n } else {\n $k = $n;\n break;\n }\n }\n echo $k;\n \n function method($s, $p, $y) {\n if ($s%2 == 0) {\n return true; \n }\n for ($i = $p; $i >= 2; $i--) {\n if ($s%$i) {\n return false;\n } else {\n if ($p < $s/$i && $s/$i <$y/$i) {\n return true;\n } else {\n return false;\n }\n }\n }\n \n return false;\n }\n \n?>"}], "src_uid": "b533203f488fa4caf105f3f46dd5844d"} {"source_code": " 0) {\n echo \"YES\";\n} else {\n echo \"NO\";\n}", "positive_code": [{"source_code": ""}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": " $value) {\n\t\tif($input % $value == 0){\n\t\t\techo \"YES\";die();\n\t\t}\n\t}\n\techo \"NO\";\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": " 0)\n echo (\"YES\");\n else \n echo (\"NO\");\n "}, {"source_code": ""}, {"source_code": ""}, {"source_code": "0)echo \"YES\";\nelse echo \"NO\";"}, {"source_code": "4,\n\t1=>7,\n\t2=>47,\n\t3=>74,\n\t4=>447,\n\t5=>474,\n\t6=>477,\n\t7=>744,\n\t8=>774\n\n];\n$flag=0;\nfor($i=0;$i 0)\n{\n print \"YES\";\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": ""}, {"source_code": " 0) {\n\t\tforeach ($lucky as $l) {\n\t\t\tif ((int)$var % $l == 0) {\n\t\t\t\techo 'YES';\n\t\t\t\t$flag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif ($flag == false) echo 'NO';\n\t}\n\telse echo 'YES';"}, {"source_code": " 0 ? \"YES\" : \"NO\");"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": " 0)\n{\n print \"YES\";\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": ""}, {"source_code": " 0) echo 'NO';\n\telse echo 'YES';"}, {"source_code": " 0 || substr_count($var, '7') > 0) echo 'YES';\n\telse echo 'NO';"}, {"source_code": " 0) echo 'NO';\n\telse echo 'YES';"}, {"source_code": " 0) {\n\t\tif ((int)$var % 4 == 0 || (int)$var % 7 == 0) echo 'YES';\n\t\techo 'NO';\n\t}\n\telse echo 'YES';"}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": " $value) {\n\t\tif($input % $value == 0){\n\t\t\techo \"YES\";die();\n\t\t}\n\t}\n\techo \"NO\";\n?>"}, {"source_code": " $value) {\n\t\tif($input % $value == 0){\n\t\t\techo \"YES\";die();\n\t\t}\n\t}\n\techo \"NO\";\n?>"}, {"source_code": " $value) {\n\t\tif($input % $value == 0){\n\t\t\techo \"YES\";die();\n\t\t}\n\t}\n\techo \"NO\";\n?>"}, {"source_code": " 0) {\n\t\tif ((int)$var % 4 == 0 || (int)$var % 7 == 0) echo 'YES';\n\t\telse echo 'NO';\n\t}\n\telse echo 'YES';"}, {"source_code": " 0) echo 'NO';\n\telse echo 'YES';"}], "src_uid": "78cf8bc7660dbd0602bf6e499bc6bb0d"} {"source_code": "", "positive_code": [{"source_code": ""}, {"source_code": ""}], "src_uid": "816ec4cd9736f3113333ef05405b8e81"} {"source_code": "25", "positive_code": [{"source_code": "25"}, {"source_code": "25\n"}, {"source_code": "25"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"}, {"source_code": "25"}, {"source_code": ""}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25\n"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": ""}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25\n"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25"}, {"source_code": "25\n"}, {"source_code": "25"}, {"source_code": ""}, {"source_code": "25"}], "negative_code": [{"source_code": "p 25"}, {"source_code": "25 "}, {"source_code": "\n25"}, {"source_code": ""}, {"source_code": "25\n///"}, {"source_code": "#include\n#include\n#include\nusing namespace std;\nint main(){\n\tint n;\n\tcin>>n;\n\tcout<<25;\n\treturn 0;\n}\n"}, {"source_code": "echo 25"}, {"source_code": " 2) {\n echo $num[strlen($num) - 2] . $num[strlen($num) - 1];\n} elseif (strlen($num) == 2) {\n echo $num;\n}"}, {"source_code": "23"}, {"source_code": "echo 25"}, {"source_code": "echo (25)"}, {"source_code": " 1,\n 1 => 1,\n 2 => 2,\n 3 => 6,\n 4 => 24,\n 5 => 120,\n 6 => 720,\n 7 => 5040,\n 8 => 40320,\n 9 => 362880,\n 10 => 3628800\n);\n\n$total = 0;\nfor($i=0;$i$total){\n echo \"0.000000000000\\n\";\n} else {\n $v = pow(0.5,$q)*$n[$q]/($n[$q-$range]*$n[$range]);\n echo $v;\n}\n\n\n\n\n\n\n\n\n", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "negative_code": [{"source_code": " 0)) {\n\techo \"0.000000000000\";\n} else if ($p1 == $p2 && $m1 == $m2 && $r > 0) {\n\techo \"0.500000000000\";\n}\n?>"}, {"source_code": " 1,\n 2 => 2,\n 3 => 6,\n 4 => 24,\n 5 => 120,\n 6 => 720,\n 7 => 5040,\n 8 => 40320,\n 9 => 362880,\n 10 => 3628800\n);\n\n$total = 0;\nfor($i=0;$i 1,\n 1 => 1,\n 2 => 2,\n 3 => 6,\n 4 => 24,\n 5 => 120,\n 6 => 720,\n 7 => 5040,\n 8 => 40320,\n 9 => 362880,\n 10 => 3628800\n);\n\n$total = 0;\nfor($i=0;$i 1,\n 1 => 1,\n 2 => 2,\n 3 => 6,\n 4 => 24,\n 5 => 120,\n 6 => 720,\n 7 => 5040,\n 8 => 40320,\n 9 => 362880,\n 10 => 3628800\n);\n\n$total = 0;\nfor($i=0;$i"}], "src_uid": "f7f68a15cfd33f641132fac265bc5299"} {"source_code": "$a[1] ? $a[0]+$a[1] : $a[0] * 2 - 1);\n", "positive_code": [{"source_code": ""}, {"source_code": "\n"}, {"source_code": " $b)\n{\n print strlen($a) - ($c - $b + 1);\n}\n?>"}, {"source_code": " strlen($s)/2) {\n echo strlen($s);\n}\nelse {\n $c = 0;\n for ($i = 0; $i < strlen($s); $i++) {\n if ($s[$i] == 'a') {\n $c++;\n }\n }\n echo $c*2 -1;\n}"}, {"source_code": "strlen($aa))\n\techo strlen($aa);\nelse echo $cnt+$cnt-1;"}, {"source_code": ""}, {"source_code": " strlen($s) ? strlen(trim($s)) : $r;"}, {"source_code": ""}, {"source_code": "$others)\n\t\techo strlen($str);\n\telse\n\t\techo ($count*2)-1;"}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": " ($len/2)) {\n\techo $len;\n}\nelse {\n\techo (ceil($len/2) - $as) + 1;\n}\n\n?>"}, {"source_code": ""}, {"source_code": " ($len/2)) {\n\techo $len;\n}\nelse {\n\tdo {\n\t $len--;\n\t}while ($as < ceil($len/2));\n\techo $len;\n}\n\n?>"}, {"source_code": ""}, {"source_code": ""}], "src_uid": "84cb9ad2ae3ba7e912920d7feb4f6219"} {"source_code": "", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "$l&&$l!=1){print 'NO';exit(0);}\n\n$r = 0;\nwhile($l>$k){if($l%$k!=0){print 'NO';exit(0);}$l=intval($l/$k);$r++;}\n\nif($l==$k)print \"YES\\r\\n$r\"; else print 'NO';\n\n?>"}, {"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "$k){if($l%$k!=0){print 'NO';exit(0);}$l=intval($l/$k);$r++;}\n\nprint \"YES\\r\\n$r\";\n\n?>"}, {"source_code": "$l&&$l!=1){print 'NO';exit(0);}\n\n$r = 0;\nwhile($l>$k){if($l%$k!=0){print 'NO';exit(0);}$l=intval($l/$k);$r++;}\n\nprint \"YES\\r\\n$r\";\n\n?>"}], "src_uid": "8ce89b754aa4080e7c3b2c3b10f4be46"} {"source_code": " 1439)\n {\n unset($h[$i - 1]);\n break;\n }\n else\n {\n $j += $c;\n $h[$i] = $j;\n $i++;\n }\n}\n$k = array_reverse($h);\n$l = array();\nfor($x = 0; $x < count($k); $x++)\n{\n $l[$x] = $k[$x] + $d;\n}\n$m = 0;\nfor($x = 0; $x < count($k); $x++)\n{\n if(($k[$x] < $g) && ($l[$x] > $f))\n {\n $m++;\n }\n}\nprint $m;\n?>", "positive_code": [{"source_code": " 1,\n// DURING => 1\n// );\n// $tb_arr = array(\n// FREQ => 1,\n// DURING => 1\n// );\n// $ta_start = 23 * 60 + 59;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr);\n\n $ta_end = get_end($ta_start, $ta_arr[DURING]);\n\n $count = ceil(($ta_end - $tb_start) / $tb_arr[FREQ]);\n\n debug(\" check between time $tb_start and $ta_end. Initial count: $count\" );\n\n // meet at start staion\n if (is_station($ta_start-$tb_arr[DURING], $tb_arr[FREQ]))\n {\n $count--;\n }\n\n return intval($count);\n}\n\n// get the most recent meetable bus start time\nfunction get_start($start, $t_arr)\n{\n global $ts;\n\n if ($start - $t_arr[DURING] > $ts)\n {\n $start_time = $start - $t_arr[DURING];\n\n if ( (($start_time - $ts) % $t_arr[FREQ]) == 0)\n {\n return $start_time;\n }\n else\n {\n return $ts + ceil(($start_time - $ts) / $t_arr[FREQ]) * $t_arr[FREQ];\n }\n }\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during < $te)\n return $start + $during;\n else\n return $te;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n debug(\"meet in station at time: $t, freq: $freq\");\n return true;\n }\n else\n return false;\n}"}, {"source_code": " 1,\n// DURING => 1\n// );\n// $tb_arr = array(\n// FREQ => 1,\n// DURING => 1\n// );\n// $ta_start = 23 * 60 + 59;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr);\n\n $ta_end = get_end($ta_start, $ta_arr[DURING]);\n\n $count = ceil(($ta_end - $tb_start) / $tb_arr[FREQ]);\n\n debug(\" check between time $tb_start and $ta_end. Initial count: $count\" );\n\n // meet at start staion\n if (is_station($ta_start-$tb_arr[DURING], $tb_arr[FREQ]))\n {\n $count--;\n }\n\n return intval($count);\n}\n\n// get the most recent meetable bus start time\nfunction get_start($start, $t_arr)\n{\n global $ts;\n\n if ($start - $t_arr[DURING] > $ts)\n {\n $start_time = $start - $t_arr[DURING];\n\n if ( (($start_time - $ts) % $t_arr[FREQ]) == 0)\n {\n return $start_time;\n }\n else\n {\n return $ts + ceil(($start_time - $ts) / $t_arr[FREQ]) * $t_arr[FREQ];\n }\n }\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during <= $te)\n return $start + $during;\n else\n return $te + 1;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n debug(\"meet in station at time: $t, freq: $freq\");\n return true;\n }\n else\n return false;\n}"}], "negative_code": [{"source_code": " $f) && ($j[$x] < $g))\n {\n $p++;\n }\n}\nprint $p;\n?>"}, {"source_code": " $f) && ($j[$x] < $g))\n {\n $p++;\n }\n}\nprint $p;\n?>"}, {"source_code": " 60,\n 'during' => 120\n );\n$tb_arr = array(\n 'freq' => 24,\n 'during' => 100\n );\n$ta_start = 13 * 60 + 0;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr['during']);\n\n $ta_end = get_end($ta_start, $ta_arr['during']);\n\n $count = ceil(($ta_end - $tb_start) / $tb_arr['freq']);\n if ( (($ta_end - $tb_start) % $tb_arr['freq']) == 0)\n $count++;\n\n echo \" check between time $tb_start and $ta_end. Initial count: $count\" . PHP_EOL;\n\n if (is_station($ta_start-$tb_arr['during'], $tb_arr['freq']))\n $count--;\n\n if (is_station($ta_start+$ta_arr['during'], $tb_arr['freq']))\n $count--;\n\n return $count;\n}\n\nfunction get_start($start, $during)\n{\n global $ts;\n\n if ($start - $during > $ts)\n return $start - $during;\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during < $te)\n return $start + $during;\n else\n return $te;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n echo \"meet one at station. time: $t, freq: $freq\" . PHP_EOL;\n return true;\n }\n else\n return false;\n}"}, {"source_code": " 30,\n// DURING => 60\n// );\n// $tb_arr = array(\n// FREQ => 60,\n// DURING => 60\n// );\n// $ta_start = 22 * 60 + 30;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr[DURING]);\n\n $ta_end = get_end($ta_start, $ta_arr[DURING]);\n\n $count = intval(($ta_end - $tb_start) / $tb_arr[FREQ]);\n\n // echo \" check between time $tb_start and $ta_end. Initial count: $count\" . PHP_EOL;\n\n $b_station = false;\n // meet at start staion\n if (is_station($ta_start-$tb_arr[DURING], $tb_arr[FREQ]))\n {\n $b_station = true;\n $count--;\n }\n\n // meet at arrived station\n if (is_station($ta_start+$ta_arr[DURING], $tb_arr[FREQ]))\n {\n $b_station = true;\n $count--;\n }\n\n if ( (($ta_end - $tb_start) % $tb_arr[FREQ]) == 0 && $b_station == true)\n {\n // echo 'add 1' . PHP_EOL;\n $count++;\n }\n\n return $count;\n}\n\nfunction get_start($start, $during)\n{\n global $ts;\n\n if ($start - $during > $ts)\n return $start - $during;\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during < $te)\n return $start + $during;\n else\n return $te;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n // echo \"meet one at station. time: $t, freq: $freq\" . PHP_EOL;\n return true;\n }\n else\n return false;\n}"}, {"source_code": " 30,\n// DURING => 60\n// );\n// $tb_arr = array(\n// FREQ => 60,\n// DURING => 60\n// );\n// $ta_start = 22 * 60 + 30;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr[DURING]);\n\n $ta_end = get_end($ta_start, $ta_arr[DURING]);\n\n $count = ceil(($ta_end - $tb_start) / $tb_arr[FREQ]);\n\n // echo \" check between time $tb_start and $ta_end. Initial count: $count\" . PHP_EOL;\n\n $b_station = false;\n // meet at start staion\n if (is_station($ta_start-$tb_arr[DURING], $tb_arr[FREQ]))\n {\n $b_station = true;\n $count--;\n }\n\n // meet at arrived station\n if (is_station($ta_start+$ta_arr[DURING], $tb_arr[FREQ]))\n {\n $b_station = true;\n $count--;\n }\n\n if ( (($ta_end - $tb_start) % $tb_arr[FREQ]) == 0 && $b_station == true)\n {\n // echo 'add 1' . PHP_EOL;\n $count++;\n }\n\n return $count;\n}\n\nfunction get_start($start, $during)\n{\n global $ts;\n\n if ($start - $during > $ts)\n return $start - $during;\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during < $te)\n return $start + $during;\n else\n return $te;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n // echo \"meet one at station. time: $t, freq: $freq\" . PHP_EOL;\n return true;\n }\n else\n return false;\n}"}, {"source_code": " 30,\n// DURING => 60\n// );\n// $tb_arr = array(\n// FREQ => 60,\n// DURING => 60\n// );\n// $ta_start = 22 * 60 + 30;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr);\n\n $ta_end = get_end($ta_start, $ta_arr[DURING]);\n\n $count = ceil(($ta_end - $tb_start) / $tb_arr[FREQ]);\n\n debug(\" check between time $tb_start and $ta_end. Initial count: $count\" );\n\n // meet at start staion\n if (is_station($ta_start-$tb_arr[DURING], $tb_arr[FREQ]))\n {\n $count--;\n }\n\n return intval($count);\n}\n\n// get the most recent meetable bus start time\nfunction get_start($start, $t_arr)\n{\n global $ts;\n\n if ($start - $t_arr[DURING] > $ts)\n {\n $start_time = $start - $t_arr[DURING];\n\n if ( (($start_time - $ts) % $t_arr[FREQ]) == 0)\n {\n return $start_time;\n }\n else\n {\n return $ts + ceil(($start_time - $ts) / $t_arr[FREQ]) * $t_arr[FREQ];\n }\n }\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during < $te)\n return $start + $during;\n else\n return $te;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n debug(\"meet in station at time: $t, freq: $freq\");\n return true;\n }\n else\n return false;\n}"}, {"source_code": " 30,\n// DURING => 60\n// );\n// $tb_arr = array(\n// FREQ => 60,\n// DURING => 60\n// );\n// $ta_start = 22 * 60 + 30;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr);\n\n $ta_end = get_end($ta_start, $ta_arr[DURING]);\n\n $count = ceil(($ta_end - $tb_start) / $tb_arr[FREQ]);\n\n debug(\" check between time $tb_start and $ta_end. Initial count: $count\" );\n\n $b_station = false;\n // meet at start staion\n if (is_station($ta_start-$tb_arr[DURING], $tb_arr[FREQ]))\n {\n $b_station = true;\n $count--;\n }\n\n // // meet at arrived station\n // if (is_station($ta_start+$ta_arr[DURING], $tb_arr[FREQ]))\n // {\n // $b_station = true;\n // $count--;\n // }\n\n return $count;\n}\n\n// get the most recent meetable bus start time\nfunction get_start($start, $t_arr)\n{\n global $ts;\n\n if ($start - $t_arr[DURING] > $ts)\n {\n $start_time = $start - $t_arr[DURING];\n\n if ( (($start_time - $ts) % $t_arr[FREQ]) == 0)\n {\n return $start_time;\n }\n else\n {\n return $ts + ceil(($start_time - $ts) / $t_arr[FREQ]) * $t_arr[FREQ];\n }\n }\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during < $te)\n return $start + $during;\n else\n return $te;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n debug(\"meet in station at time: $t, freq: $freq\");\n return true;\n }\n else\n return false;\n}"}, {"source_code": " 60,\n 'during' => 120\n );\n$tb_arr = array(\n 'freq' => 24,\n 'during' => 100\n );\n$ta_start = 13 * 60 + 0;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr['during']);\n\n $ta_end = get_end($ta_start, $ta_arr['during']);\n\n $count = ceil(($ta_end - $tb_start) / $tb_arr['freq']);\n if ( (($ta_end - $tb_start) % $tb_arr['freq']) == 0)\n $count++;\n\n // echo \" check between time $tb_start and $ta_end. Initial count: $count\" . PHP_EOL;\n\n if (is_station($ta_start-$tb_arr['during'], $tb_arr['freq']))\n $count--;\n\n if (is_station($ta_start+$ta_arr['during'], $tb_arr['freq']))\n $count--;\n\n return $count;\n}\n\nfunction get_start($start, $during)\n{\n global $ts;\n\n if ($start - $during > $ts)\n return $start - $during;\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during < $te)\n return $start + $during;\n else\n return $te;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n // echo \"meet one at station. time: $t, freq: $freq\" . PHP_EOL;\n return true;\n }\n else\n return false;\n}"}, {"source_code": " 60,\n// DURING => 120\n// );\n// $tb_arr = array(\n// FREQ => 24,\n// DURING => 100\n// );\n// $ta_start = 13 * 60 + 0;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr[DURING]);\n\n $ta_end = get_end($ta_start, $ta_arr[DURING]);\n\n $count = ceil(($ta_end - $tb_start) / $tb_arr[FREQ]);\n if ( (($ta_end - $tb_start) % $tb_arr[FREQ]) == 0)\n $count++;\n\n // echo \" check between time $tb_start and $ta_end. Initial count: $count\" . PHP_EOL;\n\n if (is_station($ta_start-$tb_arr[DURING], $tb_arr[FREQ]))\n $count--;\n\n if (is_station($ta_start+$ta_arr[DURING], $tb_arr[FREQ]))\n $count--;\n\n return $count;\n}\n\nfunction get_start($start, $during)\n{\n global $ts;\n\n if ($start - $during > $ts)\n return $start - $during;\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during < $te)\n return $start + $during;\n else\n return $te;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n // echo \"meet one at station. time: $t, freq: $freq\" . PHP_EOL;\n return true;\n }\n else\n return false;\n}"}, {"source_code": " 30,\n// DURING => 60\n// );\n// $tb_arr = array(\n// FREQ => 60,\n// DURING => 60\n// );\n// $ta_start = 22 * 60 + 30;\n\necho get_count($ta_arr, $tb_arr, $ta_start) . PHP_EOL;\n\nfunction get_count($ta_arr, $tb_arr, $ta_start)\n{\n $tb_start = get_start($ta_start, $tb_arr[DURING]);\n\n $ta_end = get_end($ta_start, $ta_arr[DURING]);\n\n $count = intval(($ta_end - $tb_start) / $tb_arr[FREQ]);\n\n // echo \" check between time $tb_start and $ta_end. Initial count: $count\" . PHP_EOL;\n\n $b_station = false;\n // meet at start staion\n if (is_station($ta_start-$tb_arr[DURING], $tb_arr[FREQ]))\n {\n $b_station = true;\n $count--;\n }\n\n // meet at arrived station\n if (is_station($ta_start+$ta_arr[DURING], $tb_arr[FREQ]))\n {\n $b_station = true;\n $count--;\n }\n\n if ( (($ta_end - $tb_start) % $tb_arr[FREQ]) == 0)\n {\n // echo 'add 1' . PHP_EOL;\n $count++;\n }\n\n return $count;\n}\n\nfunction get_start($start, $during)\n{\n global $ts;\n\n if ($start - $during > $ts)\n return $start - $during;\n else\n return $ts;\n}\n\nfunction get_end($start, $during)\n{\n global $te;\n\n if ($start + $during < $te)\n return $start + $during;\n else\n return $te;\n}\n\nfunction is_station($t, $freq)\n{\n global $ts, $te;\n\n if ($t<$ts || $t > $te)\n return false;\n\n if ((($t - $ts) % $freq) == 0)\n {\n // echo \"meet one at station. time: $t, freq: $freq\" . PHP_EOL;\n return true;\n }\n else\n return false;\n}"}], "src_uid": "1c4cf1c3cb464a483511a8a61f8685a7"} {"source_code": "= $k) $photos++;\n\t\t\t}\n\t\t}\t\t\n\t}\n}\n\nprint $photos;\n?>", "positive_code": [{"source_code": "= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 2; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 1; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n if($r + $r2 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 3; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 2; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n if($r + $r2 + $r3 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 4; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 3; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n if($r + $r2 + $r3 + $r4 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 5; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 4; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 6; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 5; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 7; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 6; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 8; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 7; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 7];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 9; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 8; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 7];\n $p9 = $e[$n + 8];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 10; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 9; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 7];\n $p9 = $e[$n + 8];\n $p10 = $e[$n + 9];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n $r10 = array_sum(array_slice($p10, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 + $r10 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 1; $m <= 10; $m++)\n{\n for($n = 0; $n < $b; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $r = array_sum(array_slice($p, $o, $m));\n if($r >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 2; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 1; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n if($r + $r2 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 3; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 2; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n if($r + $r2 + $r3 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 4; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 3; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n if($r + $r2 + $r3 + $r4 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 5; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 4; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 6; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 5; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $p6 = $i[$n + 5];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 7; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 6; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $p6 = $i[$n + 5];\n $p7 = $i[$n + 6];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 8; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 7; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $p6 = $i[$n + 5];\n $p7 = $i[$n + 6];\n $p8 = $i[$n + 7];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 9; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 8; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $p6 = $i[$n + 5];\n $p7 = $i[$n + 6];\n $p8 = $i[$n + 7];\n $p9 = $i[$n + 8];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 10; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 9; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $p6 = $i[$n + 5];\n $p7 = $i[$n + 6];\n $p8 = $i[$n + 7];\n $p9 = $i[$n + 8];\n $p10 = $i[$n + 9];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n $r10 = array_sum(array_slice($p10, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 + $r10 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 1; $m <= 1; $m++)\n{\n for($n = 0; $n < $a; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $r = array_sum(array_slice($p, $o, $m));\n if($r >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 2; $m <= 2; $m++)\n{\n for($n = 0; $n < $a - 1; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n if($r + $r2 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 3; $m <= 3; $m++)\n{\n for($n = 0; $n < $a - 2; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n if($r + $r2 + $r3 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 4; $m <= 4; $m++)\n{\n for($n = 0; $n < $a - 3; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n if($r + $r2 + $r3 + $r4 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 5; $m <= 5; $m++)\n{\n for($n = 0; $n < $a - 4; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 6; $m <= 6; $m++)\n{\n for($n = 0; $n < $a - 5; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 7; $m <= 7; $m++)\n{\n for($n = 0; $n < $a - 6; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 8; $m <= 8; $m++)\n{\n for($n = 0; $n < $a - 7; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 7];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 9; $m <= 9; $m++)\n{\n for($n = 0; $n < $a - 8; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 7];\n $p9 = $e[$n + 8];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 10; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 9; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 7];\n $p9 = $e[$n + 8];\n $p10 = $e[$n + 9];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n $r10 = array_sum(array_slice($p10, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 + $r10 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nprint $l;\n?>"}], "negative_code": [{"source_code": "= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 2; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 1; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n if($r + $r2 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 3; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 2; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n if($r + $r2 + $r3 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 4; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 3; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n if($r + $r2 + $r3 + $r4 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 5; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 4; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 6; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 5; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 7; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 6; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 8; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 7; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 6];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 9; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 8; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 6];\n $p9 = $e[$n + 7];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 10; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 9; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 6];\n $p9 = $e[$n + 7];\n $p10 = $e[$n + 8];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n $r10 = array_sum(array_slice($p10, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 + $r10 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 1; $m <= 10; $m++)\n{\n for($n = 0; $n < $b; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $r = array_sum(array_slice($p, $o, $m));\n if($r >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 2; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 1; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n if($r + $r2 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 3; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 2; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n if($r + $r2 + $r3 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 4; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 3; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n if($r + $r2 + $r3 + $r4 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 5; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 4; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 6; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 5; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $p6 = $i[$n + 5];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 7; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 6; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $p6 = $i[$n + 5];\n $p7 = $i[$n + 6];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 8; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 7; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $p6 = $i[$n + 5];\n $p7 = $i[$n + 6];\n $p8 = $i[$n + 6];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 9; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 8; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $p6 = $i[$n + 5];\n $p7 = $i[$n + 6];\n $p8 = $i[$n + 6];\n $p9 = $i[$n + 7];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 10; $m <= 10; $m++)\n{\n for($n = 0; $n < $b - 9; $n++)\n {\n for($o = 0; $o <= $a - $m; $o++)\n {\n $p = $i[$n];\n $p2 = $i[$n + 1];\n $p3 = $i[$n + 2];\n $p4 = $i[$n + 3];\n $p5 = $i[$n + 4];\n $p6 = $i[$n + 5];\n $p7 = $i[$n + 6];\n $p8 = $i[$n + 6];\n $p9 = $i[$n + 7];\n $p10 = $i[$n + 8];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n $r10 = array_sum(array_slice($p10, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 + $r10 >= $d)\n {\n $l += 1;\n }\n }\n }\n}\nfor($m = 1; $m <= 1; $m++)\n{\n for($n = 0; $n < $a; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $r = array_sum(array_slice($p, $o, $m));\n if($r >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 2; $m <= 2; $m++)\n{\n for($n = 0; $n < $a - 1; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n if($r + $r2 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 3; $m <= 3; $m++)\n{\n for($n = 0; $n < $a - 2; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n if($r + $r2 + $r3 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 4; $m <= 4; $m++)\n{\n for($n = 0; $n < $a - 3; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n if($r + $r2 + $r3 + $r4 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 5; $m <= 5; $m++)\n{\n for($n = 0; $n < $a - 4; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 6; $m <= 6; $m++)\n{\n for($n = 0; $n < $a - 5; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 7; $m <= 7; $m++)\n{\n for($n = 0; $n < $a - 6; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 8; $m <= 8; $m++)\n{\n for($n = 0; $n < $a - 7; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 6];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 9; $m <= 9; $m++)\n{\n for($n = 0; $n < $a - 8; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 6];\n $p9 = $e[$n + 7];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nfor($m = 10; $m <= 10; $m++)\n{\n for($n = 0; $n < $a - 9; $n++)\n {\n for($o = 0; $o <= $b - $m; $o++)\n {\n $p = $e[$n];\n $p2 = $e[$n + 1];\n $p3 = $e[$n + 2];\n $p4 = $e[$n + 3];\n $p5 = $e[$n + 4];\n $p6 = $e[$n + 5];\n $p7 = $e[$n + 6];\n $p8 = $e[$n + 6];\n $p9 = $e[$n + 7];\n $p10 = $e[$n + 8];\n $r = array_sum(array_slice($p, $o, $m));\n $r2 = array_sum(array_slice($p2, $o, $m));\n $r3 = array_sum(array_slice($p3, $o, $m));\n $r4 = array_sum(array_slice($p4, $o, $m));\n $r5 = array_sum(array_slice($p5, $o, $m));\n $r6 = array_sum(array_slice($p6, $o, $m));\n $r7 = array_sum(array_slice($p7, $o, $m));\n $r8 = array_sum(array_slice($p8, $o, $m));\n $r9 = array_sum(array_slice($p9, $o, $m));\n $r10 = array_sum(array_slice($p10, $o, $m));\n if($r + $r2 + $r3 + $r4 + $r5 + $r6 + $r7 + $r8 + $r9 + $r10 >= $d)\n {\n $l -= 1;\n }\n }\n }\n}\nprint $l;\n?>"}], "src_uid": "9c766881f6415e2f53fb43b61f8f40b4"} {"source_code": "= sizeof($input)){\n $ok = false;\n break;\n }else if(!isVowel($input[$i+1])){\n $ok = false;\n break;\n } \n } \n}\n\necho $ok ? 'YES' : 'NO';\n\nfunction isVowel($character){\n return $character == 'a' \n || $character == 'i' \n || $character == 'u' \n || $character == 'e' \n || $character == 'o';\n}\n?>"}, {"source_code": " 1, b => 0, c => 0, d => 0, e => 1, f => 0, g => 0, h => 0, i => 1, j => 0, k => 0, l => 0, m => 0, n => 0, o => 1, p => 0, q => 0, r => 0, s => 0, t => 0, u => 1, v => 0, w => 0, x => 0, y => 0, z => 0);\n$c = 0;\nfor($x = 0; $x < strlen($a); $x++)\n{\n if($a[$x] == \"n\")\n {\n continue;\n }\n elseif(($b[$a[$x]] == 0) && ($b[$a[$x + 1]] != 1))\n {\n $c = 1;\n break;\n }\n elseif($b[$a[$x]] == 1)\n {\n continue;\n }\n}\nif($c == 0)\n{\n print \"YES\";\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": " 0){\n\tfwrite(STDOUT, 1);\n}else{\n\tif($a == 0 && $c == 0 && $d == 0){\n\t\tfwrite(STDOUT, 1);\n\t}else{\n\t\tfwrite(STDOUT, 0);\n\t}\n}\n\n?>", "positive_code": [{"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": ""}], "src_uid": "b99578086043537297d374dc01eeb6f8"} {"source_code": ""}, {"source_code": ""}, {"source_code": " 0){\n \n $half = ceil($n/2);\n if($k<=$half){\n $num = 2*$k-1;\n }else{\n $num = 2*($k-$half);\n }\n echo $num.\"\\n\";\n }\n $n = $k = null;\n }\n ?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": " $part)\n{\n echo 2 * ($k-$part);\n}\n else {\n echo 2*($k-1)+1;\n}"}, {"source_code": "\n"}, {"source_code": " $oddnums) {\n //if so, it's even. ith even number is 2i.\n $i = $k - $oddnums;\n echo 2 * $i;\n} else {\n //it's odd. the ith odd number is 2(i-1) + 1.\n echo 2 * ($k - 1) + 1;\n}\n?>"}, {"source_code": " $c)\n{\n printf(\"%.0f\", ($b - $c) * 2);\n}\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "= $r){\n printf(\"%.0f\" ,$r * 2 - 1);\n }\n else\n printf(\"%.0f\", ((floor(($n + 1) / 2)) - $r) * -2);\n \n "}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": " 0){\n $half = ceil($n/2);\n if($k<=$half){\n $num = 2*$k-1;\n }else{\n $num = 2*($k-$half);\n }\n echo $num.\"\\n\";\n }\n $n = $k = null;\n }\n ?>"}, {"source_code": "\n"}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "= 0) {\n $k = bcsub($k, $countNech, 0); \n $out = bcmul($k, '2', 0);\n} else {\n $out = bcmul($k, '2', 0);\n $out = bcsub($out, '1', 0); \n}\n\necho $out;\n\n?>"}, {"source_code": " $part)\n{\n echo 2 * ($part-$k);\n}\n else {\n echo 2*($k-1)+1;\n}"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "= $r)){\n for ($i = 0; $i < $r - 1; $i++){\n $k = $k + 2;\n echo $k;\n }\n }\n if (($n % 2 == 0) && ($n / 2 < $r)){\n for ($i = 0; $i < ($r - $n / 2 ) ; $i++){\n $k = $k + 1;\n echo $k;\n }\n }\n if (($n % 2 != 0) && ( round($n / 2) >= $r)){\n for ($i = 0; $i < $r - 1; $i++){\n $k = $k + 2; \n echo ($k);\n }\n }if (($n % 2 !== 0) && ( round($n / 2) < $r)){\n for ($i = 0; $i < ($r - round($n / 2)); $i++){\n $k = $k + 1; \n echo ($k + 2);\n }\n }\n "}, {"source_code": "= $r){\n echo ( $r * 2 - 1);\n }\n else\n echo (( intval( ($n + 1 ) / 2) - $r) * -2);\n \n "}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "= 0; $i--) {\n array_unshift($even, $odd[$i]);\n}\nprint($even[$k-1]);\n"}, {"source_code": "= 0; $i--) {\n array_unshift($even, $odd[$i]);\n}\nprint($even[$k-1]);"}, {"source_code": " 0)\n {\n reset($ee);\n echo current($ee);\n } else {\n echo \"-1\";\n }\n \n echo PHP_EOL;", "positive_code": [{"source_code": " 0)\n{\n $j = current($i);\n print $j;\n}\nelse\n{\n print \"-1\";\n}\n?>"}, {"source_code": "=0) break;\n $t2[$k] = $d + $k*$c;\n if(in_array($t2[$k], $t1)){\n $ok = $t2[$k];\n }\n }\n return $ok;\n}\nlist($a, $b) = explode(\" \", trim(fgets(STDIN)));\nlist($c, $d) = explode(\" \", trim(fgets(STDIN)));\necho ab($a,$b,$c,$d);\n?>"}, {"source_code": " $d) {\n $d += $c;\n }\n else {\n $b += $a;\n }\n $i++;\n}\necho -1;"}], "negative_code": [], "src_uid": "158cb12d45f4ee3368b94b2b622693e7"} {"source_code": ""}, {"source_code": "\n"}], "negative_code": [], "src_uid": "35202a4601a03d25e18dda1539c5beba"} {"source_code": " $e)\n {\n $f = $d - $e;\n if(($f == 200) && ($b[0] == 100))\n {\n $c = 1;\n }\n break;\n }\n}\nif($c == 1)\n{\n print \"YES\";\n}\nelse\n{\n print \"NO\";\n}\n?>", "positive_code": [{"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "src_uid": "9679acef82356004e47b1118f8fc836a"} {"source_code": "= count($c))\n {\n array_push($c, $b[$y]);\n unset($b[$y]);\n }\n elseif($b[$y] < count($c))\n {\n continue;\n }\n }\n if(count($b) == 0)\n {\n break;\n }\n}\nprint $x;\n?>"}], "negative_code": [{"source_code": " 0) && ($y != 0))\n {\n unset($b[$c]);\n $c = $y;\n $e--;\n $e = $b[$c];\n }\n elseif(($b[$y] == $b[$c]) && ($e > 0) && ($y != 0))\n {\n unset($b[$c]);\n $c = $y;\n $e--;\n }\n }\n unset($b[$c]);\n rsort($b);\n if(count($b) > 0)\n {\n $d++;\n }\n else\n {\n $d++;\n break;\n }\n}\nif($f > $d)\n{\n print $d + $f - $d;\n}\nelse\n{\n print $d;\n}\n?>"}, {"source_code": " 0)\n {\n $d++;\n }\n else\n {\n $d++;\n break;\n }\n}\nprint $d;\n?>"}], "src_uid": "7c710ae68f27f140e7e03564492f7214"} {"source_code": "= 1; $y--)\n {\n $g -= $x;\n if(((($f * $d) + ($g * $e)) == $a) && (($f + $g) == $b))\n {\n $h = 1;\n break;\n }\n }\n if($h == 1)\n {\n break;\n }\n $g = $b;\n }\n for($x = 1; $x <= $f; $x++)\n {\n print $d . \" \";\n }\n for($x = 1; $x < $g; $x++)\n {\n print $e . \" \";\n }\n print $e;\n}\n?>", "positive_code": [{"source_code": "#!/usr/bin/php\n= 1; $y--)\n {\n $g -= $x;\n if((($f * $d) + ($g * $e)) == $a)\n {\n $h = 1;\n break;\n }\n }\n if($h == 1)\n {\n break;\n }\n $g = $b - $f;\n }\n for($x = 1; $x <= $f; $x++)\n {\n print $d . \" \";\n }\n for($x = 1; $x < $g; $x++)\n {\n print $e . \" \";\n }\n print $e;\n}\n?>"}, {"source_code": "= 1; $y--)\n {\n $g -= $x;\n if(((($f * $d) + ($g * $e)) == $a) && (($f + $g) == $b))\n {\n $h = 1;\n break;\n }\n }\n if($h == 1)\n {\n break;\n }\n $g = $b - $f;\n }\n for($x = 1; $x <= $f; $x++)\n {\n print $d . \" \";\n }\n for($x = 1; $x < $g; $x++)\n {\n print $e . \" \";\n }\n print $e;\n}\n?>"}, {"source_code": ""}, {"source_code": "#!/usr/bin/php\n", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n\n\n"}, {"source_code": " '',\n\t\t\"\\n\" => '',\n\t);\n\treturn strtr(fgets($f), $r);\n}\n\nfunction readNumString($f) {\n\treturn trim(fgets($f));\n}\n\nfunction stringToArray($str) {\n\treturn str_split($str);\n}\n\nfunction readNum($f, $is_int = false) {\n\t$v = readNumString($f);\n\treturn $is_int ? intval($v) : floatval($v);\n}\n\nfunction readStringExplode($f, $delimiter = ' ') {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = 'trim';\n\treturn array_map($callf, $return);\n}\n\nfunction readStringExplodeNum($f, $delimiter = ' ', $is_int = false) {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = $is_int ? 'intval' : 'floatval';\n\treturn array_map($callf, $return);\n}\n\n###### /IO ######\n\nfunction getAnswer($is_test = false, $f = false) {\n\tif ($is_test)\n\t\t$stream = $f;\n\telse\n\t\t$stream = STDIN;\n\t/* begin body */\n\tlist($price, $r) = readStringExplodeNum($stream, ' ', true);\n\tfor ($i = 1; $i <= 10; $i++) {\n\t\t$amount = $i * $price;\n\t\t\n\t\tif ($amount % 10 == $r || $amount % 10 == 0) {\n\t\t\techo $i;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t/* / end body */\n}\n\nif (empty($is_test))\n\tgetAnswer();"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": "1) return true;\n\treturn false;\n}\nfunction calculate_min($k, $n){\n\t$allow = true;\n\t$c = 1;\n\t$num = $k-$n;\n\tif(dividable($num)) return $c;\n\tfor($i=0;$i<=10; $i++){\n\t\t$c++;\n\t\tif(dividable(($c-1)*$k - $n)) return $c-1;\n\t\tif(dividable(($c-1)*$k)) return $c-1;\n\t}\n\treturn \"undefined\";\n}\n$read = read();\n\nlist($k, $n) = explode(\" \", $read);\nput(calculate_min($k, $n));\n?>"}, {"source_code": "1) return true;\n\treturn false;\n}\nfunction calculate_min($k, $n){\n\t$allow = true;\n\t$c = 1;\n\t$num = $k-$n;\n\tif(dividable($num)) return $c;\n\tfor($i=0;$i<=10; $i++){\n\t\t$c++;\n\t\tif(dividable(($c-1)*$k)) return $c-1;\n\t\tif(dividable(($c-1)*$k - $n)) return $c-1;\n\t}\n\treturn \"undefined\";\n}\n$read = read();\n\nlist($k, $n) = explode(\" \", $read);\nput(calculate_min($k, $n));\n?>"}, {"source_code": "1) return true;\n\treturn false;\n}\nfunction calculate_min($k, $n){\n\t$allow = true;\n\t$c = 1;\n\t$num = $k-$n;\n\tif(dividable($num)) return $c;\n\tfor($i=0;$i<=10; $i++){\n\t\t$c++;\n\t\tif(dividable(($c-1)*$k - $n)) return $c-1;\n\t\tif(dividable(($c-1)*$k)) return $c-1;\n\t}\n\treturn \"undefined\";\n}\n$read = read();\n\nlist($k, $n) = explode(\" \", $read);\nput(calculate_min($k, $n));\n?>"}, {"source_code": ""}, {"source_code": ""}], "src_uid": "18cd1cd809df4744bb7bcd7cad94e2d3"} {"source_code": "= 0 && $id2 < $n)\n {\n if($t[$id] == $t[$id2] && $t[$id] != '0')\n {\n $ans ++;\n if($id != $id2)\n $ans ++;\n }\n $id --;\n $id2 ++;\n }\n while($id >= 0) \n {\n $ans += $t[$id] == '1';\n $id --;\n }\n while($id2 < $n) \n {\n $ans += $t[$id2] == '1';\n $id2 ++;\n }\n echo $ans;\n?>\n", "positive_code": [{"source_code": "= 1; $x--)\n{\n if($x == $b)\n {\n break;\n }\n else\n {\n $e++;\n }\n}\nif($d < $e)\n{\n $f = $e - $d;\n $b += $f;\n for($x = 1; $x <= $f; $x++)\n {\n array_unshift($c, 2);\n }\n}\nelseif($d > $e)\n{\n $f = $d - $e;\n for($x = 1; $x <= $f; $x++)\n {\n array_push($c, 2);\n }\n}\n$g = 0;\n$h = $b - 2;\n$i = $b;\nfor($x = $b - 1; $x >= 0; $x--)\n{\n if($x == ($b - 1))\n {\n if($c[$x] == 1)\n {\n $g++;\n }\n }\n else\n {\n if(($c[$h] == 1) && ($c[$i] == 1))\n {\n $g += 2;\n }\n elseif(($c[$h] == 1) && ($c[$i] == 2))\n {\n $g++;\n }\n elseif(($c[$h] == 2) && ($c[$i] == 1))\n {\n $g++;\n }\n $h--;\n $i++;\n }\n}\nprint $g;\n?>"}, {"source_code": "($cities_cnt/2)){\nfor ($i=0;$i<($limak_city);$i++){\n\t\n\t$r = abs($limak_city-$i);\n\t//echo $r;\n\tif(($cities_cnt-($limak_city+$r)<=0)||(($limak_city-$r)<0)){\n\t // echo \"!\".$crims[$limak_city-$r].\"!\\n\";\n\t\tif(((int)$crims[$limak_city+$r])>0||((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=1;\n\t\t}\n\t}else{\n\t // echo \"+\".($limak_city+$r);\n\t\tif(((int)$crims[$limak_city+$r])>0&&((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=2;\n\t\t}\n\t\t\n\t\t\n\t}\n\t//echo $catched.\" \";\n}\n}else{\n\tfor ($i=$cities_cnt;$i>($limak_city);$i--){\n\n\t$r = abs($limak_city-$i);\n//\techo $r;\n\tif(($cities_cnt-($limak_city+$r)<=0)||(($limak_city-$r)<0)){\n\t\tif(((int)$crims[$limak_city+$r])>0||((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=1;\n\t\t\t\n\t\t}\n\t}else{\n\t\tif(((int)$crims[$limak_city+$r])>0&&((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=2;\n\t\t}\n\t\t\n\t\t\n\t}\n//\techo $catched.\" \";\n}\n\t\n}\nif($crims[$limak_city]>0){\n\t$catched+=1;\n}\necho $catched;\n\n"}], "negative_code": [{"source_code": "($cities_cnt/2)){\nfor ($i=0;$i<($limak_city);$i++){\n\t\n\t$r = abs($limak_city-$i);\n\tif(($cities_cnt-($limak_city+$r)<0)||($cities_cnt>=($limak_city+$r))){\n\t\tif(((int)$crims[$limak_city+$r])>0||((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=1;\n\t\t}\n\t}else{\n\t\tif(((int)$crims[$limak_city+$r])>0&&((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=2;\n\t\t}\n\t\t\n\t\t\n\t}\n}\n}else{\n\tfor ($i=$cities_cnt;$i>($limak_city);$i--){\n\t\n\t$r = abs($limak_city-$i);\n\tif(($cities_cnt-($limak_city+$r)<0)||($cities_cnt>=($limak_city+$r))){\n\t\tif(((int)$crims[$limak_city+$r])>0||((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=1;\n\t\t}\n\t}else{\n\t\tif(((int)$crims[$limak_city+$r])>0&&((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=2;\n\t\t}\n\t\t\n\t\t\n\t}\n}\n\t\n}\nif($crims[$limak_city]>0){\n\t$catched+=1;\n}\necho $catched;\n\n"}, {"source_code": "($cities_cnt/2)){\nfor ($i=0;$i<($limak_city);$i++){\n\t\n\t$r = abs($limak_city-$i);\n\tif(($cities_cnt-($limak_city+$r)<0)||($cities_cnt>=($limak_city+$r))){\n\t\tif(((int)$crims[$limak_city+$r])>0||((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=1;\n\t\t}\n\t}elseif($cities_cnt-($r+$r)>=0){\n\t\tif(((int)$crims[$limak_city+$r])>0&&((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=2;\n\t\t}\n\t\t\n\t\t\n\t}\n}\n}else{\n\tfor ($i=$cities_cnt;$i>($limak_city);$i--){\n\t\n\t$r = abs($limak_city-$i);\n\tif(($cities_cnt-($limak_city+$r)<0)||($cities_cnt>=($limak_city+$r))){\n\t\tif(((int)$crims[$limak_city+$r])>0||((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=1;\n\t\t}\n\t}else{\n\t\tif(((int)$crims[$limak_city+$r])>0&&((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=2;\n\t\t}\n\t\t\n\t\t\n\t}\n}\n\t\n}\nif($crims[$limak_city]>0){\n\t$catched+=1;\n}\necho $catched;\n\n"}, {"source_code": "($cities_cnt/2)){\nfor ($i=0;$i<($limak_city);$i++){\n\t\n\t$r = abs($limak_city-$i);\n\tif(($cities_cnt-($limak_city+$r)<0)||($cities_cnt>($limak_city+$r))){\n\t\tif(((int)$crims[$limak_city+$r])>0||((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=1;\n\t\t}\n\t}elseif($cities_cnt-($r+$r)>=0){\n\t\tif(((int)$crims[$limak_city+$r])>0&&((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=2;\n\t\t}\n\t\t\n\t\t\n\t}\n}\n}else{\n\tfor ($i=$cities_cnt;$i>($limak_city);$i--){\n\t\n\t$r = abs($limak_city-$i);\n\tif(($cities_cnt-($limak_city+$r)<0)||($cities_cnt>($limak_city+$r))){\n\t\tif(((int)$crims[$limak_city+$r])>0||((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=1;\n\t\t}\n\t}else{\n\t\tif(((int)$crims[$limak_city+$r])>0&&((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=2;\n\t\t}\n\t\t\n\t\t\n\t}\n}\n\t\n}\nif($crims[$limak_city]>0){\n\t$catched+=1;\n}\necho $catched;\n\n"}, {"source_code": "($cities_cnt/2)){\nfor ($i=0;$i<($limak_city);$i++){\n\t\n\t$r = abs($limak_city-$i);\n\tif(($cities_cnt-($limak_city+$r)<=0)||($cities_cnt>=($limak_city+$r))){\n\t\tif(((int)$crims[$limak_city+$r])>0||((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=1;\n\t\t}\n\t}else{\n\t\tif(((int)$crims[$limak_city+$r])>0&&((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=2;\n\t\t}\n\t\t\n\t\t\n\t}\n}\n}else{\n\tfor ($i=$cities_cnt;$i>($limak_city);$i--){\n\t\n\t$r = abs($limak_city-$i);\n\tif(($cities_cnt-($limak_city+$r)<=0)||($cities_cnt>=($limak_city+$r))){\n\t\tif(((int)$crims[$limak_city+$r])>0||((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=1;\n\t\t}\n\t}else{\n\t\tif(((int)$crims[$limak_city+$r])>0&&((int)$crims[$limak_city-$r])>0){\n\t\t\t$catched+=2;\n\t\t}\n\t\t\n\t\t\n\t}\n}\n\t\n}\nif($crims[$limak_city]>0){\n\t$catched+=1;\n}\necho $catched;\n\n"}], "src_uid": "4840d571d4ce6e1096bb678b6c100ae5"} {"source_code": " 0){$line = str_replace($del,'',$line);$dataex[] = $line;$text = explode(\" \",$line);\nforeach($text as $txt){$arr_txt[] = $txt;$this->linex[$id] = $il;$this->liney[$il] = $id;$id++;}}$il++;}$this->arr_line = $dataex;$this->arr_txt = $arr_txt;}\nfunction G(){$ret = $this->arr_txt[$this->ntxt++];$this->nline = $this->linex[$this->ntxt];return $ret;}\nfunction GL(){$this->ntxt = $this->liney[$this->nline]+1;return $this->arr_line[$this->nline++];}} /*init*/ $dxs = new stdIn(false);\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n///////////////////////////////////// DECLARE FUNCTIONS ///////////////////////////////////////\n$s = $dxs->G();\n/////////////////////////////////// MAIN CODE /////////////////////////////////////////////////\n$now = -1;\n$yes = true;\nfor($i = ord(\"a\"); $i <= ord(\"z\"); $i++) {\n $ret = strpos($s, chr($i));\n $lat = $now;\n if($ret === false) {\n $now = 100000;\n }\n else {\n $now = $ret;\n }\n if($now < $lat) {\n $yes = false;\n }\n}\nif($yes) {\n echo \"YES\";\n}\nelse{\n echo \"NO\";\n}\n/////////////////////////////////////////////////////////////////////////////////////////////////\n?>", "positive_code": [{"source_code": ""}, {"source_code": "#!/usr/bin/php\n 0){$line = str_replace($del,'',$line);$dataex[] = $line;$text = explode(\" \",$line);\nforeach($text as $txt){$arr_txt[] = $txt;$this->linex[$id] = $il;$this->liney[$il] = $id;$id++;}}$il++;}$this->arr_line = $dataex;$this->arr_txt = $arr_txt;}\nfunction G(){$ret = $this->arr_txt[$this->ntxt++];$this->nline = $this->linex[$this->ntxt];return $ret;}\nfunction GL(){$this->ntxt = $this->liney[$this->nline]+1;return $this->arr_line[$this->nline++];}} /*init*/ $dxs = new stdIn(false);\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n///////////////////////////////////// DECLARE FUNCTIONS ///////////////////////////////////////\n$s = $dxs->G();\n/////////////////////////////////// MAIN CODE /////////////////////////////////////////////////\n$now = -1;\n$yes = true;\nfor($i = ord(\"a\"); $i <= ord(\"z\"); $i++) {\n $ret = strpos($s, chr($i));\n $lat = $now;\n if($ret === false) {\n $now = 100000;\n }\n else {\n $now = $ret;\n }\n if($now < $lat) {\n $yes = false;\n }\n}\nif($yes) {\n echo \"YES\";\n}\nelse{\n echo \"NO\";\n}\n/////////////////////////////////////////////////////////////////////////////////////////////////\n?>"}, {"source_code": ""}, {"source_code": "=0; $i--)\n {\n $flag = false;\n if($arr[$i]!='a')\n {\n for($j=$i-1; $j>=0; $j--)\n {\n $buffer = $arr[$j];\n ++$buffer;\n \n if( $arr[$i] == $buffer)\n {\n $flag = true;\n break;\n }\n }\n if(!$flag)\n {\n $ans = 'no';\n break;\n }\n }\n }\n \n echo ($ans == 'no') ? \"NO\\n\" : \"YES\\n\";\n?>\n"}], "negative_code": [{"source_code": " $d[$x + 1])\n {\n $e = 1;\n break;\n }\n}\nif($e == 0)\n{\n print \"YES\";\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": "#!/usr/bin/php\n"}], "src_uid": "c4551f66a781b174f95865fa254ca972"} {"source_code": " $k) {\n break;\n }\n $powers = [$i+2, $powCount, $digitCount];\n }\n\n [$size, $powCount, $digitCount] = $powers;\n $shift = floor(($k - $digitCount) / $size);\n $shift_x = ceil(($k - $digitCount) / $size);\n $key = sprintf('%.0f', $k - $digitCount - ($shift * $size + 1));\n echo (sprintf('%.0f', $powCount + $shift_x))[$key];\n}\n", "positive_code": [{"source_code": ""}, {"source_code": " $k) {\n break;\n }\n $powers = [$i+2, $powCount, $digitCount];\n }\n\n [$size, $powCount, $digitCount] = $powers;\n $shift = (int)floor(($k - $digitCount) / $size);\n $shift_x = (int)ceil(($k - $digitCount) / $size);\n echo (sprintf('%.0f', $powCount + $shift_x))[$k - $digitCount - ($shift * $size + 1)];\n}\n"}, {"source_code": " $k) {\n break;\n }\n $powers = [$i+2, $powCount, $digitCount];\n }\n\n [$size, $powCount, $digitCount] = $powers;\n $shift = (int)floor(($k - $digitCount) / $size);\n $shift_x = (int)ceil(($k - $digitCount) / $size);\n echo ((string)($powCount + $shift_x))[$k - $digitCount - ($shift * $size + 1)];\n}\n"}, {"source_code": " $k) {\n break;\n }\n $powers = [$i+2, $powCount, $digitCount];\n}\n\n[$size, $powCount, $digitCount] = $powers;\n$shift = (int)floor(($k - $digitCount) / $size);\n$shift_x = (int)ceil(($k - $digitCount) / $size);\necho ((string)($powCount + $shift_x))[$k - $digitCount - ($shift * $size + 1)];\n"}], "src_uid": "1503d761dd4e129fb7c423da390544ff"} {"source_code": "';\n\n if (is_array($data)) {\n print_r($data);\n } else {\n var_dump($data);\n }\n\n if ($die) {\n die();\n }\n\n echo '';\n}\n\n$stdin = @fopen('data.txt', 'r');\nif (!$stdin) {\n $stdin = fopen('php://stdin', 'r');\n}\n\nfunction g() {\n global $stdin;\n return trim(fgets($stdin));\n}\n\n/****************************************************** Solving block *****************************************************/\nlist($a, $b) = explode(' ', g());\n$max = $a > $b ? $a : $b;\n$max--;\n$points = 6 - $max;\n\nswitch($points) {\n case 0: echo '0/1'; break;\n case 1: echo '1/6'; break;\n case 2: echo '1/3'; break;\n case 3: echo '1/2'; break;\n case 4: echo '2/3'; break;\n case 5: echo '5/6'; break;\n case 6: echo '1/1'; break;\n}\n\n?>", "positive_code": [{"source_code": " '',\n\t\t\"\\n\" => '',\n\t);\n\treturn strtr(fgets($f), $r);\n}\n\nfunction readNumString($f) {\n\treturn trim(fgets($f));\n}\n\nfunction stringToArray($str) {\n\treturn str_split($str);\n}\n\nfunction readNum($f, $is_int = false) {\n\t$v = readNumString($f);\n\treturn $is_int ? intval($v) : floatval($v);\n}\n\nfunction readStringExplode($f, $delimiter = ' ') {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = 'trim';\n\treturn array_map($callf, $return);\n}\n\nfunction readStringExplodeNum($f, $delimiter = ' ', $is_int = false) {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = $is_int ? 'intval' : 'floatval';\n\treturn array_map($callf, $return);\n}\n\n###### /IO ######\n\nfunction nod($a, $b) {\n\twhile ($a <> 0 && $b <> 0) {\n\t\tif ($a > $b)\n\t\t\t$a = $a % $b;\n\t\telse\n\t\t\t$b = $b % $a;\n\t\t$nod = $a + $b;\n\t}\n\treturn $nod;\n}\n\nfunction getAnswer($is_test = false, $f = false) {\n\tif ($is_test === false) {\n\t\t$f = STDIN;\n\t}\n\t/* begin body */\n\tlist($n1, $n2) = readStringExplodeNum($f, ' ', true);\n\n\t$goodCnt = 6 - max($n1, $n2) + 1;\n\t$nod = nod($goodCnt, 6);\n\t$base = 6;\n\t$goodCnt/=$nod;\n\t$base/=$nod;\n\n\techo \"{$goodCnt}/{$base}\";\n\t/* / end body */\n}\n\nif (empty($is_test))\n\tgetAnswer();"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n\n\n"}, {"source_code": "\n\n\n"}, {"source_code": "\n\n\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": " $b)return $a;\n else return $b;\n}\t\n\nfunction gcd($a,$b) {\n\tif ($b == 0)\n\t\treturn $a;\n\treturn gcd($b, $a % $b);\n}\n$r=6-fmax($y,$w)+1;\n$g=gcd($r,6);\n$a1=$r/$g;\n$a2=6/$g;\necho(${a1}.\"/\".${a2});\n?>"}, {"source_code": " $w) $m = $y; else $m = $w;\nswitch($m){\n case 1: print '1/1'; break;\n case 2: print '5/6'; break;\n case 3: print '2/3'; break;\n case 4: print '1/2'; break;\n case 5: print '1/3'; break;\n case 6: print '1/6'; break;\n}\n?>"}, {"source_code": ""}, {"source_code": "\n\n\n"}, {"source_code": "1) {$j=7-$j; \nif(($j%2)==0) { print (($j/2).\"/\".\"3\");};\nif(($j%3)==0) { print (($j/3).\"/\".\"2\");};}\n?>"}], "negative_code": [{"source_code": "$b)?($c=$a):($c=$b);\nif($c==6) {print (\"1/\".$c); }\nelseif($c==1) {print ($c.\"/1\"); };\n$s=6-($c-1);\nif (($s%2==0)and($s!=6)and($s!=1)) { print(($s/2).\"/\".(6/2));}\nelseif(($s%3==0)and($s!=6)and($s!=1)) {print (($s/3).\"/\".(6/3));}\nelseif(($s!=6)and($s!=1)) {print(($s).\"/6\");}\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": "\n"}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n\n\n"}], "src_uid": "f97eb4ecffb6cbc8679f0c621fd59414"} {"source_code": " 0) {\n $tempVars ++;\n if ($vars > 0) {\n $vars = $vars * $tempVars;\n } else {\n $vars = $tempVars;\n }\n $tempVars = 0;\n } else {\n \n }\n }\n \n}\nif ($vars == 0) {\n echo '1';\n} else {\n echo number_format($vars, 0, '', '');\n}\n\n?>"}, {"source_code": ""}, {"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": " 0) {\n $vars ++;\n }\n $tempVars = 0;\n $countMode = false;\n if ($nuts[$i+1] == '0') {\n $countMode = true;\n }\n }\n}\nif ($vars == 0) {\n echo '1';\n} else {\n echo $vars;\n}\n\n?>"}, {"source_code": " 0) {\n $tempVars ++;\n if ($vars > 0) {\n $vars = $vars * $tempVars;\n } else {\n $vars = $tempVars;\n }\n $tempVars = 0;\n } else {\n \n }\n }\n \n}\nif ($vars == 0) {\n echo '1';\n} else {\n echo number_format($vars, 0, '', '');\n}\n\n?>"}, {"source_code": " 0) {\n $tempVars ++;\n if ($vars > 0) {\n $vars = $vars * $tempVars;\n } else {\n $vars = $tempVars;\n }\n $tempVars = 0;\n } else {\n \n }\n }\n \n}\nif ($vars == 0) {\n echo '1';\n} else {\n echo $vars;\n}\n\n?>"}, {"source_code": " 0) {\n $vars ++;\n }\n $tempVars = 0;\n $countMode = false;\n if ($nuts[$i+1] == '0') {\n $countMode = true;\n }\n }\n}\n\necho $vars;\n\n?>"}, {"source_code": ""}, {"source_code": " 0) {\n $vars = $vars + $tempVars;\n $vars ++;\n $countMode = false;\n }\n $tempVars = 0;\n \n if ($nuts[$i+1] == '0') {\n $countMode = true;\n }\n }\n /*\n if ($i == ($length - 1)) {\n if ($tempVars > 0) {\n $vars ++;\n }\n }\n */\n}\nif ($vars == 0) {\n echo '1';\n} else {\n echo $vars;\n}\n\n?>"}, {"source_code": " 0) {\n $tempVars ++;\n if ($vars > 0) {\n $vars = $vars * $tempVars;\n } else {\n $vars = $tempVars;\n }\n $tempVars = 0;\n } else {\n \n }\n }\n \n}\nif ($vars == 0) {\n echo '1';\n} else {\n echo number_format($vars, 0, '', '');\n}\n\n?>"}, {"source_code": " 0)) {\n $vars++;\n }\n $tempVars = 0;\n }\n}\n\necho $vars;\n\n?>"}, {"source_code": " 0) {\n $vars ++;\n }\n $tempVars = 0;\n $countMode = false;\n if ($nuts[$i+1] == '0') {\n $countMode = true;\n }\n }\n}\nif ($vars == 0) {\n echo '1';\n} else {\n echo $vars;\n}\n\n?>"}], "src_uid": "58242665476f1c4fa723848ff0ecda98"} {"source_code": "", "positive_code": [{"source_code": ""}], "negative_code": [], "src_uid": "d6929926b44c2d5b1a8e6b7f965ca1bb"} {"source_code": "':\n\t\t\t\treturn \"8\";\n\t\t\tcase '<':\n\t\t\t\treturn \"9\";\n\t\t\tcase '+':\n\t\t\t\treturn \"10\";\n\t\t\tcase '-':\n\t\t\t\treturn \"11\";\n\t\t\tcase '.':\n\t\t\t\treturn \"12\";\n\t\t\tcase ',':\n\t\t\t\treturn \"13\";\n\t\t\tcase '[':\n\t\t\t\treturn \"14\";\n\t\t\tcase ']':\n\t\t\t\treturn \"15\";\n\t\t}\n\t}\n\tfunction check($c)\n\t{\n\t\treturn $c == '>' || $c == '<' || $c == '+' || $c == '-' || $c == '.' || $c == ',' || $c == '[' || $c == ']';\n\t}\n\t$stdin = fopen(\"php://stdin\", \"r\");\n\t$str = fgets($stdin);\n\t$len = strlen($str);\n\t$num = \"0\";\n\tfor($i = 0; $i < $len; $i++)\n\t{\n\t\tif(check($str[$i]))\n\t\t{\n\t\t\t$num = bcmul($num, \"16\");\n\t\t\t$num = bcadd($num, gao($str[$i]));\n\t\t}\n\t}\n\techo (bcmod($num, \"1000003\")).\"\\n\";\n?>\n", "positive_code": [{"source_code": "\", \"<\", \"+\", \"-\", \".\", \",\", \"[\", \"]\");\narray_unshift($b, \" \");\nunset($b[0]);\n$c = array(\"1000\", \"1001\", \"1010\", \"1011\", \"1100\", \"1101\", \"1110\", \"1111\");\narray_unshift($c, \" \");\nunset($c[0]);\n$d = \"\";\n$f = \"\";\nfor($x = 0; $x < count($a); $x++)\n{\n $e = array_search($a[$x], $b);\n $d .= $c[$e];\n}\n$e = str_split($d);\n$g = count($e) - 1;\nfor($x = 0; $x < count($e); $x++)\n{\n if($e[$x] == \"1\")\n {\n $f = bcadd(bcpow(2, $g), $f);\n }\n $g--;\n}\nprint bcmod($f, \"1000003\");\n?>"}, {"source_code": "'=>'1000',\n '<'=>'1001',\n '+'=>'1010',\n '-'=>'1011',\n '.'=>'1100',\n ','=>'1101',\n '['=>'1110',\n ']'=>'1111'\n);\n$key = array_keys($s);\n$val = array_values($s);\n$res = str_replace($key, $val, $in);\necho( bcmod(BCBin2Dec($res), (bcadd(bcpow(10,6),3))));\n"}, {"source_code": "\"]=\"1000\";\n$a[\"<\"]=\"1001\";\n$a[\"+\"]=\"1010\";\n$a[\"-\"]=\"1011\";\n$a[\".\"]=\"1100\";\n$a[\",\"]=\"1101\";\n$a[\"[\"]=\"1110\";\n$a[\"]\"]=\"1111\";\n$s=\"\";\n$k=\"0\";\nfor ($i=0;$i"}], "negative_code": [{"source_code": "\", \"<\", \"+\", \"-\", \".\", \",\", \"[\", \"]\");\narray_unshift($b, \" \");\nunset($b[0]);\n$c = array(\"1000\", \"1001\", \"1010\", \"1011\", \"1100\", \"1101\", \"1110\", \"1111\");\narray_unshift($c, \" \");\nunset($c[0]);\n$d = \"\";\n$f = \"\";\nfor($x = 0; $x < count($a); $x++)\n{\n $e = array_search($a[$x], $b);\n $d .= $c[$e];\n}\n$e = str_split($d);\n$g = count($e) - 1;\nfor($x = 0; $x < count($e); $x++)\n{\n if($e[$x] == \"1\")\n {\n $f += pow(2, $g);\n }\n $g--;\n}\nprint bcmod($f, \"1000003\");\n?>"}, {"source_code": "'=>'1000',\n '<'=>'1001',\n '+'=>'1010',\n '-'=>'1011',\n '.'=>'1100',\n ','=>'1101',\n '['=>'1110',\n ']'=>'1111'\n);\n$key = array_keys($s);\n$val = array_values($s);\n$res = str_replace($key, $val, $in);\necho( bcmod(bindec($res), (bcadd(bcpow(10,6),3))));"}, {"source_code": "':\n\t\t\t\treturn \"8\";\n\t\t\tcase '<':\n\t\t\t\treturn \"9\";\n\t\t\tcase '+':\n\t\t\t\treturn \"10\";\n\t\t\tcase '-':\n\t\t\t\treturn \"11\";\n\t\t\tcase '.':\n\t\t\t\treturn \"12\";\n\t\t\tcase ',':\n\t\t\t\treturn \"13\";\n\t\t\tcase '[':\n\t\t\t\treturn \"14\";\n\t\t\tcase ']':\n\t\t\t\treturn \"15\";\n\t\t}\n\t}\n\t$stdin = fopen(\"php://stdin\", \"r\");\n\t$str = fgets($stdin);\n\t$len = strlen($str);\n\t$num = \"0\";\n\tfor($i = 0; $i < $len-1; $i++)\n\t{\n\t\t$num = bcmul($num, \"16\");\n\t\t$num = bcadd($num, gao($str[$i]));\n\t}\n\techo (bcmod($num, \"1000003\")).\"\\n\";\n?>\n"}], "src_uid": "04fc8dfb856056f35d296402ad1b2da1"} {"source_code": " $g)\n{\n $c++;\n}\nelseif($f < $g)\n{\n $d++;\n}\nelse\n{\n $e++;\n}\n$f = abs(5 - $a);\n$g = abs(5 - $b);\nif($f > $g)\n{\n $c++;\n}\nelseif($f < $g)\n{\n $d++;\n}\nelse\n{\n $e++;\n}\n$f = abs(4 - $a);\n$g = abs(4 - $b);\nif($f > $g)\n{\n $c++;\n}\nelseif($f < $g)\n{\n $d++;\n}\nelse\n{\n $e++;\n}\n$f = abs(3 - $a);\n$g = abs(3 - $b);\nif($f > $g)\n{\n $c++;\n}\nelseif($f < $g)\n{\n $d++;\n}\nelse\n{\n $e++;\n}\n$f = abs(2 - $a);\n$g = abs(2 - $b);\nif($f > $g)\n{\n $c++;\n}\nelseif($f < $g)\n{\n $d++;\n}\nelse\n{\n $e++;\n}\n$f = abs(1 - $a);\n$g = abs(1 - $b);\nif($f > $g)\n{\n $c++;\n}\nelseif($f < $g)\n{\n $d++;\n}\nelse\n{\n $e++;\n}\nprint $d . \" \" . $e . \" \" . $c;\n?>", "positive_code": [{"source_code": " abs ($B - $i)) {\n $Z = $Z + 1;\n }\n}\nprintf (\"%d %d %d\\n\", $X, $Y, $Z);\n?>"}, {"source_code": " abs( $b - $i ) ) {\n $z = $z + 1;\n }\n }\n printf ( \"%d %d %d\\n\", $x, $y, $z );\n?>"}, {"source_code": " abs($a_b[1] - $i )){\n $b_win++;\n \n }\n else{\n $draw++;\n }\n \n \n \n }\n \n print $a_win . \" \" . $draw . \" \" .$b_win ;\n\n?>"}, {"source_code": " abs($b - $j)) {\n\t\t$result[2]++;\n\t}\n\telseif (abs($a - $j) == abs($b - $j)) {\n\t\t$result[1]++;\n\t}\n\n}\n\nprint implode(' ', $result);\n"}, {"source_code": " $diffb) {\n $wins ++;\n } else {\n $draw ++;\n }\n}\n\nprint $winf . ' ' . $draw . ' ' . $wins;\n\nfunction getline() {\n return trim(fgets(STDIN));\n}\n"}, {"source_code": " abs($b - $i)) {\n $bwins++;\n } else {\n $tie++;\n }\n}\n\necho $awins.\" \".$tie.\" \".$bwins;\n?>"}], "negative_code": [{"source_code": " abs($b - $x)) {\n $bwins++;\n } else {\n $tie++;\n }\n}\n\necho $awins.\" \".$tie.\" \".$bwins;\n?>"}], "src_uid": "504b8aae3a3abedf873a3b8b127c5dd8"} {"source_code": "= (ceil($m_boy_finger/2)-1) && $v_girl_finger <= ($m_boy_finger + 1) ) {\n\t\techo \"YES\";\n\t\texit(0);\n\t}\n}\n\necho \"NO\";\nexit(0);\n", "positive_code": [{"source_code": "= $e - 2) && ($d <= $f))\n {\n print \"YES\";\n }\n else\n {\n $g = $b;\n $g++;\n $h = $g * 2;\n if(($c >= $g - 2) && ($c <= $h))\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n }\n}\n?>"}, {"source_code": "=$g[0]-1) || ($b[0]<=$p2 && $b[0]>=$g[1]-1)) echo \"YES\";\nelse echo \"NO\"; \n?>"}, {"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": " 1)\n{\n if($d <= $f)\n {\n print \"YES\";\n }\n else\n {\n if($b > 1)\n {\n if($c <= $h)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n }\n }\n}\nelse\n{\n if($b > 1)\n {\n if($c <= $h)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n }\n else\n {\n print \"NO\";\n }\n}\n?>"}, {"source_code": " $m_boy_finger - 2 && $v_girl_finger <= $m_boy_finger + 1) \n\t && ($m_boy_finger < $v_girl_finger + 1 && $m_boy_finger >= $v_girl_finger - 1 ) ) {\n\t\techo \"YES\";\n\t\texit(0);\n\t}\n}\n\necho \"NO\";\nexit(0);\n"}, {"source_code": " $m_boy_finger - 2 && $v_girl_finger <= $m_boy_finger + 1) \n\t && ($m_boy_finger < $v_girl_finger + 1 && $m_boy_finger >= $v_girl_finger - 1 ) ) {\n\t\techo \"YES\";\n\t\texit(0);\n\t}\n}\n\necho \"NO\";\nexit(0);\n"}, {"source_code": "= $m_boy_finger - 2 && $v_girl_finger <= $m_boy_finger + 1) \n\t && ($m_boy_finger <= $v_girl_finger + 1 && $m_boy_finger >= $v_girl_finger - 1 ) ) {\n\t\techo \"YES\";\n\t\texit(0);\n\t}\n}\n\necho \"NO\";\nexit(0);\n"}, {"source_code": " $m_boy_finger - 2 && $v_girl_finger <= $m_boy_finger + 1) \n\t && ($m_boy_finger < $v_girl_finger + 1 && $m_boy_finger >= $v_girl_finger - 1 ) ) {\n\t\techo \"YES\";\n\t\texit(0);\n\t}\n}\n\necho \"NO\";\nexit(0);\n"}, {"source_code": "= (ceil($m_boy_finger/2)-1) && $v_girl_finger <= ($m_boy_finger + 2) ) {\n\t\techo \"YES\";\n\t\texit(0);\n\t}\n}\n\necho \"NO\";\nexit(0);\n"}, {"source_code": "$p1 || $b[1]<$g[0]-1 || $b[0]>$p2 && $b[0]<$g[1]-1) echo \"NO\";\nelse echo \"YES\"; \n?>"}, {"source_code": "$p1 || $b[1]<$g[0]-1 || $b[0]>$p2 || $b[0]<$g[1]-1) echo \"NO\";\nelse echo \"YES\"; \n?>"}, {"source_code": "=$g[0]-1) || ($b[0]<$p2 && $b[0]>=$g[1]-1)) echo \"YES\";\nelse echo \"NO\"; \n?>"}, {"source_code": "$g[0]-1) || ($b[0]<$p2 && $b[0]>$g[1]-1)) echo \"YES\";\nelse echo \"NO\"; \n?>"}, {"source_code": ""}], "src_uid": "36b7478e162be6e985613b2dad0974dd"} {"source_code": " 0 && !($sum % 5) ? $sum / 5 : '-1';\n", "positive_code": [{"source_code": ""}, {"source_code": " 0 && $s % 5 == 0)\n {\n fprintf(STDOUT, \"%d\\n\", $s / 5);\n }\n else {\n fprintf(STDOUT, \"-1\\n\");\n }\n?>"}, {"source_code": "0){\n\t\techo $sum/5;\n\t}\n\telse{\n\t\techo \"-1\";\n\t}\n?>"}, {"source_code": ""}, {"source_code": " $value) {\n $sum += (int) $value;\n}\n\nif ((($sum % 5) !== 0) or ($sum == 0)) {\n echo -1;\n} else {\n echo $sum / 5;\n}\n\n?>"}, {"source_code": " 0){\n echo $sum / 5;\n}else{\n echo -1;\n}"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "0){\necho $initial;\n}else {\necho \"-1\";\n}\n?>"}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "0){\n\t\techo \"$sum/5\";\n\t}\n\telse{\n\t\techo \"-1\";\n\t}\n?>"}, {"source_code": ""}, {"source_code": " $value) {\n $sum += (int) $value;\n}\n\nif (($sum % 5) == 0) {\n echo $sum / 5;\n} else {\n echo -1;\n}\n\n?>"}, {"source_code": "", "positive_code": [{"source_code": ""}, {"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "src_uid": "d6c876a84c7b92141710be5d76536eab"} {"source_code": "=$k) {\n\n\tif($min >= $k) {\n\n\t\techo $sum;\n\t\tdie();\n\n\n\t}\n\n}\n\nelse if(($resto1==0) && ($max>=$k)) { \n\techo $sum; die(); }\n\n\t// var_dump($resto1==0,$max>=$k);\n\n\necho \"-1\";\n\n?>", "positive_code": [{"source_code": " 0){$line = str_replace($del,'',$line);$dataex[] = $line;$text = explode(\" \",$line);\nforeach($text as $txt){$arr_txt[] = $txt;$this->linex[$id] = $il;$this->liney[$il] = $id;$id++;}}$il++;}$this->arr_line = $dataex;$this->arr_txt = $arr_txt;}\nfunction G(){$ret = $this->arr_txt[$this->ntxt++];$this->nline = $this->linex[$this->ntxt];return $ret;}\nfunction GL(){$this->ntxt = $this->liney[$this->nline]+1;return $this->arr_line[$this->nline++];}} /*init*/ $dxs = new stdIn(false);\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n///////////////////////////////////// DECLARE FUNCTIONS ///////////////////////////////////////\n$k = $dxs->G();\n$a = $dxs->G();\n$b = $dxs->G();\n/////////////////////////////////// MAIN CODE /////////////////////////////////////////////////\nif ($a < $k and $b < $k) {\n if($a + $b == 0){\n echo 0;\n }\n else{\n echo -1;\n }\n}\nelse if($a < $k and $b % $k != 0){\n echo -1;\n}\nelse if($b < $k and $a % $k != 0){\n echo -1;\n}\nelse{\n echo intdiv($a , $k) + intdiv($b , $k);\n}\n/////////////////////////////////////////////////////////////////////////////////////////////////\n?>"}, {"source_code": " 0){$line = str_replace($del,'',$line);$dataex[] = $line;$text = explode(\" \",$line);\nforeach($text as $txt){$arr_txt[] = $txt;$this->linex[$id] = $il;$this->liney[$il] = $id;$id++;}}$il++;}$this->arr_line = $dataex;$this->arr_txt = $arr_txt;}\nfunction G(){$ret = $this->arr_txt[$this->ntxt++];$this->nline = $this->linex[$this->ntxt];return $ret;}\nfunction GL(){$this->ntxt = $this->liney[$this->nline]+1;return $this->arr_line[$this->nline++];}} /*init*/ $dxs = new stdIn(false);\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n///////////////////////////////////// DECLARE FUNCTIONS ///////////////////////////////////////\n$k = $dxs->G();\n$a = $dxs->G();\n$b = $dxs->G();\n/////////////////////////////////// MAIN CODE /////////////////////////////////////////////////\nif ($a < $k and $b < $k) {\n if($a + $b == 0){\n echo 0;\n }\n else{\n echo -1;\n }\n}\nelse if($a < $k and $b % $k != 0){\n echo -1;\n}\nelse if($b < $k and $a % $k != 0){\n echo -1;\n}\nelse{\n echo intdiv($a , $k) + intdiv($b , $k);\n}\n/////////////////////////////////////////////////////////////////////////////////////////////////\n?>"}, {"source_code": " 0)) || (($d == 0) && ($g > 0)))\n{\n print \"-1\";\n}\nelseif(($h >= $g) || ($i >= $f))\n{\n print $d + $e;\n}\nelse\n{\n print \"-1\";\n}\n?>"}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": "= $g) || ($i >= $f))\n{\n print $d + $e;\n}\nelse\n{\n print \"-1\";\n}\n?>"}, {"source_code": " 0){$line = str_replace($del,'',$line);$dataex[] = $line;$text = explode(\" \",$line);\nforeach($text as $txt){$arr_txt[] = $txt;$this->linex[$id] = $il;$this->liney[$il] = $id;$id++;}}$il++;}$this->arr_line = $dataex;$this->arr_txt = $arr_txt;}\nfunction G(){$ret = $this->arr_txt[$this->ntxt++];$this->nline = $this->linex[$this->ntxt];return $ret;}\nfunction GL(){$this->ntxt = $this->liney[$this->nline]+1;return $this->arr_line[$this->nline++];}} /*init*/ $dxs = new stdIn(false);\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n///////////////////////////////////// DECLARE FUNCTIONS ///////////////////////////////////////\n$k = $dxs->G();\n$a = $dxs->G();\n$b = $dxs->G();\n/////////////////////////////////// MAIN CODE /////////////////////////////////////////////////\nif ($a < $k and $b < $k) {\n echo -1;\n}\nelse if($a < $k and $b % $k != 0){\n echo -1;\n}\nelse if($b < $k and $a % $k != 0){\n echo -1;\n}\nelse{\n echo intdiv($a , $k) + intdiv($b / $k);\n}\n/////////////////////////////////////////////////////////////////////////////////////////////////\n?>"}, {"source_code": " 0){$line = str_replace($del,'',$line);$dataex[] = $line;$text = explode(\" \",$line);\nforeach($text as $txt){$arr_txt[] = $txt;$this->linex[$id] = $il;$this->liney[$il] = $id;$id++;}}$il++;}$this->arr_line = $dataex;$this->arr_txt = $arr_txt;}\nfunction G(){$ret = $this->arr_txt[$this->ntxt++];$this->nline = $this->linex[$this->ntxt];return $ret;}\nfunction GL(){$this->ntxt = $this->liney[$this->nline]+1;return $this->arr_line[$this->nline++];}} /*init*/ $dxs = new stdIn(false);\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n///////////////////////////////////// DECLARE FUNCTIONS ///////////////////////////////////////\n$k = $dxs->G();\n$a = $dxs->G();\n$b = $dxs->G();\n/////////////////////////////////// MAIN CODE /////////////////////////////////////////////////\nif ($a < $k and $b < $k) {\n if($a + $b == 0){\n echo 0;\n }\n else{\n echo -1;\n }\n}\nelse if($a < $k and $b % $k != 0){\n echo -1;\n}\nelse if($b < $k and $a % $k != 0){\n echo -1;\n}\nelse{\n echo intdiv($a , $k) + intdiv($b / $k);\n}\n/////////////////////////////////////////////////////////////////////////////////////////////////\n?>"}], "src_uid": "6e3b8193d1ca1a1d449dc7a4ad45b8f2"} {"source_code": "'; print_r($var); echo '';}\n function read_str(){return trim(fgets($GLOBALS['file']));}\n function read_array(){return explode(' ', read_str());}\n /***************************************************************/\n \n $n = read_str();\n \n function find_max($n)\n {\n $max = $n/2;\n $a=1;\n do\n {\n $a++;\n $b = $n/$a; \n if(is_int($b)) break;\n } while ($a<$max);\n if($a>$max) return 1; \n else return max($a,$b);\n }\n \n function calc($n)\n {\n $count = $n;\n do\n { \n $n = find_max($n);\n $count += $n;\n } while($n != 1);\n \n return $count;\n }\n \n echo calc($n);\n?>", "positive_code": [{"source_code": ""}, {"source_code": "'; print_r($var); echo '';}\n function read_str(){return trim(fgets($GLOBALS['file']));}\n function read_array(){return explode(' ', read_str());}\n /***************************************************************/\n \n $n = read_str();\n\n \n/**\n * Checks if $num is a Prime Number\n * @param int $num\n * @return boolean\n */\nfunction isPrime($num) {\n //1 is not prime. See: http://en.wikipedia.org/wiki/Prime_number#Primality_of_one\n if($num == 1)\n return false;\n\n //2 is prime (the only even number that is prime)\n if($num == 2)\n return true;\n\n /**\n * if the number is divisible by two, then it's not prime and it's no longer\n * needed to check other even numbers\n */\n if($num % 2 == 0) {\n return false;\n }\n\n /**\n * Checks the odd numbers. If any of them is a factor, then it returns false.\n * The sqrt can be an aproximation, hence just for the sake of\n * security, one rounds it to the next highest integer value.\n */\n for($i = 3; $i <= ceil(sqrt($num)); $i = $i + 2) {\n if($num % $i == 0)\n return false;\n }\n\n return true;\n}\n\n\n \n function find_max($n)\n {\n if(isPrime($n)) return 1;\n $max = $n/2;\n $a=1;\n do\n {\n $a++;\n $b = $n/$a; \n\n if(is_int($b)) break;\n } while ($a<$max);\n if($a>$max) return 1; \n else return max($a,$b);\n }\n \n function calc($n)\n { \n $count = $n;\n do\n { \n $n = find_max($n);\n \n $count += $n;\n } while($n != 1);\n \n return $count;\n }\n \n echo calc($n);\n?>"}], "negative_code": [], "src_uid": "821c0e3b5fad197a47878bba5e520b6e"} {"source_code": "", "positive_code": [{"source_code": "=$k)\n {\n\techo \"YES\\n\";\n\tfor ($i=0; $i =$k):\n\n foreach ($uniq as $value) {\n $j++;\n for ($i=0;$i<=count($a);$i++){\n if ($a[$i] == $value):\n $l++;\n $out[]=$i+1;\n break;\n endif;\n }\n if ($l==$k) break;\n }\n\n if ($debug):\n print (\"j:\".$j.\"\\r\\n\");\n print (\"l:\".$l.\"\\r\\n\");\n endif;\n print (\"YES\\r\\n\");\n\n print (implode(\" \",$out).\"\\r\\n\");\nelse:\n print(\"NO\");\nendif;\n"}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": "=$k):\n foreach ($uniq as $value) {\n for ($i=0;$i<=$k+1;$i++){\n if ($a[$i] == $value):\n $out[]=$i+1;\n $i=0;\n break;\n endif;\n }\n }\n\n\n print (\"YES\\r\\n\");\n print (implode(\" \",$out));\nelse:\n print(\"NO\");\nendif;\n"}, {"source_code": "=$k):\n\n foreach ($uniq as $value) {\n $j++;\n for ($i=0;$i<=$n;$i++){\n $l++;\n if ($a[$i] == $value):\n $out[]=$i+1;\n break;\n endif;\n }\n }\n\n if ($debug):\n print (\"j:\".$j.\"\\r\\n\");\n print (\"l:\".$l.\"\\r\\n\");\n endif;\n print (\"YES\\r\\n\");\n print (implode(\" \",$out).\"\\r\\n\");\nelse:\n print(\"NO\");\nendif;\n"}, {"source_code": "=$k):\n foreach ($uniq as $value) {\n for ($i=0;$i<=$k;$i++){\n if ($a[$i] == $value):\n $out[]=$i;\n break;\n endif;\n }\n }\n\n\n print (\"YES\\r\\n\");\n print (implode(\" \",$out));\nelse:\n print(\"NO\");\nendif;\n"}, {"source_code": "=$k):\n foreach ($uniq as $value) {\n for ($i=0;$i<=$k+1;$i++){\n if ($a[$i] == $value):\n $out[]=$i+1;\n break;\n endif;\n }\n }\n\n\n print (\"YES\\r\\n\");\n print (implode(\" \",$out));\nelse:\n print(\"NO\");\nendif;\n"}, {"source_code": "$debug=0;\n$b=readline (\"n k:\");\n$a=readline (\"ratings:\");\n$arr1=explode(\" \",$b);\n$a=explode(\" \",$a);\n$n=($arr1[0]);\n$k=($arr1[1]);\n($debug) ? print ($n . \"\\r\\n\"): \"\";\n($debug) ? print ($k . \"\\r\\n\"): \"\";\n($debug) ? print_r ($a): \"\" ;\n$uniq=array_unique($a);\n$out=[];\n\nif (count($uniq)>=$k):\n foreach ($uniq as $value) {\n for ($i=0;$i<=$k;$i++){\n if ($a[$i] == $value):\n $out[]=$i;\n break;\n endif;\n }\n }\n\n\n print (\"YES\\r\\n\");\n print (implode(\" \",$out));\nelse:\n print(\"NO\");\nendif;\n"}, {"source_code": "=$k):\n foreach ($uniq as $value) {\n for ($i=0;$i<=$k;$i++){\n if ($a[$i] == $value):\n $out[]=$i+1;\n break;\n endif;\n }\n }\n\n\n print (\"YES\\r\\n\");\n print (implode(\" \",$out));\nelse:\n print(\"NO\");\nendif;\n"}, {"source_code": "", "positive_code": [{"source_code": " "}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n", "positive_code": [{"source_code": ""}, {"source_code": "\n"}], "src_uid": "2e44c8aabab7ef7b06bbab8719a8d863"} {"source_code": "$len2){\n\t\t\t$str2=$str2.$in2[0];\n\t\t\t$in2=substr($in2, 1);\n\t\t}else{\n\t\t\t$str1=$str1.$in2[0];\n\t\t\t$str2=$str2.$in2[1];\n\t\t\t$in2=substr($in2, 2);\n\t\t}\n\n\t}\n\techo $str1.\"|\".$str2;\n}\n\n?>", "positive_code": [{"source_code": "= 0) && (((count($g) - $h) % 2) == 0))\n{\n $i = ($d + $f + count($g)) / 2;\n $j = $i - $d;\n $k = $i - $f;\n $l = implode(\"\", array_splice($c, 0, $d));\n $m = implode(\"\", array_splice($c, $o));\n for($x = 0; $x < $j; $x++)\n {\n $l .= $g[$x];\n }\n for($y = $x; $y < $k + $j; $y++)\n {\n $m .= $g[$y];\n }\n print $l . $m;\n}\nelse\n{\n print \"Impossible\";\n}\n?>"}], "negative_code": [{"source_code": "= 0) && (((count($g) - $h) % 2) == 0))\n{\n $i = ($d + $f + count($g)) / 2;\n $j = $i - $d;\n $k = $i - $f;\n $l = implode(\"\", array_splice($c, 0, $d));\n $m = implode(\"\", array_splice($c, $o));\n for($x = 0; $x < $j; $x++)\n {\n $l .= $g[$x];\n }\n for($y = $x; $y < $k; $y++)\n {\n $m .= $g[$y];\n }\n print $l . $m;\n}\nelse\n{\n print \"Impossible\";\n}\n?>"}], "src_uid": "917f173b8523ddd38925238e5d2089b9"} {"source_code": "=9) { \n $mino[$q]+=9;\n $a-=9;\n $q--;\n}\n$mino[$q]+=$a;\n$x=join('',$mino);\necho $x;\necho \"\\n\";\n$s=$jame;\n$q2=$num-1;\n$i=0;\n$maxo=str_split(str_repeat('0',$num));\nwhile ($s >=9 and $i <$num) {\n $maxo[$i]+=9;\n $s-=9;\n $i++;\n}\nif($s !=0){\n @$maxo[$i]+=$s;\n}\n$y=join('',$maxo);\necho $y;", "positive_code": [{"source_code": "= 0; $x--)\n{\n for($y = 0; $y <= 9; $y++)\n {\n $c[$x] = $y;\n $d = array_sum($c);\n if($d == $b)\n {\n $i = 1;\n break;\n }\n }\n if($d == $b)\n {\n break;\n }\n}\n$e = implode($c);\n$f = array_fill(0, $a, 9);\n$j = 0;\nfor($x = count($f) - 1; $x >= 0; $x--)\n{\n for($y = 9; $y >= 0; $y--)\n {\n $f[$x] = $y;\n $g = array_sum($f);\n if($g == $b)\n {\n $j = 1;\n break;\n }\n }\n if($g == $b)\n {\n break;\n }\n}\nif(($i == 0) || ($j == 0))\n{\n print \"-1 -1\";\n}\nelse\n{\n $h = implode($f);\n print $e . \" \" . $h;\n}\n?>"}, {"source_code": "$m*9 || $s<1) {echo \"-1 -1\"; exit;}\n$j=$s;\nfor ($i=1; $i<=$m; $i++){\n\t$a[0]++;\n\tif ($i==$m) $a[$i]=$j;\n\telse{\n\t\tif ($j>9){\n\t\t\t$a[$i]=9;\n\t\t\t$j-=9;\n\t\t}\n\t\telse{\n\t\t\t$a[$i]=$j-1;\n\t\t\t$j=1;\n\t\t}\n\t}\n}\nfor ($i=$a[0]; $i>0; $i--) echo $a[$i];\necho \" \";\n$j=$s;\nfor ($i=1; $i<=$m; $i++){\n\t$b[0]++;\n\tif ($j>9){\n\t\t$b[$i]=9;\n\t\t$j-=9;\n\t}\n\telse{\n\t\t$b[$i]=$j;\n\t\t$j=0;\n\t}\n}\nfor ($i=1; $i<=$b[0]; $i++) echo $b[$i];\n?>"}], "negative_code": [{"source_code": ""}, {"source_code": "=9) { \n $mino[$q]+=9;\n $a-=9;\n $q--;\n}\n$mino[$q]+=$a;\n$x=join('',$mino);\necho $x;\necho \"\\n\";\n$s=$jame;\n$q2=$num-1;\n$i=0;\n$maxo=str_split(str_repeat('0',$num));\nwhile ($s >=9 and $i <$num) {\n $maxo[$i]+=9;\n $s-=9;\n $i++;\n}\nif($s !=0){\n @$maxo[$i]+=$s;\n}\n$y=join('',$maxo);\necho $y;"}, {"source_code": "=9) { \n $mino[$q]+=9;\n $a-=9;\n $q--;\n}\n$mino[$q]+=$a;\necho join('',$mino);\necho \"\\n\";\n$s=$jame;\n$q2=$num-1;\n$i=0;\n$maxo=str_split(str_repeat('0',$num));\nwhile ($s >=9 and $i <$num) {\n $maxo[$i]=9;\n $s-=9;\n $i++;\n}\n@$maxo[$i]+=$s;\necho join('',$maxo);"}, {"source_code": "=9) { \n $mino[$q]+=9;\n $a-=9;\n $q--;\n}\n$mino[$q]+=$a;\n$x=join('',$mino);\necho $x;\necho \"\\n\";\n$s=$jame;\n$q2=$num-1;\n$i=0;\n$maxo=str_split(str_repeat('0',$num));\nwhile ($s >=9 and $i <$num) {\n $maxo[$i]+=9;\n $s-=9;\n $i++;\n}\nif($s !=0){\n @$maxo[$i]+=$s;\n}\n$y=join('',$maxo);\necho $y;"}], "src_uid": "75d062cece5a2402920d6706c655cad7"} {"source_code": "", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": " 1) {\n break;\n }\n}\n\nfor($i = 0; $i 1) {\n break;\n }\n}\n\nfor($i = 0; $i 1) {\n break;\n }\n}\n\nfor($i = 0; $i 1) {\n break;\n }\n}\n\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "';print_r($var);echo '';} \n function read_line()\n { \n if(DEBUG) { $file = $GLOBALS['file'];$line = trim(fgets($file));}\n else $line = trim(fgets(STDIN));\n return $line;\n }\n function get_array($line){return explode(' ', $line);}\n function read_array(){return get_array(read_line());} \n //echo \"$s\\n\";\n /*****************************************************************/\n \n $line1 = read_line();\n $line2 = read_line();\n $len = strlen($line1);\n \n for ($i=0; $i<$len; $i++)\n {\n $char1 = $line1[$i];\n $char2 = $line2[$i];\n \n if($char1 == $char2) echo '0';\n else echo '1';\n }\n?>"}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "negative_code": [{"source_code": " 1) {\n break;\n }\n}\n\nfor($i = 0; $i"}, {"source_code": "$f=fopen(STDIN,\"r\");\n$a=fgets($f);\n$b=fgets($f);\n\nfunction xors($a,$b){\n $r='';\n for ($i=0,$n=strlen($a);$i<$a;$i++){\n //for ($j=$i;$j<$n;$j++){\n if($a[$i]==$b[$i]) $r.='0'; \n else $r.='1'; \n // break;\n //}\n }\n return (int)$r;\n}\necho xors($a,$b);"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "function xors($a,$b){\n\t$r='';\n\tfor ($i=0,$n=strlen($a);$i<$a;$i++){\n\t\tfor ($j=$i,$m=strlen($a);$j<$m;$j++){\n\t\t\tif($a[$i]==$b[$j]) $r.='0'; \n\t\t\telse $r.='1'; \n\t\t\tbreak;\n\t\t}\n\t}\n\treturn $r;\n}"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "src_uid": "3714b7596a6b48ca5b7a346f60d90549"} {"source_code": "", "positive_code": [{"source_code": ""}, {"source_code": "= ($f2 + $e2))\n {\n $e = ($m1[0] + $m1[1]) / 2; // числа всречи\n $f = $m1[0] - $e; // количество ходов до чисел встречи\n if($m1[2] < $f)\n {\n $g = $f - $m1[2];\n $d = $m1[2] + (($m1[0] - $m1[2]) - ($m1[1] + $m1[2])) + $m1[1] + $m1[2];\n print $d; \n }\n else\n {\n $d = $f + $e;\n print $d;\n }\n }\n elseif(($f1 + $e1) < ($f2 + $e2))\n {\n $e = ($m1[1] + $m1[2]) / 2; // числа всречи\n $f = $m1[1] - $e; // количество ходов до чисел встречи\n if($m1[0] < $f)\n {\n $g = $f - $m1[0];\n $d = $m1[0] + (($m1[1] - $m1[0]) - ($m1[2] + $m1[0])) + $m1[2] + $m1[0];\n print $d; \n }\n else\n {\n $d = $f + $e;\n print $d;\n }\n }\n }\n}\n?>"}], "negative_code": [{"source_code": "= ($f2 + $e2))\n {\n $e = ($m1[0] + $m1[1]) / 2; // числа всречи\n $f = $m1[0] - $e; // количество ходов до чисел встречи\n if($m1[2] < $f)\n {\n $g = $f - $m1[2];\n $d = $g + ($f - $g) * 2 + $e;\n print $d; \n }\n else\n {\n $d = $f + $e;\n print $d;\n }\n }\n elseif(($f1 + $e1) < ($f2 + $e2))\n {\n $e = ($m1[1] + $m1[2]) / 2; // числа всречи\n $f = $m1[1] - $e; // количество ходов до чисел встречи\n if($m1[0] < $f)\n {\n $g = $f - $m1[0];\n $d = $g + ($f - $g) * 2 + $e;\n print $d; \n }\n else\n {\n $d = $f + $e;\n print $d;\n }\n }\n }\n}\n?>"}, {"source_code": "= ($f2 + $e2))\n {\n $e = ($m1[0] + $m1[1]) / 2; // числа всречи\n $f = $m1[0] - $e; // количество ходов до чисел встречи\n if($m1[2] < $f)\n {\n $g = $f - $m1[2];\n $d = $g + ($f - $g) * 2 + $e;\n print $d; \n }\n else\n {\n $d = $f + $e;\n print $d;\n }\n }\n elseif(($f1 + $e1) < ($f2 + $e2))\n {\n $e = ($m1[1] + $m1[2]) / 2; // числа всречи\n $f = $m1[1] - $e; // количество ходов до чисел встречи\n if($m1[0] < $f)\n {\n $g = $f - $m1[0];\n $d = $g + ($f - $g) * 2 + $e;\n print $d; \n }\n else\n {\n $d = $f + $e;\n print $d;\n }\n }\n }\n}\n?>"}, {"source_code": ""}, {"source_code": "= ($f2 + $e2))\n {\n $e = ($m1[0] + $m1[1]) / 2; // числа всречи\n $f = $m1[0] - $e; // количество ходов до чисел встречи\n if($m1[2] < $f)\n {\n $g = $f - $m1[2];\n $h = $g + ($f - $g) * 2 + $e;\n print $h; \n }\n else\n {\n $h = $f + $e;\n print $h;\n }\n }\n elseif(($f1 + $e1) < ($f2 + $e2))\n {\n $e = ($m1[1] + $m1[2]) / 2; // числа всречи\n $f = $m1[1] - $e; // количество ходов до чисел встречи\n if($m1[0] < $f)\n {\n $g = $f - $m1[0];\n $h = $g + ($f - $g) * 2 + $e;\n print $h; \n }\n else\n {\n $h = $f + $e;\n print $h;\n }\n }\n }\n}\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": " ($f2 + $e2))\n {\n $e = ($m1[0] + $m1[1]) / 2; // числа всречи\n $f = $m1[0] - $e; // количество ходов до чисел встречи\n if($m1[2] < $f)\n {\n $g = $f - $m1[2];\n $d = $g + ($f - $g) * 2 + $e;\n print $d; \n }\n else\n {\n $d = $f + $e;\n print $d;\n }\n }\n elseif(($f1 + $e1) <= ($f2 + $e2))\n {\n $e = ($m1[1] + $m1[2]) / 2; // числа всречи\n $f = $m1[1] - $e; // количество ходов до чисел встречи\n if($m1[0] < $f)\n {\n $g = $f - $m1[0];\n $d = $g + ($f - $g) * 2 + $e;\n print $d; \n }\n else\n {\n $d = $f + $e;\n print $d;\n }\n }\n }\n}\n?>"}, {"source_code": "1)) {$rez=$rez.\"a\";};\n if ((($b%2)==0)and($b>1)) {$rez=$rez.\"b\";};\n if ((($c%2)==0)and($c>1)) {$rez=$rez.\"c\";};\n return $rez; }\n\nfunction kolvonc(&$a,&$b,&$c)\n { if ((($a%2)!=0)and($a>1)) {$res=$res.\"a\";};\n if ((($b%2)!=0)and($b>1)) {$res=$res.\"b\";};\n if ((($c%2)!=0)and($c>1)) {$res=$res.\"c\";};\n return $res; }\n\nfunction vvod(&$a,&$b,&$c,&$u)\n {if ($u==\"ab\") {$res=(max($a,$b));};\n if ($u==\"bc\") {$res=(max($b,$c));};\n if ($u==\"ac\") {$res=(max($a,$c));};\n if ($u==\"abc\") {$res=(($a+$b+$c)-(min($a,$b,$c)+max($a,$b,$c)));};\n return $res; }\n\nfunction vvodd(&$a,&$b,&$c,&$u)\n {if (($u==\"ab\")and($c<2)) {$res=(min($a,$b));} else{$res=(max($a,$b));};\n if (($u==\"bc\")and($a<2)) {$res=(min($b,$c));} else{$res=(max($b,$c));};\n if (($u==\"ac\")and($b<2)) {$res=(min($a,$c));} else{$res=(max($a,$c));};\n if ($u==\"abc\") {$res=(($a+$b+$c)-(min($a,$b,$c)+max($a,$b,$c)));};\n return $res; }\n\n$m=kolvo($a,$b,$c);\n$n=kolvonc($a,$b,$c);\nif ((strlen($m))>(strlen($n))) {print (vvod($a,$b,$c,$m));} else {print (vvodd($a,$b,$c,$n));} ;\n?>"}], "src_uid": "b8008caf788336775cb8ebb76478b04c"} {"source_code": "=0;$y--) {\n if(in_array($area[$round][$y][$x], array('M'))) {\n for($i=-1;$i<2;$i++) {\n for($n=-1;$n<2;$n++) {\n if(($n==0&&$i==0)||($y+$n)<0||($x+$i)<0||($x+$i)>7||($y+$n)>7){\n continue;\n }\n if(in_array($area[$round][$y+$n][$x+$i], array('A'))){\n die('WIN');\n }\n if(in_array($area[$round][$y+$n][$x+$i], array('.'))){\n $area[$round+1][$y+$n][$x+$i] = 'M';\n }\n }\n }\n }\n }\n }\n $round++;\n for($x=0;$x<8;$x++) {\n for($y=7;$y>=0;$y--) {\n if(in_array($area[$round][$y][$x], array('S'))) {\n $area[$round][$y][$x] = '.';\n if(($y+1)>7) {\n continue;\n }\n $area[$round][$y+1][$x] = 'S';\n }\n }\n }\n\n $mcount = 0;\n for($x=0;$x<8;$x++) {\n for($y=7;$y>=0;$y--) {\n if(in_array($area[$round][$y][$x], array('M'))) {\n $mcount++;\n }\n }\n }\n\n /*echo(\"\\n\".'Round: '.$round.\"\\n\");\n for( $i=0; $i<8; $i++) {\n echo($area[$round-1][$i].' '.$area[$round][$i].\"\\n\");\n }\n echo('M:'.$mcount.\"\\n\");*/\n if($mcount==0) {\n die(\"LOSE\");\n }\n}", "positive_code": [{"source_code": "= 0 && $board[$y - $turn][$x] == 'S') continue;\n if ($y - ($turn + 1) >= 0 && $board[$y - ($turn + 1)][$x] == 'S') continue;\n for ($vy = -1; $vy <= 1; $vy++)\n {\n for ($vx = -1; $vx <= 1; $vx++)\n {\n $ny = $y + $vy;\n $nx = $x + $vx;\n if (ok($ny, $nx) && $now[$ny][$nx])\n {\n $next[$y][$x] = true;\n if ($board[$y][$x] == 'A') return true;\n }\n }\n }\n }\n }\n $now = $next;\n }\n return false;\n}\n\nfunction ok($y, $x)\n{\n return $x >= 0 && $y >= 0 && $x < 8 && $y < 8;\n}\n\ncalc();\n?>\n"}, {"source_code": "= 0 && $board[$y - $turn][$x] == 'S') return false;\n if ($turn >= 8) return true;\n for ($vy = -1; $vy <= 1; $vy++)\n {\n for ($vx = -1; $vx <= 1; $vx++)\n {\n $ny = $y + $vy;\n $nx = $x + $vx;\n if ($ny < 0 || $ny >= 8 || $nx < 0 || $ny >= 8) continue;\n if ($ny - $turn >= 0 && $board[$ny - $turn][$nx] == 'S') continue;\n if (dfs($ny, $nx, $turn + 1)) return true;\n\n }\n }\n return false;\n}\n\ncalc();\n?>\n"}], "negative_code": [{"source_code": "= 0 && $board[$y - $turn][$x] == 'S') return false;\n if ($turn >= 8) return true;\n for ($vy = -1; $vy <= 1; $vy++)\n {\n for ($vx = -1; $vx <= 1; $vx++)\n {\n $ny = $y + $vy;\n $nx = $x + $vx;\n if ($ny < 0 || $ny >= 8 || $nx < 0 || $ny >= 8) continue;\n if ($ny - $turn >= 0 && $board[$ny - $turn][$nx] == 'S') continue;\n if (dfs($ny, $nx, $turn + 1)) return true;\n\n }\n }\n return false;\n}\n\ncalc();\n?>\n"}, {"source_code": "= 0 && $board[$y - $turn][$x] == 'S') return false;\n if ($turn >= 8) return true;\n for ($vy = -1; $vy <= 1; $vy++)\n {\n for ($vx = -1; $vx <= 1; $vx++)\n {\n $ny = $y + $vy;\n $nx = $x + $vx;\n if ($ny < 0 || $ny >= 8 || $nx < 0 || $ny >= 8) continue;\n if ($ny - $turn >= 0 && $board[$ny - $turn][$nx] == 'S') continue;\n if (dfs($ny, $nx, $turn + 1)) return true;\n\n }\n }\n return false;\n}\n\ncalc();\n?>\n"}, {"source_code": "=0;$y--) {\n if(in_array($area[$y][$x], array('S'))) {\n $area[$y][$x] = '.';\n if($y+1 <= 7) {\n if(in_array($area[$y+1][$x], array('M'))) {\n die('LOSE');\n }\n $area[$y+1][$x] = 'S';\n }\n }\n }\n }\n}\n\nfunction is_free_point($x,$y, $area) {\n if(valid_point($x, $y)) {\n if(in_array($area[$y][$x], array('.','A','M'))) {\n return TRUE;\n }\n }\n return FALSE;\n}\n\nfunction is_danger_point($x,$y,$area) {\n if( valid_point($x,($y-1) ) === FALSE || is_free_point($x, ($y-1) , $area) ) {\n return FALSE;\n }\n return TRUE;\n}\n\nfunction valid_point($x,$y) {\n if($x > 7 || $y > 7 || $x < 0 || $y < 0) {\n return FALSE;\n }\n return TRUE;\n}"}, {"source_code": "=0;$y--) {\n if(in_array($area[$y][$x], array('S'))) {\n $area[$y][$x] = '.';\n if($y+1 <= 7) {\n if(in_array($area[$y+1][$x], array('M'))) {\n die('LOSE');\n }\n $area[$y+1][$x] = 'S';\n }\n }\n }\n }\n}\n\nfunction is_free_point($x,$y, $area) {\n if(valid_point($x, $y)) {\n if(in_array($area[$y][$x], array('.','A','M'))) {\n return TRUE;\n }\n }\n return FALSE;\n}\n\nfunction is_danger_point($x,$y,$area) {\n if( valid_point($x,($y-1) ) === FALSE || is_free_point($x, ($y-1) , $area) ) {\n return FALSE;\n }\n return TRUE;\n}\n\nfunction valid_point($x,$y) {\n if($x > 7 || $y > 7 || $x < 0 || $y < 0) {\n return FALSE;\n }\n return TRUE;\n}"}], "src_uid": "f47e4ab041288ba9567c19930eb9a090"} {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "= 0 ; $i--) { \n $char = $input_line[$i];\n if ($char === '9') {\n $input_line[$i] = '0';\n } else {\n $k = (int) $char;\n $k ++;\n $input_line[$i] = (string) $k;\n break;\n }\n }\n if ($i < 0) {\n echo '-' . bcdiv('1'.$input_line, '2');\n } else {\n echo '-' . bcdiv($input_line, '2');\n }\n}\n\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": " 0){$line = str_replace($del,'',$line);$dataex[] = $line;$text = explode(\" \",$line);\nforeach($text as $txt){$arr_txt[] = $txt;$this->linex[$id] = $il;$this->liney[$il] = $id;$id++;}}$il++;}$this->arr_line = $dataex;$this->arr_txt = $arr_txt;}\nfunction G(){$ret = $this->arr_txt[$this->ntxt++];$this->nline = $this->linex[$this->ntxt];return $ret;}\nfunction GL(){$this->ntxt = $this->liney[$this->nline]+1;return $this->arr_line[$this->nline++];}} /*init*/ $dxs = new stdIn(false);\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n///////////////////////////////////// DECLARE FUNCTIONS ///////////////////////////////////////\n\nfunction mint($a, $b){if($a<$b){return $a;}else{return $b;}}\nfunction maxt($a, $b){if($a>$b){return $a;}else{return $b;}}\n\n/////////////////////////////////// MAIN CODE /////////////////////////////////////////////////\n\n$a=$dxs-> G(); \n$b=$dxs-> G(); \n$jo=$dxs-> G();\n\n$res1 = $a+$a+$b+$b;\n$res2 = $a+$jo+$b;\n$res3 = $a+$jo+$jo+$a;\n$res4 = $b+$jo+$jo+$b;\n\n$res = mint($res1, mint($res2, mint($res3, $res4)));\n\necho $res+\"\\n\";\n\n////////////////////////////////// PRINT OUTPUT ////////////////////////////////////////////////\n\n/////////////////////////////////////////////////////////////////////////////////////////////////\n\n\n// $x = $dxs-> G(); equivalent to cin>>x; [G() like Get] and for read a complete line//\n// $line = $dxs->GL(); // GL() like GetLine then i can emulate cin>> of C++ //\n// :P for see this template in action see my submissions ;) oh! i was forget that the constructor //\n// $dxs = newSdtIn(true) is 'true' //\n// if you are testing localy then read of input.txt, for submit the code change this to 'false'..//\n?>"}, {"source_code": ""}, {"source_code": ""}], "negative_code": [{"source_code": " 0){$line = str_replace($del,'',$line);$dataex[] = $line;$text = explode(\" \",$line);\nforeach($text as $txt){$arr_txt[] = $txt;$this->linex[$id] = $il;$this->liney[$il] = $id;$id++;}}$il++;}$this->arr_line = $dataex;$this->arr_txt = $arr_txt;}\nfunction G(){$ret = $this->arr_txt[$this->ntxt++];$this->nline = $this->linex[$this->ntxt];return $ret;}\nfunction GL(){$this->ntxt = $this->liney[$this->nline]+1;return $this->arr_line[$this->nline++];}} /*init*/ $dxs = new stdIn(false);\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n///////////////////////////////////// DECLARE FUNCTIONS ///////////////////////////////////////\n\nfunction mint($a, $b){if($a<$b){return $a;}else{return $b;}}\nfunction maxt($a, $b){if($a>$b){return $a;}else{return $b;}}\n\n/////////////////////////////////// MAIN CODE /////////////////////////////////////////////////\n\n$a=$dxs-> G(); \n$b=$dxs-> G(); \n$jo=$dxs-> G();\n\n$res1 = $a+$a+$b+$b;\n$res2 = $a+$jo+$b;\n$res3 = $a+$jo+$a;\n$res4 = $b+$jo+$b;\n\n$res = mint($res1, mint($res2, mint($res3, $res4)));\n\necho $res+\"\\n\";\n\n////////////////////////////////// PRINT OUTPUT ////////////////////////////////////////////////\n\n/////////////////////////////////////////////////////////////////////////////////////////////////\n\n\n// $x = $dxs-> G(); equivalent to cin>>x; [G() like Get] and for read a complete line//\n// $line = $dxs->GL(); // GL() like GetLine then i can emulate cin>> of C++ //\n// :P for see this template in action see my submissions ;) oh! i was forget that the constructor //\n// $dxs = newSdtIn(true) is 'true' //\n// if you are testing localy then read of input.txt, for submit the code change this to 'false'..//\n?>"}, {"source_code": "=$d2)\n{\n\t$min=$d2;\n\t$store=$d1;\n}\nelse\n{\n\t$min=$d1;\n\t$store=$d2;\n}\nif($d1+$d2>=$d3)\n$min1=$d3;\nelse\n$min1=$d1+$d2;\necho $min+$store+$min1;"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "src_uid": "26cd7954a21866dbb2824d725473673e"} {"source_code": " 1);\nwhile(TRUE)\n{\n $a = intval($a);\n $a += 1;\n while(TRUE)\n {\n $a = strval($a);\n if($a[strlen($a) - 1] == 0)\n {\n $a = substr($a, 0, -1);\n }\n else\n {\n break;\n }\n }\n if($c[$a] == 1)\n {\n break;\n }\n else\n {\n $b++;\n $c[$a] = 1;\n }\n}\nprint $b;\n?>", "positive_code": [{"source_code": " $v) {\n if ($k != 0) {\n $i += 9 - $v;\n }\n }\n echo $i;\n?>"}, {"source_code": " $sV){\n if($sK != 0){\n $iCount += 9 - $sV;\n }\n }\n}\n\necho $iCount;\n\n"}, {"source_code": " 1) { $n = f($n); $c++; }\n\necho $c;"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "src_uid": "055fbbde4b9ffd4473e6e716da6da899"} {"source_code": "", "positive_code": [{"source_code": " 1234567)\n{\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n if($j < 123456)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n }\n else\n {\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n }\n }\n else\n {\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 123456)\n{\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 1234)\n{\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": " 1234567)\n{\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $n += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 123456)\n{\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 1234)\n{\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": " 1234567)\n {\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n if($j < 123456)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n }\n else\n {\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n }\n }\n else\n {\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n elseif($a > 123456)\n {\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n elseif($a > 1234)\n {\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n }\n else\n {\n print \"NO\";\n }\n}\n?>"}, {"source_code": " 1234567)\n {\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n if($j < 123456)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n }\n }\n else\n {\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n elseif($a > 123456)\n {\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n elseif($a > 1234)\n {\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n }\n else\n {\n print \"NO\";\n }\n}\n?>"}, {"source_code": ""}, {"source_code": " 1234567)\n{\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 123456)\n{\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 1234)\n{\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": " 1234567)\n {\n $a -= 1234567;\n $b = $a % 123456;\n $c = $b % 1234;\n if($c == 0)\n {\n $e = 1;\n break;\n }\n }\n elseif($a > 123456)\n {\n $a -= 123456;\n $b = $a % 1234;\n if($b == 0)\n {\n $e = 1;\n break;\n }\n }\n elseif($a > 1234)\n {\n $b = $a % 1234;\n if($b == 0)\n {\n $e = 1;\n break;\n }\n }\n }\n $a = $f;\n for($x = 1; $x <= 1000; $x++)\n {\n if($a > 123456)\n {\n $a -= 123456;\n $b = $a % 1234;\n if($b == 0)\n {\n $e = 1;\n break;\n }\n }\n elseif($a > 1234)\n {\n $b = $a % 1234;\n if($b == 0)\n {\n $e = 1;\n break;\n }\n }\n }\n if($e == 1)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n}\n?>"}, {"source_code": " 1234567)\n{\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n if($j < 123456)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n }\n }\n else\n {\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 123456)\n{\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 1234)\n{\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": ""}, {"source_code": " 1234567)\n {\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n elseif($a > 123456)\n {\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n elseif($a > 1234)\n {\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n }\n else\n {\n print \"NO\";\n }\n}\n?>"}, {"source_code": " 1234567)\n {\n $a -= 1234567;\n $b = $a % 123456;\n $c = $b % 1234;\n if($c == 0)\n {\n $e = 1;\n break;\n }\n }\n elseif($a > 123456)\n {\n $a -= 123456;\n $b = $a % 1234;\n if($b == 0)\n {\n $e = 1;\n break;\n }\n }\n elseif($a > 1234)\n {\n $b = $a % 1234;\n if($b == 0)\n {\n $e = 1;\n break;\n }\n }\n }\n if($e == 1)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n}\n?>"}, {"source_code": " 1234567)\n {\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n elseif($a > 123456)\n {\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n elseif($a > 1234)\n {\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n }\n else\n {\n print \"NO\";\n }\n}\n?>"}, {"source_code": " 1234567)\n{\n $i = floor(bcdiv($a , 1234567));\n $j = bcmod($a, 1234567);\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor(bcdiv($j, 123456));\n $m = bcmod($j, 123456);\n for($y = 1; $y <= $l; $y++)\n {\n $n = bcmod($m, 1234);\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m = bcadd($m, 123456);\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j = bcadd($j, 1234567);\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 123456)\n{\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 1234)\n{\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": " 1234567)\n{\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n if($j < 123456)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n }\n }\n else\n {\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n if($m < 123456)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n }\n else\n {\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 123456)\n{\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 1234)\n{\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": " 1234567)\n{\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n if($j < 123456)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n }\n }\n else\n {\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n if($m < 123456)\n {\n $k = 1;\n break;\n }\n else\n {\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 123456)\n{\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n}\nelseif($a > 1234)\n{\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": " 1234567)\n {\n $i = floor($a / 1234567);\n $j = $a % 1234567;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = floor($j / 123456);\n $m = $j % 123456;\n for($y = 1; $y <= $l; $y++)\n {\n $n = $m % 1234;\n if($n == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $m += 123456;\n }\n }\n if($k == 1)\n {\n break;\n }\n else\n {\n $j += 1234567;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n elseif($a > 123456)\n {\n $i = floor($a / 123456);\n $j = $a % 123456;\n $k = 0;\n for($x = 1; $x <= $i; $x++)\n {\n $l = $j % 1234;\n if($l == 0)\n {\n $k = 1;\n break;\n }\n else\n {\n $j += 123456;\n }\n }\n if($k == 0)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n elseif($a > 1234)\n {\n $i = $a % 1234;\n if($i == 0)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n }\n else\n {\n print \"NO\";\n }\n}\n?>"}, {"source_code": "$arr[$i+2] &&\n $arr[$i+2] + $arr[$i+1]>$arr[$i] &&\n $arr[$i] + $arr[$i+2]>$arr[$i+1])\n {\n $flag = true;\n break;\n }\n }\n echo ($flag ? \"YES\" : \"NO\") . PHP_EOL;\n?>", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": "$max)) {\t\n\t\techo \"YES\";\n\t\tdie();\t}\n\n}\n\n$i++;\n\n}\n\necho \"NO\";\n\n\n\n?>"}], "negative_code": [{"source_code": "$max)) {\t\n\t\techo \"YES\";\n\t\tbreak 2;\n\t}\n\n}\n\n$i++;\n\n}\n\n\n\n\n?>"}, {"source_code": "=$max) {\t\n\t\techo \"YES\";\n\t\tbreak 2;\n\t}\n\n}\n\n$i++;\n\n}\n\n\n\n\n?>"}, {"source_code": "$max)) {\t\n\t\techo \"YES\";\n\t\tbreak 2;\n\t}\n\n}\n\n$i++;\n\n}\n\n\n\n\n?>"}, {"source_code": "$arr[$i+2] &&\n $arr[$i+2] + $arr[$i+1]>$arr[$i] &&\n $arr[$i] + $arr[$i+2]>$arr[$i+1])\n {\n $flag = true;\n break;\n }\n }\n echo ($flag ? \"YES\" : \"NO\") . PHP_EOL;\n?>\n"}], "src_uid": "897bd80b79df7b1143b652655b9a6790"} {"source_code": "$x1) $s+=$a6;\n\t if($y>$y1) $s+=$a2;\n\t if($z>$z1) $s+=$a4;\n\t echo $s;\n?>\n\t \t\t\t \t\t\t\t \t \t\t \t\t", "positive_code": [{"source_code": " $y) $ans += $cur;\n\t$cur = in();\n\tif($vz < 0) $ans += $cur;\n\t$cur = in();\n\tif($vz > $z) $ans += $cur;\n\t$cur = in();\n\tif($vx < 0) $ans += $cur;\n\t$cur = in();\n\tif($vx > $x) $ans += $cur;\n\techo $ans;\n?>\n"}, {"source_code": " $y) $r = $r + $a2;\nif ($z1 < 0) $r = $r + $a3;\nif ($z1 > $z) $r = $r + $a4;\nif ($x1 < 0) $r = $r + $a5;\nif ($x1 > $x) $r = $r + $a6;\n\necho \"$r\\n\";\n?>"}], "negative_code": [], "src_uid": "c7889a8f64c57cf7be4df870f68f749e"} {"source_code": " 0, 'p' => 0, 's' => 0);\n foreach($n as $k => $v){\n $arr[$v[1]] += 1; \n }\n arsort($arr);\n if(reset($arr) == 1){\n echo 2;\n } else if (reset($arr) == 2) {\n foreach($n as $sk => $sv){\n if($sv[1] == array_keys($arr)[0]) {\n $a[] = $sv[0];\n }\n }\n if(abs($a[0] - $a[1]) <= 2) {\n echo 1;\n } else {\n echo 2;\n }\n } else if(reset($arr) == 3) {\n foreach($n as $sk => $sv){\n if($sv[1] == array_keys($arr)[0]) {\n $a[] = $sv[0];\n }\n }\n $b = array_count_values($a);\n arsort($b);\n if(max($a) - min($a) == 0) {\n echo 0;\n } else if (max($a) - min($a) == 2) {\n if(reset($b) < 2) {\n echo 0;\n }else{\n echo 1;\n }\n } else if (max($a) - min($a) > 2){\n $b = array_count_values($a);\n arsort($b);\n $d = array_keys($b);\n sort($d);\n $m1 = $d[0]+1;\n $m2 = $d[2]-1;\n $m3 = $d[1]+1;\n $m4 = $d[1]-1;\n if(reset($b) < 2) {\n if(in_array($m1, $d) || in_array($m2, $d) || in_array($m3, $d) || in_array($m4, $d) || ($m1 == $m4) || ($m3 == $m2)){\n echo 1;\n } else {\n echo 2;\n }\n } else {\n echo 1;\n }\n } else {\n echo 1;\n }\n }\n\n ?>", "positive_code": [{"source_code": " $a, 1 => $b, 2 => $c);\n $f = array(\"s\", \"m\", \"p\");\n for($w = 0; $w < 3; $w++)\n {\n for($x = 1; $x <= 7; $x++)\n {\n for($y = $x + 1; $y <= 8; $y++)\n {\n for($z = $y + 1; $z <= 9; $z++)\n {\n if(($z - $y > 1) || ($y - $x) > 1)\n {\n break;\n }\n $g = $x . $f[$w];\n $h = $y . $f[$w];\n $i = $z . $f[$w];\n $j = array($g, $h, $i);\n $k = array_intersect($e, $j);\n $l = 3 - count($k);\n $m = min($m, $l);\n }\n }\n }\n }\n}\nprint min($d, $m);\n?>"}], "negative_code": [{"source_code": " $a, 1 => $b, 2 => $c);\n $f = array(\"s\", \"m\", \"p\");\n $m = 3;\n for($w = 0; $w < 3; $w++)\n {\n for($x = 1; $x <= 7; $x++)\n {\n for($y = $x + 1; $y <= 8; $y++)\n {\n for($z = $y + 1; $z <= 9; $z++)\n {\n $g = $x . $f[$w];\n $h = $y . $f[$w];\n $i = $z . $f[$w];\n $j = array($g, $h, $i);\n $k = array_intersect($e, $j);\n $l = 3 - count($k);\n $m = min($m, $l);\n }\n }\n }\n }\n}\nprint min($d, $m);\n?>"}, {"source_code": " $a, 1 => $b, 2 => $c);\n $f = array(\"s\", \"m\", \"p\");\n for($w = 0; $w < 3; $w++)\n {\n for($x = 1; $x <= 7; $x++)\n {\n for($y = $x + 1; $y <= 8; $y++)\n {\n for($z = $y + 1; $z <= 9; $z++)\n {\n $g = $x . $f[$w];\n $h = $y . $f[$w];\n $i = $z . $f[$w];\n $j = array($g, $h, $i);\n $k = array_intersect($e, $j);\n $l = 3 - count($k);\n $m = min($m, $l);\n }\n }\n }\n }\n}\nprint min($d, $m);\n?>"}, {"source_code": " 0, 'p' => 0, 's' => 0);\n foreach($n as $k => $v){\n $arr[$v[1]] += 1; \n }\n arsort($arr);\n if(reset($arr) == 1){\n echo 2;\n } else if (reset($arr) == 2) {\n foreach($n as $sk => $sv){\n if($sv[1] == array_keys($arr)[0]) {\n $a[] = $sv[0];\n }\n }\n if(abs($a[0] - $a[1]) <= 2) {\n echo 1;\n } else {\n echo 2;\n }\n } else if(reset($arr) == 3) {\n foreach($n as $sk => $sv){\n if($sv[1] == array_keys($arr)[0]) {\n $a[] = $sv[0];\n }\n }\n $b = array_count_values($a);\n arsort($b);\n if(max($a) - min($a) == 0) {\n echo 0;\n } else if (max($a) - min($a) == 2) {\n if(reset($b) < 2) {\n echo 0;\n }else{\n echo 1;\n }\n } else if (max($a) - min($a) > 2){\n $b = array_count_values($a);\n arsort($b);\n $d = array_keys($b);\n sort($d);\n $m1 = $d[0]+1;\n $m2 = $d[2]-1;\n $m3 = $d[1]+1;\n $m4 = $d[1]-1;\n if(reset($b) < 2) {\n if(in_array($m1, $d) || in_array($m2, $d) || in_array($m3, $d) || in_array($m4, $d) || ($m1 == $m4) || ($m3 == $m2)){\n echo 1;\n } else {\n echo 2;\n }\n } else {\n echo 1;\n }\n }\n }\n\n ?>"}, {"source_code": " 0, 'p' => 0, 's' => 0);\n foreach($n as $k => $v){\n $arr[$v[1]] += 1; \n }\n arsort($arr);\n if(reset($arr) == 1){\n echo 2;\n } else if (reset($arr) == 2) {\n foreach($n as $sk => $sv){\n if($sv[1] == array_keys($arr)[0]) {\n $a[] = $sv[0];\n }\n }\n if(abs($a[0] - $a[1]) <= 2) {\n echo 1;\n } else {\n echo 2;\n }\n } else if(reset($arr) == 3) {\n foreach($n as $sk => $sv){\n if($sv[1] == array_keys($arr)[0]) {\n $a[] = $sv[0];\n }\n }\n $b = array_count_values($a);\n arsort($b);\n if(max($a) - min($a) == 0) {\n echo 0;\n } else if (max($a) - min($a) == 2) {\n if(reset($b) < 2) {\n echo 0;\n }else{\n echo 1;\n }\n } else if (max($a) - min($a) > 2){\n $b = array_count_values($a);\n $d = array_keys($b);\n \n $max = max($d)-1;\n $min = min($d)+1;\n if(reset($b) < 2) {\n if(in_array($max, $d) || in_array($min, $d)){\n echo 1;\n } else {\n echo 2;\n }\n } else {\n echo 1;\n }\n }\n }\n\n ?>"}, {"source_code": " 0, 'p' => 0, 's' => 0);\n foreach($n as $k => $v){\n $arr[$v[1]] += 1; \n }\n arsort($arr);\n if(reset($arr) == 1){\n echo 2;\n } else if (reset($arr) == 2) {\n foreach($n as $sk => $sv){\n if($sv[1] == array_keys($arr)[0]) {\n $a[] = $sv[0];\n }\n }\n if(abs($a[0] - $a[1]) <= 2) {\n echo 1;\n } else {\n echo 2;\n }\n } else if(reset($arr) == 3) {\n foreach($n as $sk => $sv){\n if($sv[1] == array_keys($arr)[0]) {\n $a[] = $sv[0];\n }\n }\n $b = array_count_values($a);\n arsort($b);\n if(max($a) - min($a) == 0) {\n echo 0;\n } else if (max($a) - min($a) == 2) {\n if(reset($b) < 2) {\n echo 0;\n }else{\n echo 1;\n }\n } else if (max($a) - min($a) > 2){\n $b = array_count_values($a);\n arsort($b);\n $d = array_keys($b);\n \n $max = max($d)-1;\n $min = min($d)+1;\n if(reset($b) < 2) {\n if(in_array($max, $d) || in_array($min, $d)){\n echo 1;\n } else {\n echo 2;\n }\n } else {\n echo 1;\n }\n }\n }\n\n ?>"}, {"source_code": " 0, 'p' => 0, 's' => 0);\n foreach($n as $k => $v){\n $arr[$v[1]] += 1; \n }\n arsort($arr);\n if(reset($arr) == 1){\n echo 2;\n } else if (reset($arr) == 2) {\n foreach($n as $sk => $sv){\n if($sv[1] == array_keys($arr)[0]) {\n $a[] = $sv[0];\n }\n }\n if(abs($a[0] - $a[1]) <= 2) {\n echo 1;\n } else {\n echo 2;\n }\n } else if(reset($arr) == 3) {\n foreach($n as $sk => $sv){\n if($sv[1] == array_keys($arr)[0]) {\n $a[] = $sv[0];\n }\n }\n if(max($a) - min($a) == 0) {\n echo 0;\n } else if (max($a) - min($a) == 2) {\n echo 1;\n } else if (max($a) - min($a) > 2){\n $b = array_count_values($a);\n if($b[0] < 2) {\n echo 2;\n } else {\n echo 1;\n }\n }\n }\n\n ?>"}], "src_uid": "7e42cebc670e76ace967e01021f752d3"} {"source_code": " $b) return ($a-$b-($a-$b)%2)/2;\n else \n return $a-$b;\n }\n\n fscanf(STDIN, \"%d%d%d\", $a, $b, $c);\n fscanf(STDIN, \"%d%d%d\", $x, $y, $z);\n //echo $a, $b, $c;\n //echo $x, $y, $z;\n $ans = 0;\n $ans = $ans + gao($a, $x);// echo $ans , \"\\n\";\n $ans += gao($b, $y);// echo $ans , '\\n';\n $ans += gao($c, $z);// echo $ans , '\\n';\n echo $ans >= 0 ? \"Yes\" : \"No\";\n\n?>", "positive_code": [{"source_code": "= $d)\n{\n $g = $a - $d;\n $h = floor($g / 2);\n if($b >= $e)\n {\n $i = $b - $e;\n $j = floor($i / 2);\n if($c >= $f)\n {\n print \"Yes\";\n }\n else\n {\n if(($h + $j + $c) >= $f)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c >= $f)\n {\n $k = $c - $f;\n $l = floor($k / 2);\n if(($h + $l + $b) >= $e)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n if(($h + $b) >= $e)\n {\n $o = ($h + $b) - $e;\n if(($o + $c) >= $f)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n print \"No\";\n }\n }\n }\n}\nelse\n{\n if($b >= $e)\n {\n $i = $b - $e;\n $j = floor($i / 2);\n if($c >= $f)\n {\n $m = $c - $f;\n $n = floor($m / 2);\n if(($a + $j + $n) >= $d)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n if(($a + $j) >= $d)\n {\n $p = ($a + $j) - $d;\n if(($p + $c) >= $f)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c >= $f)\n {\n $m = $c - $f;\n $n = floor($m / 2);\n if(($a + $n) >= $d)\n {\n $p = ($a + $n) - $d;\n if(($p + $b) >= $e)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n print \"No\";\n }\n }\n}\n?>"}, {"source_code": " 0 ? $d_a : 0;\n$m_b = $d_b > 0 ? $d_b : 0;\n$m_c = $d_c > 0 ? $d_c : 0;\n$m = $m_a + $m_b + $m_c;\n\n//echo $m_a . \" \" . $m_b . \" \" . $m_c . \"\\n\";\n\n$e_a = -$d_a > 0 ? floor(-$d_a / 2) : 0;\n$e_b = -$d_b > 0 ? floor(-$d_b / 2) : 0;\n$e_c = -$d_c > 0 ? floor(-$d_c / 2) : 0;\n\n$e = $e_a + $e_b + $e_c;\n\n//echo $e_a . \" \" . $e_b . \" \" . $e_c . \"\\n\";\n\necho $e >= $m ? \"Yes\\n\" : \"No\\n\"\n\n?>"}], "negative_code": [{"source_code": " $d)\n{\n $g = $a - $d;\n $h = floor($g / 2);\n if($b > $e)\n {\n $i = $b - $e;\n $j = floor($i / 2);\n if($c > $f)\n {\n print \"Yes\";\n }\n elseif($c < $f)\n {\n if(($h + $j + $c) >= $f)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c > $f)\n {\n $k = $c - $f;\n $l = floor($k / 2);\n if(($j + $b + $l) >= $e)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n $m = $e - $b;\n $n = $f - $c;\n if($h >= ($m + $n))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n}\nelseif($a < $d)\n{\n if($b > $e)\n {\n $o = $b - $e;\n $p = floor($o / 2);\n if($c > $f)\n {\n $r = $c - $f;\n $s = floor($r / 2);\n $t = $d - $a;\n if(($p + $s) >= $t)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n $t = $d - $a;\n $u = $f - $c;\n $v = $t + $u;\n if($s >= $v)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n elseif($b < $e)\n {\n if($c > $f)\n {\n $w = $c - $f;\n $x = floor($w / 2);\n $t = $d - $a;\n $y = $e - $b;\n if($x >= ($t + $y))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n print \"No\";\n }\n }\n}\n?>"}, {"source_code": " $d)\n{\n $g = $a - $d;\n $h = floor($g / 2);\n if($b > $e)\n {\n $i = $b - $e;\n $j = floor($i / 2);\n if($c > $f)\n {\n print \"Yes\";\n }\n elseif($c < $f)\n {\n if(($h + $j + $c) >= $f)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n elseif($b < $e)\n {\n if($c > $f)\n {\n $k = $c - $f;\n $l = floor($k / 2);\n if(($j + $b + $l) >= $e)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n elseif($c < $f)\n {\n $m = $e - $b;\n $n = $f - $c;\n if($h >= ($m + $n))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n}\nelseif($a < $d)\n{\n if($b > $e)\n {\n $o = $b - $e;\n $p = floor($o / 2);\n if($c > $f)\n {\n $r = $c - $f;\n $s = floor($r / 2);\n $t = $d - $a;\n if(($p + $s) >= $t)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n elseif($c < $f)\n {\n $t = $d - $a;\n $u = $f - $c;\n $v = $t + $u;\n if($s >= $v)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n elseif($b < $e)\n {\n if($c > $f)\n {\n $w = $c - $f;\n $x = floor($w / 2);\n $t = $d - $a;\n $y = $e - $b;\n if($x >= ($t + $y))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n elseif($c < $f)\n {\n print \"No\";\n }\n }\n}\n?>"}, {"source_code": " $d)\n{\n $g = $a - $d;\n $h = floor($g / 2);\n if($b > $e)\n {\n $i = $b - $e;\n $j = floor($i / 2);\n if($c > $f)\n {\n print \"Yes\";\n }\n else\n {\n if(($h + $j + $c) >= $f)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c > $f)\n {\n $k = $c - $f;\n $l = floor($k / 2);\n if(($h + $b + $l) >= $e)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n $m = $e - $b;\n $n = $f - $c;\n if($h >= ($m + $n))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n}\nelse\n{\n if($b > $e)\n {\n $o = $b - $e;\n $p = floor($o / 2);\n if($c > $f)\n {\n $r = $c - $f;\n $s = floor($r / 2);\n $t = $d - $a;\n if(($p + $s) >= $t)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n $t = $d - $a;\n $u = $f - $c;\n $v = $t + $u;\n if(floor(($b - $e) / 2) >= $v)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c > $f)\n {\n $w = $c - $f;\n $x = floor($w / 2);\n $t = $d - $a;\n $y = $e - $b;\n if($x >= ($t + $y))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n print \"No\";\n }\n }\n}\n?>"}, {"source_code": " $d)\n{\n $g = $a - $d;\n $h = floor($g / 2);\n if($b > $e)\n {\n $i = $b - $e;\n $j = floor($i / 2);\n if($c > $f)\n {\n print \"Yes\";\n }\n elseif($c < $f)\n {\n if(($h + $j + $c) >= $f)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c > $f)\n {\n $k = $c - $f;\n $l = floor($k / 2);\n if(($h + $b + $l) >= $e)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n $m = $e - $b;\n $n = $f - $c;\n if($h >= ($m + $n))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n}\nelseif($a < $d)\n{\n if($b > $e)\n {\n $o = $b - $e;\n $p = floor($o / 2);\n if($c > $f)\n {\n $r = $c - $f;\n $s = floor($r / 2);\n $t = $d - $a;\n if(($p + $s) >= $t)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n $t = $d - $a;\n $u = $f - $c;\n $v = $t + $u;\n if($s >= $v)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c > $f)\n {\n $w = $c - $f;\n $x = floor($w / 2);\n $t = $d - $a;\n $y = $e - $b;\n if($x >= ($t + $y))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n print \"No\";\n }\n }\n}\n?>"}, {"source_code": "= $d)\n{\n $g = $a - $d;\n $h = floor($g / 2);\n if($b >= $e)\n {\n $i = $b - $e;\n $j = floor($i / 2);\n if($c >= $f)\n {\n print \"Yes\";\n }\n else\n {\n if(($h + $j + ($f - $c)) >= $f)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c >= $f)\n {\n $k = $c - $f;\n $l = floor($k / 2);\n if(($h + $l + ($e - $b)) >= $e)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n if(($h + ($e - $b) + ($f - $c)) >= ($e + $f))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n}\nelse\n{\n if($b >= $e)\n {\n $i = $b - $e;\n $j = floor($i / 2);\n if($c >= $f)\n {\n $m = $c - $f;\n $n = floor($m / 2);\n if((($d - $a) + $j + $n) >= $d)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n if((($d - $a) + $j + ($f - $c)) >= ($d + $f))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c >= $f)\n {\n $m = $c - $f;\n $n = floor($m / 2);\n if($n >= (($d - $a) + ($e - $b)))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n print \"No\";\n }\n }\n}\n?>"}, {"source_code": " $d)\n{\n $g = $a - $d;\n $h = floor($g / 2);\n if($b > $e)\n {\n $i = $b - $e;\n $j = floor($i / 2);\n if($c > $f)\n {\n print \"Yes\";\n }\n elseif($c < $f)\n {\n if(($h + $j + $c) >= $f)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c > $f)\n {\n $k = $c - $f;\n $l = floor($k / 2);\n if(($h + $b + $l) >= $e)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n $m = $e - $b;\n $n = $f - $c;\n if($h >= ($m + $n))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n}\nelseif($a < $d)\n{\n if($b > $e)\n {\n $o = $b - $e;\n $p = floor($o / 2);\n if($c > $f)\n {\n $r = $c - $f;\n $s = floor($r / 2);\n $t = $d - $a;\n if(($p + $s) >= $t)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n $t = $d - $a;\n $u = $f - $c;\n $v = $t + $u;\n if($s >= $v)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n elseif($b < $e)\n {\n if($c > $f)\n {\n $w = $c - $f;\n $x = floor($w / 2);\n $t = $d - $a;\n $y = $e - $b;\n if($x >= ($t + $y))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n print \"No\";\n }\n }\n}\n?>"}, {"source_code": " $d)\n{\n $g = $a - $d;\n $h = floor($g / 2);\n if($b > $e)\n {\n $i = $b - $e;\n $j = floor($i / 2);\n if($c > $f)\n {\n print \"Yes\";\n }\n else\n {\n if(($h + $j + $c) >= $f)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c > $f)\n {\n $k = $c - $f;\n $l = floor($k / 2);\n if(($h + $b + $l) >= $e)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n $m = $e - $b;\n $n = $f - $c;\n if($h >= ($m + $n))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n}\nelse\n{\n if($b > $e)\n {\n $o = $b - $e;\n $p = floor($o / 2);\n if($c > $f)\n {\n $r = $c - $f;\n $s = floor($r / 2);\n $t = $d - $a;\n if(($p + $s) >= $t)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n $t = $d - $a;\n $u = $f - $c;\n $v = $t + $u;\n if($s >= $v)\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n }\n else\n {\n if($c > $f)\n {\n $w = $c - $f;\n $x = floor($w / 2);\n $t = $d - $a;\n $y = $e - $b;\n if($x >= ($t + $y))\n {\n print \"Yes\";\n }\n else\n {\n print \"No\";\n }\n }\n else\n {\n print \"No\";\n }\n }\n}\n?>"}, {"source_code": ""}, {"source_code": " 0 ? $d_a : 0;\n$m_b = $d_b > 0 ? $d_b : 0;\n$m_c = $d_c > 0 ? $d_c : 0;\n$m = $m_a + $m_b + $m_c;\n\n//echo $m_a . \" \" . $m_b . \" \" . $m_c . \"\\n\";\n\n$e_a = -$d_a > 0 ? -$d_a / 2: 0;\n$e_b = -$d_b > 0 ? -$d_b / 2: 0;\n$e_c = -$d_c > 0 ? -$d_c / 2: 0;\n$e = $e_a + $e_b + $e_c;\n\necho $e >= $m ? \"Yes\\n\" : \"No\\n\"\n\n?>"}, {"source_code": " 0 ? $d_a : 0;\n$m_b = $d_b > 0 ? $d_b : 0;\n$m_c = $d_c > 0 ? $d_c : 0;\n$m = $m_a + $m_b + $m_c;\n\n//echo $m_a . \" \" . $m_b . \" \" . $m_c . \"\\n\";\n\n$e_a = -$d_a > 0 ? -$d_a / 2: 0;\n$e_b = -$d_b > 0 ? -$d_b / 2: 0;\n$e_c = -$d_c > 0 ? -$d_c / 2: 0;\n$e = $e_a + $e_b + $e_c;\n\necho $e > $m ? \"Yes\\n\" : \"No\\n\"\n\n?>"}, {"source_code": ""}, {"source_code": " $b) return intdiv($a-$b, 2);\n else return $b-$a;\n }\n\n fscanf(STDIN, \"%d%d%d\", $a, $b, $c);\n fscanf(STDIN, \"%d%d%d\", $x, $y, $z);\n $ans = 0;\n $ans += gao(a, x);\n $ans += gao(b, y);\n $ans += gao(c, z);\n echo $ans >= 0 ? \"Yes\" : \"No\";\n\n?>"}, {"source_code": " $b) return ($a-$b-$a%$b)/2;\n else \n return $a-$b;\n }\n\n fscanf(STDIN, \"%d%d%d\", $a, $b, $c);\n fscanf(STDIN, \"%d%d%d\", $x, $y, $z);\n //echo $a, $b, $c;\n //echo $x, $y, $z;\n $ans = 0;\n $ans = $ans + gao($a, $x);\n $ans += gao($b, $y);\n $ans += gao($c, $z);\n echo $ans >= 0 ? \"Yes\" : \"No\";\n\n?>"}], "src_uid": "1db4ba9dc1000e26532bb73336cf12c3"} {"source_code": "0;$i--){\n if($newarr[$i]==$max) {\n $pos=$i;\n break;\n }\n}\nswitch($pos){\n case 2: $minus=0; break;\n case 1: $minus=1; break;\n case 0: $minus=2; break;\n}\necho $res-$minus;\n?>", "positive_code": [{"source_code": " $v){\n $x = ((ceil($v/2)-1)*3)+$k;\n if($x>$y)$y=$x;\n}\necho $y+30;\n?>"}, {"source_code": " 0)\n {\n $a -= 2;\n if($e == 0)\n {\n $d += 30;\n $e = 1;\n }\n else\n {\n $d += 1;\n }\n if(($a <= 0) && ($b <= 0) && ($c <= 0))\n {\n break;\n }\n }\n else\n {\n $d += 1;\n }\n if($b > 0)\n {\n $b -= 2;\n if($e == 0)\n {\n $d += 30;\n $e = 1;\n }\n else\n {\n $d += 1;\n }\n if(($a <= 0) && ($b <= 0) && ($c <= 0))\n {\n break;\n }\n }\n else\n {\n $d += 1;\n }\n if($c > 0)\n {\n $c -= 2;\n if($e == 0)\n {\n $d += 30;\n $e = 1;\n }\n else\n {\n $d += 1;\n }\n if(($a <= 0) && ($b <= 0) && ($c <= 0))\n {\n break;\n }\n }\n else\n {\n $d += 1;\n }\n }\n}\nprint $d;\n?>"}], "negative_code": [{"source_code": " $v){\n $x = ((ceil($v/2)-1)*3)+$k;\n if($x>$y)$y=$x;\n}\necho $y+30;\n?>"}], "src_uid": "a45daac108076102da54e07e1e2a37d7"} {"source_code": " $ch) {\n $ch = (int)$ch;\n if ($ch >= 5) {\n if ($i != 0 || $ch != 9) {\n $ch = 9 - $ch;\n }\n }\n $res .= $ch;\n}\n\necho \"$res\\n\";\n", "positive_code": [{"source_code": " $d))\n {\n $c = 1;\n $b[$x] = $d;\n }\n elseif(($b[$x] != 9) && ($b[$x] < $d))\n {\n $c = 1;\n }\n elseif($b[$x] == 9)\n {\n $b[$x] = $d;\n }\n}\nprint implode(\"\", $b);\n?>"}, {"source_code": " '4') {\n $str[$i] = (string) (9 - (int) $str[$i]);\n }\n}\n\nfor ($i=0; $i < $len; $i++) { \n if ($str[$i] !== '0') {\n break;\n } else {\n $str[$i] = '9';\n break;\n }\n}\n\necho $str;\n\n?>"}, {"source_code": "4){\n $t = (9 - $s[$i]);\n $result=$result.$t;\n } else $result.=$s[$i];\n}\n\nif ($result=='0') exit($s);\n\necho $result;"}], "negative_code": [{"source_code": " $c)\n {\n $b[$x] = $c;\n }\n}\n$d = implode(\"\", $b);\n$e = intval($d);\nif($e == 0)\n{\n print $a;\n}\nelse\n{\n print $e;\n}\n?>"}, {"source_code": " $c)\n {\n $b[$x] = $c;\n }\n}\nprint implode(\"\", $b);\n?>"}, {"source_code": " $d))\n {\n $c = 1;\n $b[$x] = $d;\n }\n elseif($b[$x] == 9)\n {\n $b[$x] = $d;\n }\n}\nprint implode(\"\", $b);\n?>"}, {"source_code": " $c)\n {\n $b[$x] = $c;\n }\n}\n$d = implode(\"\", $b);\n$e = intval($d);\nprint $e;\n?>"}, {"source_code": " $d))\n {\n $c = 1;\n $b[$x] = $d;\n }\n elseif(($b[$x] != 9) && ($b[$x] < $d))\n {\n $c = 1;\n }\n elseif($b[$x] == 9)\n {\n $b[$x] = $d;\n }\n}\nprint implode(\"\", $b);\n?>"}, {"source_code": " '4') {\n $str[$i] = (string) (9 - (int) $str[$i]);\n }\n}\n\nfor ($i=0; $i < $len; $i++) { \n if ($str[$i] !== '0') break;\n}\n\nif ($i == $len) {\n echo \"0\";\n} else {\n echo substr($str, $i);\n}\n\n?>"}, {"source_code": " '4') {\n $str[$i] = (string) (9 - (int) $str[$i]);\n }\n}\n\nfor ($i=0; $i < $len; $i++) { \n if ($str[$i] !== '0') break;\n}\n\nif ($i == $len) {\n echo $strold;\n} else {\n echo substr($str, $i);\n}\n\n?>"}, {"source_code": " '4') {\n $str[$i] = (string) (9 - (int) $str[$i]);\n }\n}\n\nfor ($i=0; $i < $len; $i++) { \n if ($str[$i] !== '0') {\n break;\n } else {\n $str[$i] = '9';\n }\n}\n\necho $str;\n\n?>"}, {"source_code": " '4') {\n $str[$i] = (string) (9 - (int) $str[$i]);\n }\n}\n\nfor ($i=0; $i < $len; $i++) { \n if ($str[$i] !== '0') break;\n}\n\nif ($i == $len) {\n echo \"0\";\n} else {\n echo substr($str, $i);\n}\n\n?>"}, {"source_code": " '4') {\n $str[$i] = (string) (9 - (int) $str[$i]);\n }\n}\n\nfor ($i=0; $i < $len; $i++) { \n if ($str[$i] !== '0') break;\n}\n\nif ($i == $len) {\n echo \"0\";\n} else {\n echo substr($str, $i - 1);\n}\n\n?>"}], "src_uid": "d5de5052b4e9bbdb5359ac6e05a18b61"} {"source_code": "$valor) {\n if ($valor == $inputArray[$sizeArray-2]) {\n $ban = true;\n break;\n }\n }\n if ($ban) {\n echo \"YES\";\n }else{\n echo \"NO\";\n }\n?>", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": " 0)\n{\n print \"YES\";\n}\nelse\n{\n print \"NO\";\n}\n?>"}], "negative_code": [{"source_code": " 0)\n{\n print \"YES\";\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": "$valor) {\n if ($valor == $inputArray[$sizeArray-2]) {\n $ban = true;\n break;\n }\n }\n if ($ban) {\n echo \"YES\";\n }else{\n echo \"NO\";\n }\n?>"}, {"source_code": "$valor) {\n if ($valor == $inputArray[$sizeArray-2]) {\n $ban = true;\n break;\n }\n }\n if ($ban) {\n echo \"YES\";\n }else{\n echo \"NO\";\n }\n?>"}, {"source_code": "$valor) {\n if ($valor == $inputArray[$sizeArray-2]) {\n $ban = true;\n break;\n }\n }\n if ($ban) {\n echo \"YES\";\n }else{\n echo \"NO\";\n }\n?>"}, {"source_code": "$valor) {\n if ($valor == $inputArray[$sizeArray-2]) {\n $ban = true;\n break;\n }\n }\n if ($ban) {\n echo \"YES\";\n }else{\n echo \"NO\";\n }\n?>"}], "src_uid": "dea7eb04e086a4c1b3924eff255b9648"} {"source_code": "0 && $n<=10) echo \"0\";\nif($n>=11 && $n<=19) echo \"4\";\nif($n==20) echo \"15\";\nif($n==21) echo \"4\";\nif($n>=22 && $n<=25) echo \"0\";\n?>", "positive_code": [{"source_code": " 1)\n {\n print \"15\";\n }\n}\n?>"}, {"source_code": " 21) {\n echo 0;\n} else {\n $accessPoints = array(1 => 4,\n 2 => 4,\n 3 => 4,\n 4 => 4,\n 5 => 4,\n 6 => 4,\n 7 => 4,\n 8 => 4,\n 9 => 4,\n 10 => 15,\n 11 => 4\n );\n $key = $points - 10;\n echo $accessPoints[$key];\n}\n?>"}, {"source_code": " 4,\n\t2 => 4,\n\t3 => 4,\n\t4 => 4,\n\t5 => 4,\n\t6 => 4,\n\t7 => 4,\n\t8 => 4,\n\t9 => 4,\n\t10 => 15,\n\t11 => 4,\n);\n\nif (isset($map[$num])) {\n\techo $map[$num];\n} else {\n\techo 0;\n}\n"}, {"source_code": "0 && $n<=10) echo \"0\";\nif($n>=11 && $n<=19) echo \"4\";\nif($n==20) echo \"15\";\nif($n==21) echo \"4\";\nif($n>=22 && $n<=25) echo \"0\";\n?>\n"}, {"source_code": "\n"}], "negative_code": [{"source_code": " 1)\n {\n print \"15\";\n }\n}\n?>"}, {"source_code": "0 && $n<=10) echo\"0\";\nif ($n>=11 && $n>=19) echo \"4\";\nif ($n==20 ) echo \"15\";\nif ($n==21) echo \"4\";\nif ($n>=22 && $n<=25) echo \"0\"; \n?>\n\n"}, {"source_code": "0 && $n<=10) echo\"0\";\nif (n>=11 && $n>=19) echo \"4\";\nif (n==20 ) echo \"15\";\nif ($n==21) echo \"4\";\nif ($n>=22 && $n<=24) echo \"0\"; \n?>\n"}, {"source_code": "0 && $n<=10) echo\"0\";\nif (n>=11 && n>=19) echo \"4\";\nif (n==20 ) echo \"15\";\nif ($n==21) echo \"4\";\nif ($n>=22 && $n<=24) echo \"0\"; \n?>\n"}, {"source_code": "0 && $n<=10) echo\"0\";\nif (n>=11 && $n>=19) echo \"4\";\nif (n==20 ) echo \"15\";\nif ($n==21) echo \"4\";\nif ($n>=22 && $n<=24) echo \"0\"; \n?>\n"}, {"source_code": "0 && $n<=10) echo\"0\";\nif ($n>=11 && $n>=19) echo \"4\";\nif ($n==20 ) echo \"15\";\nif ($n==21) echo \"4\";\nif ($n>=22 && $n<=24) echo \"0\"; \n?>\n"}, {"source_code": "\n"}], "src_uid": "5802f52caff6015f21b80872274ab16c"} {"source_code": " $y ? $y : $x;\r\n }\r\n public static function getMaxValue($x, $y) {\r\n return $x > $y ? $x : $y;\r\n }\r\n}", "positive_code": [{"source_code": " 16))\n {\n print \"NO\";\n }\n else\n {\n array_splice($b, 0, $c);\n if(count($b) == 0)\n {\n print \"NO\";\n }\n else\n {\n array_unshift($b, \" \");\n unset($b[0]);\n $g = array_search(\"/\", $b);\n if($g == 0) ////////// если нет слеша //////////\n {\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n if(($b[count($b)] == \".\") || ($b[1] == \".\"))\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if(($b[$x] == \".\") && ($b[$x + 1] == \".\"))\n {\n $j = 1;\n }\n elseif($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n }\n }\n }\n else ////////// если слеш есть //////////\n {\n array_splice($b, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n if(($b[count($b)] == \".\") || ($b[1] == \".\"))\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if(($b[$x] == \".\") && ($b[$x + 1] == \".\"))\n {\n $j = 1;\n }\n elseif($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n $b = array_slice($b, 0, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n $m = array_search(\"/\", $k);\n $l = array_slice($k, $m);\n for($x = 0; $x < count($l); $x++)\n {\n if($f3 == 0)\n {\n break;\n }\n else\n {\n $f3 = 0;\n for($y = 0; $y < count($e); $y++)\n {\n if($l[$x] == $e[$y])\n {\n $f3 = 1;\n break;\n }\n }\n }\n }\n if(($f3 == 0) || (count($l) > 16) || (count($l) == 0))\n {\n print \"NO\";\n }\n else\n { \n print \"YES\";\n }\n }\n }\n }\n }\n }\n }\n }\n}\n?>", "positive_code": [{"source_code": "';\n\n if (is_array($data)) {\n print_r($data);\n } else {\n var_dump($data);\n }\n\n if ($die) {\n die();\n }\n\n echo '';\n}\n\nfunction stdin() {\n $stdin = @fopen('data.txt', 'r');\n if (!$stdin) {\n $stdin = fopen('php://stdin', 'r');\n }\n\n return $stdin;\n}\n\nfunction g() {\n global $stdin;\n return trim(fgets($stdin));\n}\n\n$stdin = stdin();\n/****************************************************** Solving block *****************************************************/\n$id = g();\n\n$word = \"[a-z0-9_]{1,16}\";\n$correct = preg_match(\"/^$word@(($word\\.)*$word)(\\/$word)?$/i\", $id, $matches);\n$correct = $correct && strlen($matches[1]) && strlen($matches[1]) < 33;\n\necho $correct ? 'YES' : 'NO';\n\n?>"}], "negative_code": [{"source_code": " 16))\n {\n print \"NO\";\n }\n else\n {\n array_splice($b, 0, $c);\n if(count($b) == 0)\n {\n print \"NO\";\n }\n else\n {\n array_unshift($b, \" \");\n unset($b[0]);\n $g = array_search(\"/\", $b);\n if($g == 0)\n {\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n }\n }\n else\n {\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n $b = array_slice($b, 0, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n $m = array_search(\"/\", $k);\n $l = array_slice($k, $m);\n for($x = 0; $x < count($l); $x++)\n {\n if($f3 == 0)\n {\n break;\n }\n else\n {\n $f3 = 0;\n for($y = 0; $y < count($e); $y++)\n {\n if($l[$x] == $e[$y])\n {\n $f3 = 1;\n break;\n }\n }\n }\n }\n if(($f3 == 0) || (count($l) > 16))\n {\n print \"NO\";\n }\n else\n { \n print \"YES\";\n }\n }\n }\n }\n }\n }\n }\n}\n?>"}, {"source_code": " 16))\n {\n print \"NO\";\n }\n else\n {\n array_splice($b, 0, $c);\n if(count($b) == 0)\n {\n print \"NO\";\n }\n else\n {\n array_unshift($b, \" \");\n unset($b[0]);\n $g = array_search(\"/\", $b);\n if($g == 0) ////////// если нет слеша //////////\n {\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n if(($b[count($b)] == \".\") || ($b[1] == \".\"))\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if(($b[$x] == \".\") && ($b[$x + 1] == \".\"))\n {\n $j = 1;\n }\n elseif($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n }\n }\n }\n else ////////// если слеш есть //////////\n {\n array_splice($b, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n if(($b[count($b)] == \".\") || ($b[1] == \".\"))\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if(($b[$x] == \".\") && ($b[$x + 1] == \".\"))\n {\n $j = 1;\n }\n elseif($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n $b = array_slice($b, 0, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n $m = array_search(\"/\", $k);\n $l = array_slice($k, $m);\n for($x = 0; $x < count($l); $x++)\n {\n if($f3 == 0)\n {\n break;\n }\n else\n {\n $f3 = 0;\n for($y = 0; $y < count($e); $y++)\n {\n if($l[$x] == $e[$y])\n {\n $f3 = 1;\n break;\n }\n }\n }\n }\n if(($f3 == 0) || (count($l) > 16))\n {\n print \"NO\";\n }\n else\n { \n print \"YES\";\n }\n }\n }\n }\n }\n }\n }\n }\n}\n?>"}, {"source_code": " 16))\n {\n print \"NO\";\n }\n else\n {\n array_splice($b, 0, $c);\n if(count($b) == 0)\n {\n print \"NO\";\n }\n else\n {\n array_unshift($b, \" \");\n unset($b[0]);\n $g = array_search(\"/\", $b);\n if($g == 0) ////////// если нет слеша //////////\n {\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n if($b[count($b)] == \".\")\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if(($b[$x] == \".\") && ($b[$x + 1] == \".\"))\n {\n $j = 1;\n }\n elseif($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n }\n }\n }\n else ////////// если слеш есть //////////\n {\n array_splice($b, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n if($b[count($b)] == \".\")\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if(($b[$x] == \".\") && ($b[$x + 1] == \".\"))\n {\n $j = 1;\n }\n elseif($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n $b = array_slice($b, 0, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n $m = array_search(\"/\", $k);\n $l = array_slice($k, $m);\n for($x = 0; $x < count($l); $x++)\n {\n if($f3 == 0)\n {\n break;\n }\n else\n {\n $f3 = 0;\n for($y = 0; $y < count($e); $y++)\n {\n if($l[$x] == $e[$y])\n {\n $f3 = 1;\n break;\n }\n }\n }\n }\n if(($f3 == 0) || (count($l) > 16))\n {\n print \"NO\";\n }\n else\n { \n print \"YES\";\n }\n }\n }\n }\n }\n }\n }\n }\n}\n?>"}, {"source_code": " 16))\n {\n print \"NO\";\n }\n else\n {\n array_splice($b, 0, $c);\n if(count($b) == 0)\n {\n print \"NO\";\n }\n else\n {\n array_unshift($b, \" \");\n unset($b[0]);\n $g = array_search(\"/\", $b);\n if($g == 0)\n {\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n if($b[count($b)] == \".\")\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n }\n }\n }\n else\n {\n array_splice($b, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n if($b[count($b)] == \".\")\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n $b = array_slice($b, 0, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n $m = array_search(\"/\", $k);\n $l = array_slice($k, $m);\n for($x = 0; $x < count($l); $x++)\n {\n if($f3 == 0)\n {\n break;\n }\n else\n {\n $f3 = 0;\n for($y = 0; $y < count($e); $y++)\n {\n if($l[$x] == $e[$y])\n {\n $f3 = 1;\n break;\n }\n }\n }\n }\n if(($f3 == 0) || (count($l) > 16))\n {\n print \"NO\";\n }\n else\n { \n print \"YES\";\n }\n }\n }\n }\n }\n }\n }\n }\n}\n?>"}, {"source_code": " 16))\n {\n print \"NO\";\n }\n else\n {\n array_splice($b, 0, $c);\n if(count($b) == 0)\n {\n print \"NO\";\n }\n else\n {\n array_unshift($b, \" \");\n unset($b[0]);\n $g = array_search(\"/\", $b);\n if($g == 0)\n {\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n }\n }\n else\n {\n array_splice($b, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n $b = array_slice($b, 0, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n $m = array_search(\"/\", $k);\n $l = array_slice($k, $m);\n for($x = 0; $x < count($l); $x++)\n {\n if($f3 == 0)\n {\n break;\n }\n else\n {\n $f3 = 0;\n for($y = 0; $y < count($e); $y++)\n {\n if($l[$x] == $e[$y])\n {\n $f3 = 1;\n break;\n }\n }\n }\n }\n if(($f3 == 0) || (count($l) > 16))\n {\n print \"NO\";\n }\n else\n { \n print \"YES\";\n }\n }\n }\n }\n }\n }\n }\n}\n?>"}, {"source_code": " 16))\n {\n print \"NO\";\n }\n else\n {\n array_splice($b, 0, $c);\n if(count($b) == 0)\n {\n print \"NO\";\n }\n else\n {\n array_unshift($b, \" \");\n unset($b[0]);\n $g = array_search(\"/\", $b);\n if($g == 0)\n {\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n }\n }\n else\n {\n $b = array_slice($b, 0, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n $m = array_search(\"/\", $k);\n $l = array_slice($k, $m);\n for($x = 0; $x < count($l); $x++)\n {\n if($f3 == 0)\n {\n break;\n }\n else\n {\n $f3 = 0;\n for($y = 0; $y < count($e); $y++)\n {\n if($l[$x] == $e[$y])\n {\n $f3 = 1;\n break;\n }\n }\n }\n }\n if(($f3 == 0) || (count($l) > 16))\n {\n print \"NO\";\n }\n else\n { \n print \"YES\";\n }\n }\n }\n }\n}\n?>"}, {"source_code": " 16))\n {\n print \"NO\";\n }\n else\n {\n array_splice($b, 0, $c);\n array_unshift($b, \" \");\n unset($b[0]);\n $g = array_search(\"/\", $b);\n if($g == 0)\n {\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n }\n }\n else\n {\n $b = array_slice($b, 0, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n $m = array_search(\"/\", $k);\n $l = array_slice($k, $m);\n for($x = 0; $x < count($l); $x++)\n {\n if($f3 == 0)\n {\n break;\n }\n else\n {\n $f3 = 0;\n for($y = 0; $y < count($e); $y++)\n {\n if($l[$x] == $e[$y])\n {\n $f3 = 1;\n break;\n }\n }\n }\n }\n if(($f3 == 0) || (count($l) > 16))\n {\n print \"NO\";\n }\n else\n { \n print \"YES\";\n }\n }\n }\n}\n?>"}, {"source_code": " 16))\n {\n print \"NO\";\n }\n else\n {\n array_splice($b, 0, $c);\n array_unshift($b, \" \");\n unset($b[0]);\n $g = array_search(\"/\", $b);\n if($g == 0)\n {\n if((count($b) < 1) && (count($b) > 32))\n {\n print \"NO\";\n }\n else\n {\n for($x = 1; $x <= count($b); $x++)\n {\n if($f2 == 0)\n {\n break;\n }\n else\n {\n $f2 = 0;\n for($y = 0; $y < count($e2); $y++)\n {\n if($b[$x] == $e2[$y])\n {\n $f2 = 1;\n break;\n }\n }\n }\n }\n if($f2 == 0)\n {\n print \"NO\";\n }\n else\n {\n array_push($b, \".\");\n $j = 0;\n for($x = 1; $x <= count($b); $x++)\n {\n if($b[$x] == \".\")\n {\n $h = array_slice($b, 0, $x - 1);\n array_splice($b, 0, $x);\n $x = 0;\n array_unshift($b, \" \");\n unset($b[0]);\n if((count($h) < 1) && (count($h) > 16))\n {\n $j = 1;\n }\n }\n }\n if($j == 1)\n {\n print \"NO\";\n }\n else\n {\n print \"YES\";\n }\n }\n }\n }\n else\n {\n $b = array_slice($b, 0, $g - 1);\n array_unshift($b, \" \");\n unset($b[0]);\n $m = array_search(\"/\", $k);\n $l = array_slice($k, $m);\n for($x = 0; $x < count($l); $x++)\n {\n if($f3 == 0)\n {\n break;\n }\n else\n {\n $f3 = 0;\n for($y = 0; $y < count($e); $y++)\n {\n if($l[$x] == $e[$y])\n {\n $f3 = 1;\n break;\n }\n }\n }\n }\n if(($f3 == 0) || (count($l) > 16))\n {\n print \"NO\";\n }\n else\n { \n print \"YES\";\n }\n }\n }\n}\n?>"}, {"source_code": "';\n\n if (is_array($data)) {\n print_r($data);\n } else {\n var_dump($data);\n }\n\n if ($die) {\n die();\n }\n\n echo '';\n}\n\nfunction stdin() {\n $stdin = @fopen('data.txt', 'r');\n if (!$stdin) {\n $stdin = fopen('php://stdin', 'r');\n }\n\n return $stdin;\n}\n\nfunction g() {\n global $stdin;\n return trim(fgets($stdin));\n}\n\n$stdin = stdin();\n/****************************************************** Solving block *****************************************************/\n$id = g();\n\n$word = \"[a-z0-9_]{1,16}\";\n$correct = preg_match(\"/^$word@(($word\\.)+$word)(\\/$word)?$/i\", $id, $matches);\n$correct = $correct && strlen($matches[1]) && strlen($matches[1]) < 33;\n\necho $correct ? 'YES' : 'NO';\n\n?>"}], "src_uid": "2a68157e327f92415067f127feb31e24"} {"source_code": "= 60)\n{\n $f = $e % 60;\n $g = floor($e / 60);\n $h = $b + $f;\n if($h >= 60)\n {\n $i = $h % 60;\n $j = floor($h / 60);\n $a += ($g + $j);\n $b = 0;\n $b += $i;\n }\n else\n {\n $a += $g;\n $b += $f;\n }\n if(strlen($a) == 1)\n {\n $a = \"0\" . $a;\n }\n if(strlen($b) == 1)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\nelse\n{\n $b += $e;\n if($b >= 60)\n {\n $i = $b % 60;\n $j = floor($b / 60);\n $a += ($g + $j);\n $b = 0;\n $b += $i;\n }\n if(strlen($a) == 1)\n {\n $a = \"0\" . $a;\n }\n if(strlen($b) == 1)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\n?>", "positive_code": [{"source_code": "= 60)\n{\n $f = $e % 60;\n $g = floor($e / 60);\n $h = $b + $f;\n if($h >= 60)\n {\n $i = $h % 60;\n $j = floor($h / 60);\n $a += ($g + $j);\n $b = 0;\n $b += $i;\n }\n else\n {\n $a += $g;\n $b += $f;\n }\n if(strlen($a) == 1)\n {\n $a = \"0\" . $a;\n }\n if(strlen($b) == 1)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\nelse\n{\n $b += $e;\n if($b >= 60)\n {\n $i = $b % 60;\n $j = floor($b / 60);\n $a += ($g + $j);\n $b = 0;\n $b += $i;\n }\n if(strlen($a) == 1)\n {\n $a = \"0\" . $a;\n }\n if(strlen($b) == 1)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\n\n?>"}], "negative_code": [{"source_code": "= 60)\n{\n $f = $e % 60;\n $g = floor($e / 60);\n $a += $g;\n $b += $f;\n if($a < 10)\n {\n $a = \"0\" . $a;\n }\n if($b < 10)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\nelse\n{\n $b += $e;\n if($a < 10)\n {\n $a = \"0\" . $a;\n }\n if($b < 10)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\n?>"}, {"source_code": "= 60)\n{\n $f = $e % 60;\n $g = floor($e / 60);\n $a += $g;\n $b += $h;\n if($a < 10)\n {\n $a = \"0\" . $a;\n }\n if($b < 10)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\nelse\n{\n $b += $e;\n if($a < 10)\n {\n $a = \"0\" . $a;\n }\n if($b < 10)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\n?>"}, {"source_code": "= 60)\n{\n $f = $e % 60;\n $g = floor($e / 60);\n $h = $b + $f;\n if($h == 60)\n {\n $a += ($g + 1);\n $b = 0;\n }\n else\n {\n $a += $g;\n $b += $f;\n }\n if(strlen($a) == 1)\n {\n $a = \"0\" . $a;\n }\n if(strlen($b) == 1)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\nelse\n{\n $b += $e;\n if(strlen($a) == 1)\n {\n $a = \"0\" . $a;\n }\n if(strlen($b) == 1)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\n?>"}, {"source_code": "= 60)\n{\n $f = $e % 60;\n $g = floor($e / 60);\n $h = $b + $f;\n if($h == 60)\n {\n $a += ($g + 1);\n $b = 0;\n }\n else\n {\n $a += $g;\n $b += $f;\n }\n if($a < 10)\n {\n $a = \"0\" . $a;\n }\n if($b < 10)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\nelse\n{\n $b += $e;\n if($a < 10)\n {\n $a = \"0\" . $a;\n }\n if($b < 10)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\n?>"}, {"source_code": "list($a, $b) = explode(\":\", trim(fgets(STDIN)));\nlist($c, $d) = explode(\":\", trim(fgets(STDIN)));\n$e = (($c * 60 + $d) - ($a * 60 + $b)) / 2;\nif($e >= 60)\n{\n $f = $e % 60;\n $g = floor($e / 60);\n $h = $b + $f;\n if($h >= 60)\n {\n $i = $h % 60;\n $j = floor($h / 60);\n $a += ($g + $j);\n $b = 0;\n $b += $i;\n }\n else\n {\n $a += $g;\n $b += $f;\n }\n if(strlen($a) == 1)\n {\n $a = \"0\" . $a;\n }\n if(strlen($b) == 1)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}\nelse\n{\n $b += $e;\n if($b >= 60)\n {\n $i = $b % 60;\n $j = floor($b / 60);\n $a += ($g + $j);\n $b = 0;\n $b += $i;\n }\n if(strlen($a) == 1)\n {\n $a = \"0\" . $a;\n }\n if(strlen($b) == 1)\n {\n $b = \"0\" . $b;\n }\n print $a . \":\" . $b;\n}"}], "src_uid": "f7a32a8325ce97c4c50ce3a5c282ec50"} {"source_code": ""}], "negative_code": [], "src_uid": "00e90909a77ce9e22bb7cbf1285b0609"} {"source_code": "", "positive_code": [{"source_code": ""}], "negative_code": [], "src_uid": "b3b986fddc3770fed64b878fa42ab1bc"} {"source_code": "", "positive_code": [{"source_code": " $numberOfMeals){\n $numberOfMeals++;\n }\n } else {\n $resultTypeOfDevices[$typesOfDevices[$i]] = 1;\n }\n}\n$result = $numberOfMeals * $k * count($resultTypeOfDevices) - $n;\n\nprint($result);"}, {"source_code": ""}], "negative_code": [{"source_code": " $numberOfMeals){\n $numberOfMeals++;\n }\n } else {\n $resultTypeOfDevices[$typesOfDevices[$i]] = 1;\n }\n}\n$result = $numberOfMeals * $k * count($resultTypeOfDevices) - $n;\nprint($result);"}], "src_uid": "c03ff0bc6a8c4ce5372194e8ea18527f"} {"source_code": " 3) {\n for ($j=0; $j < 4 ; $j++) { \n unset($arr[$i+$j]);\n }\n break;\n }\n}\n\n$str = '';\nforeach ($arr as $key => $value) {\n $str .= $value;\n}\n\nif ($count > 3) {\n if ($str[0] === $str[1]) {\n echo \"Elephant\";\n } else {\n echo \"Bear\";\n }\n} else {\n echo \"Alien\";\n}\n\n?>", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": " $el){\n\t\tif ($el >= 4){\n\t\t\t$hasFoot = true;\n\t\t\tif ($el >= 5) $head = $k;\n\t\t\tif ($el == 6) $body = $k; \n\t\t}else{\n\t\t\tif ($el == 2){\n\t\t\t\t$head = $body = $k;\n\t\t\t}else{\n\t\t\t\tif ($head == 0) $head = $k;\n\t\t\t\telse $body = $k;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n\techo $hasFoot ? $body == $head ? 'Elephant' : 'Bear' : 'Alien';\n?>"}, {"source_code": "= 4) $k++;\n\tif($a[$i] == 2) $q++;\n}\nif($k && $q){\n\techo \"Elephant\";\n}else if($k)\n\techo \"Bear\";\nelse echo \"Alien\";\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": " $el){\n\t\tif ($el >= 4){\n\t\t\t$hasFoot = true;\n\t\t\tif ($el == 5) $head = $k;\n\t\t\tif ($el == 6) $body = $k; \n\t\t}else{\n\t\t\tif ($el == 2){\n\t\t\t\t$head = $body = $k;\n\t\t\t}else{\n\t\t\t\tif ($head == 0) $head = $k;\n\t\t\t\telse $body = $k;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n\techo $hasFoot ? $body == $head ? 'Elephant' : 'Bear' : 'Alien';\n?>"}, {"source_code": " 3) {\n for ($j=0; $j < 4 ; $j++) { \n unset($arr[$i+$j]);\n }\n break;\n }\n}\n\nif ($count > 3) {\n if ($arr[0] === $arr[1]) {\n echo \"Elephant\";\n } else {\n echo \"Bear\";\n }\n} else {\n echo \"Alien\";\n}\n\n?>"}], "src_uid": "43308fa25e8578fd9f25328e715d4dd6"} {"source_code": "", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "= strlen($hello) ? \"YES\" : \"NO\");\n\n?>"}, {"source_code": ""}, {"source_code": " 'e',\n 'h{1,}' => 'h',\n 'l{2,}' => 'll',\n 'o{1,}' => 'o',\n);\n$str = fgets(STDIN);\n$n = strlen($str);\n\nif (preg_match('/.*?h.*?e.*?l.*?l.*?o.*?/six', $str)) {\n $str = 'YES';\n} else {\n $str = 'NO';\n}\n\n\nfwrite(STDOUT, $str);"}, {"source_code": ""}, {"source_code": "\n\n"}, {"source_code": "\n\n"}, {"source_code": "\n\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": " 0){\n echo \"YES\";\n} else {\n echo \"NO\";\n}\n?>"}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "0) echo \"YES\";\nelse echo \"NO\";\n\n\n\n"}, {"source_code": " 0, \"e\" => 0, \"l\" => 0, \"o\" => 0);\n foreach ($parsed_chars as $pchar) {\n if ($pchar == 'h' && $got_h == 0) {\n //echo \"found first h\\n\";\n $got_h = 1;\n $got_e = 0;\n $got_l = 0;\n $got_l2 = 0;\n $got_o = 0;\n continue;\n }\n\n if ($pchar == 'e' && $got_h && !$got_e) {\n //echo \"found first e\\n\";\n $got_e = 1;\n continue;\n }\n\n if ($pchar == 'l' && $got_h && $got_e && !$got_l){\n //echo \"found first l\\n\";\n $got_l = 1;\n continue;\n }\n\n if ($pchar == 'l' && $got_h && $got_e && $got_l && !$got_l2) {\n //echo \"found second l\\n\";\n $got_l2 = 1;\n continue;\n }\n\n if ($pchar == 'o' && $got_h && $got_e && $got_l && $got_l2 && !$got_o) {\n //echo \"found first o\\n\";\n $got_o = 1;\n continue;\n }\n }\n\n if ($got_h && $got_e && $got_l && $got_l2 && $got_o) {\n echo \"YES\";\n }\n else {\n echo \"NO\";\n }\n}\n?>\n"}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "= strlen($word)) {\n \n return \"YES\";\n \n }else {\n \n return \"NO\";\n \n }\n\n}\n\necho func($input);\n\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": " 0){\n echo \"YES\";\n} else {\n echo \"NO\";\n}"}, {"source_code": ""}, {"source_code": "$count[$i+1]){\n \techo \"NO\";\n \tbreak;\n }\n else $cnt++;\n\n}\nif($cnt==4)\n\techo \"YES\";\n"}, {"source_code": "\n"}, {"source_code": " 0, \"e\" => 0, \"l\" => 0, \"o\" => 0);\n foreach ($parsed_chars as $pchar) {\n if ($pchar == 'h' && $got_h == 0) {\n //echo \"found first h\\n\";\n $got_h = 1;\n $got_e = 0;\n $got_l = 0;\n $got_l2 = 0;\n $got_o = 0;\n }\n\n if ($pchar == 'e' && $got_h && !$got_e) {\n //echo \"found first e\\n\";\n $got_e = 1;\n }\n\n if ($pchar == 'l' && $got_h && $got_e && !$got_l){\n //echo \"found first l\\n\";\n $got_l = 1;\n }\n\n if ($pchar == 'l' && $got_h && $got_e && $got_l && !$got_l2) {\n //echo \"found second l\\n\";\n $got_l2 = 1;\n }\n\n if ($pchar == 'o' && $got_h && $got_e && $got_l && $got_l2 && !$got_o) {\n //echo \"found first o\\n\";\n $got_o = 1;\n }\n }\n\n if ($got_h && $got_e && $got_l && $got_l2 && $got_o) {\n echo \"YES\";\n }\n else {\n echo \"NO\";\n }\n}\n?>\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "= 4) {\n\tprintf(\"YES\");\n}else{\n\tprintf(\"NO\");\n}"}, {"source_code": "= 4) {\n\tprintf(\"YES\");\n}else{\n\tprintf(\"NO\");\n}"}, {"source_code": "= 4) {\n\tprintf(\"YES\");\n}else{\n\tprintf(\"NO\");\n}"}, {"source_code": " 0) {\n $arr = str_split($str);\n $unique_arr = array_unique($arr);\n $unique_str = implode('', $unique_arr);\n if (preg_match('/helo/', $unique_str)) {\n echo \"YES\\n\";\n } else {\n echo \"NO\\n\";\n }\n}\n"}, {"source_code": " 'e',\n 'h{1,}' => 'h',\n 'l{2,}' => 'll',\n 'o{1,}' => 'o',\n);\n$str = fgets(STDIN);\nforeach ($_trans as $p => $r) {\n $str = preg_replace('/' . $p . '/i', $r, $str);\n}\nif (strpos($str, 'hello') !== false) {\n $str = 'YES';\n} else {\n $str = 'NO';\n}\nfwrite(STDOUT, $str);"}], "src_uid": "c5d19dc8f2478ee8d9cba8cc2e4cd838"} {"source_code": "\n", "positive_code": [{"source_code": " $day){\n if($minTimeS == $sumTime){\n echo $day[0] . ' ';\n continue;\n }else{\n if($minTimeS + ($day[1] - $day[0]) > $sumTime){\n echo ($day[0] + ($sumTime - $minTimeS)) . ' ';\n $minTimeS = $sumTime;\n continue;\n }\n $minTimeS += ($day[1] - $day[0]);\n echo $day[1] . ' ';\n }\n }\n}else{\n echo 'NO';\n die();\n}"}, {"source_code": "$sum||$r<$sum)\n\t\tprint \"NO\\n\";\n\telse\n\t{\n\t\tprint \"YES\\n\";\n\t\tfor($i=0; $i<$n; $i++)\n\t\t{\n\t\t\t$x=$dat[$i][0];\n\t\t\tif($tmp>0)\n\t\t\t{\n\t\t\t\t$y=min($tmp,$dat[$i][1]-$x);\n\t\t\t\t$x+=$y;\n\t\t\t\t$tmp-=$y;\n\t\t\t}\n\t\t\tprint $x.' ';\n\t\t}\n\t\tprint \"\\n\";\n\t}\n?>\n"}, {"source_code": " '',\n\t\t\"\\n\" => '',\n\t);\n\treturn strtr(fgets($f), $r);\n}\n\nfunction readNumString($f) {\n\treturn trim(fgets($f));\n}\n\nfunction stringToArray($str) {\n\treturn str_split($str);\n}\n\nfunction readNum($f, $is_int = false) {\n\t$v = readNumString($f);\n\treturn $is_int ? intval($v) : floatval($v);\n}\n\nfunction readStringExplode($f, $delimiter = ' ') {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = 'trim';\n\treturn array_map($callf, $return);\n}\n\nfunction readStringExplodeNum($f, $delimiter = ' ', $is_int = false) {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = $is_int ? 'intval' : 'floatval';\n\treturn array_map($callf, $return);\n}\n\n###### /IO ######\n\nfunction getAnswer($is_test = false, $f = false) {\n\tif ($is_test === false) {\n\t\t$f = STDIN;\n\t}\n\t/* begin body */\n\tlist($d, $sum) = readStringExplodeNum($f, ' ', true);\n\n\t$days = array();\n\t$canMin = $canMax = array();\n\tfor ($i = 0; $i < $d; $i++) {\n\t\tlist($canMin[$i], $canMax[$i]) = readStringExplodeNum($f, ' ', true);\n\t\t$days[$i] = $canMin[$i];\n\t}\n\n\n\t$_sum = array_sum($days);\n\tdo {\n\t\t$diff = $sum - $_sum;\n\t\tif ($diff < 0)\n\t\t\tbreak;\n\t\t$success = false;\n\t\tforeach ($days as $i => $cnt) {\n\t\t\t$minMaxDiff = $canMax[$i] - $canMin[$i];\n\t\t\tif ($cnt < $canMax[$i]) {\n\t\t\t\t$success = true;\n\t\t\t\t$days[$i]+=min($diff, $minMaxDiff);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!$success) {\n\t\t\tbreak;\n\t\t}\n\t\t$_sum = array_sum($days);\n\t} while ($_sum < $sum);\n\tif ($_sum != $sum) {\n\t\techo 'NO';\n\t} else {\n\t\techo 'YES' . \"\\r\\n\";\n\t\techo implode(\" \", $days);\n\t}\n\t/* / end body */\n}\n\nif (empty($is_test))\n\tgetAnswer();"}, {"source_code": "\n"}, {"source_code": " $max){print 'NO'; exit(0);}\n\nprint \"YES\\r\\n\";\n$diff = $sum - $min;\nfor($i=1;$i<=$d;$i++){\n $cur = $m[$i][0];\n if($diff > 0){\n if($diff <= ($m[$i][1] - $m[$i][0])){\n $cur += $diff;\n $diff = 0;\n }else{\n $cur = $m[$i][1];\n $diff -= ($m[$i][1] - $m[$i][0]);\n }\n }\n print $cur.' ';\n}\n\n?>"}, {"source_code": " $f))\n{\n print \"NO\";\n}\nelse\n{\n print \"YES\" . \"\\n\";\n if(array_sum($h) < $b)\n {\n $j = 0;\n for($x = 0; $x < count($h) * 10; $x++)\n {\n if(array_sum($h) < $b)\n {\n $h[$x] = $k[$x];\n $j++;\n }\n elseif(array_sum($h) > $b)\n {\n $h[$j] -= 1;\n }\n else\n {\n print implode(\" \", $h);\n break;\n }\n }\n }\n elseif(array_sum($h) > $b)\n {\n $j = 0;\n for($x = 0; $x < count($l) * 10; $x++)\n {\n if(array_sum($l) > $b)\n {\n $l[$x] = $i[$x];\n $j++;\n }\n elseif(array_sum($l) < $b)\n {\n $l[$j] += 1;\n }\n else\n {\n print implode(\" \", $l);\n break;\n }\n }\n }\n elseif(array_sum($h) == $b)\n {\n print implode(\" \", $h);\n }\n}\n?>"}], "negative_code": [{"source_code": "= $e[$x])\n {\n array_push($g, $f[$x]);\n array_push($i, $e[$x]);\n }\n}\nfor($x = 0; $x < count($g); $x++)\n{\n $b -= $g[$x];\n if($b > 0)\n {\n array_push($h, $g[$x]);\n }\n elseif($b == 0)\n {\n array_push($h, $g[$x]);\n $b = -1;\n break;\n }\n elseif($b < 0)\n {\n array_push($h, $g[$x] + $b);\n break;\n }\n}\nfor($y = $x + 1; $y < count($g); $y++)\n{\n if($i[$y] == 0)\n {\n array_push($h, $i[$y]);\n }\n}\nif(($b < 0) && (count($h) == $a))\n{\n print \"YES\" . \"\\n\" . implode(\" \", $h);\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": " $f))\n{\n print \"NO\";\n}\nelse\n{\n print \"YES\" . \"\\n\";\n if(array_sum($h) < $b)\n {\n $j = 0;\n for($x = 0; $x < count($h) * 10; $x++)\n {\n if(array_sum($h) < $b)\n {\n $h[$x] = $k[$x];\n $j++;\n }\n elseif(array_sum($h) > $b)\n {\n $h[$j] -= $j;\n }\n else\n {\n print implode(\" \", $h);\n break;\n }\n }\n }\n elseif(array_sum($h) > $b)\n {\n $j = 0;\n for($x = 0; $x < count($h) * 10; $x++)\n {\n if(array_sum($h) > $b)\n {\n $h[$x] = $i[$x];\n $j++;\n }\n elseif(array_sum($h) < $b)\n {\n $h[$j] += $j;\n }\n else\n {\n print implode(\" \", $h);\n break;\n }\n }\n }\n elseif(array_sum($h) == $b)\n {\n print implode(\" \", $h);\n }\n}\n?>"}, {"source_code": "= $e[$x])\n {\n array_push($g, $f[$x]);\n }\n}\nfor($x = 0; $x < count($g); $x++)\n{\n $b -= $g[$x];\n if($b > 0)\n {\n array_push($h, $g[$x]);\n }\n elseif($b == 0)\n {\n array_push($h, $g[$x]);\n $b = -1;\n break;\n }\n elseif($b < 0)\n {\n array_push($h, $g[$x] + $b);\n break;\n }\n}\nif($b < 0)\n{\n print \"YES\" . \"\\n\";\n}\nelse\n{\n print \"NO\";\n}\nif($b < 0)\n{\n print implode(\" \", $h);\n}\n?>"}, {"source_code": " $f))\n{\n print \"NO\";\n}\nelse\n{\n print \"YES\" . \"\\n\";\n if(array_sum($h) < $b)\n {\n $j = 0;\n for($x = 0; $x < count($h) * 10; $x++)\n {\n if(array_sum($h) < $b)\n {\n $h[$x] = $k[$x];\n $j++;\n }\n elseif(array_sum($h) > $b)\n {\n $h[$j] -= 1;\n }\n else\n {\n print implode(\" \", $h);\n break;\n }\n }\n }\n elseif(array_sum($h) > $b)\n {\n $j = 0;\n for($x = 0; $x < count($h) * 10; $x++)\n {\n if(array_sum($h) > $b)\n {\n $h[$x] = $i[$x];\n $j++;\n }\n elseif(array_sum($h) < $b)\n {\n $h[$j] += 1;\n }\n else\n {\n print implode(\" \", $h);\n break;\n }\n }\n }\n elseif(array_sum($h) == $b)\n {\n print implode(\" \", $h);\n }\n}\n?>"}, {"source_code": " $day){\n $minTimeS += ($day[1] - $day[0]);\n if($minTimeS < $sumTime){\n echo $day[0] . ' ';\n continue;\n }else{\n echo $day[1] . ' ';\n }\n }\n}else{\n echo \"YES \\n\";\n foreach ($days as $key => $day){\n echo $day[0] . ' ';\n }\n}"}, {"source_code": " $day){\n $minTimeS += ($day[1] - $day[0]);\n if($minTimeS < $sumTime){\n echo $day[0] . ' ';\n continue;\n }else{\n echo $day[1] . ' ';\n }\n }\n}else{\n echo 'NO';\n die();\n}"}, {"source_code": " $day){\n $minTimeS += ($day[1] - $day[0]);\n if($minTimeS < $sumTime){\n echo $day[0] . ' ';\n continue;\n }else{\n echo $day[1] . ' ';\n }\n }\n}else{\n echo \"YES\\n\";\n foreach ($days as $key => $day){\n echo $day[0] . ' ';\n }\n}"}, {"source_code": " '',\n\t\t\"\\n\" => '',\n\t);\n\treturn strtr(fgets($f), $r);\n}\n\nfunction readNumString($f) {\n\treturn trim(fgets($f));\n}\n\nfunction stringToArray($str) {\n\treturn str_split($str);\n}\n\nfunction readNum($f, $is_int = false) {\n\t$v = readNumString($f);\n\treturn $is_int ? intval($v) : floatval($v);\n}\n\nfunction readStringExplode($f, $delimiter = ' ') {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = 'trim';\n\treturn array_map($callf, $return);\n}\n\nfunction readStringExplodeNum($f, $delimiter = ' ', $is_int = false) {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = $is_int ? 'intval' : 'floatval';\n\treturn array_map($callf, $return);\n}\n\n###### /IO ######\n\nfunction getAnswer($is_test = false, $f = false) {\n\tif ($is_test === false) {\n\t\t$f = STDIN;\n\t}\n\t/* begin body */\n\tlist($d, $sum) = readStringExplodeNum($f, ' ', true);\n\n\t$days = array();\n\t$canMin = $canMax = array();\n\tfor ($i = 0; $i < $d; $i++) {\n\t\tlist($canMin[$i], $canMax[$i]) = readStringExplodeNum($f, ' ', true);\n\t\t$days[$i] = $canMin[$i];\n\t}\n\n\n\t$_sum = array_sum($days);\n\tdo {\n\t\t$diff = $sum - $_sum;\n\t\t$success = false;\n\t\tforeach ($days as $i => $cnt) {\n\t\t\t$minMaxDiff = $canMax[$i] - $canMin[$i];\n\t\t\tif ($cnt < $canMax[$i]) {\n\t\t\t\t$success = true;\n\t\t\t\t$days[$i]+=min($diff, $minMaxDiff);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!$success) {\n\t\t\tbreak;\n\t\t}\n\t\t$_sum = array_sum($days);\n\t} while ($_sum < $sum);\n\tif ($_sum != $sum) {\n\t\techo 'NO';\n\t} else {\n\t\techo 'YES' . \"\\r\\n\";\n\t\techo implode(\" \", $days);\n\t}\n\t/* / end body */\n}\n\nif (empty($is_test))\n\tgetAnswer();"}], "src_uid": "f48ff06e65b70f49eee3d7cba5a6aed0"} {"source_code": " $value) {\n if ($value != \"1\" && $value != \"4\") \n $condition = false;\n\n if (empty($currentSequence) || valid($currentSequence)) {\n $currentSequence = $currentSequence . $value;\n } elseif (strlen($currentSequence) >= 1) {\n $currentSequence = $value;\n } else {\n $condition = false;\n }\n\n if (!valid($currentSequence)) {\n $currentSequence = $value;\n if (!valid($currentSequence)) {\n $condition = false;\n }\n }\n}\n\necho $condition === true ? \"YES\\n\" : \"NO\\n\";\n\n", "positive_code": [{"source_code": ""}, {"source_code": " $number){\n\t\tif(!in_array($number, [1,4])){\n\t\t\treturn false;\n\t\t}\n\t\tif($number == 4){\n\t\t\tif($key == 0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif($numbers[$key-1] == 1){\n\t\t\t\tcontinue;\n\t\t\t}elseif($numbers[$key-1] == 4){\n\t\t\t\tif($numbers[$key-2] == 1)\n\t\t\t\t\tcontinue;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}\n\treturn true;\n}\nif(magicNumber($input)){\n\techo \"YES\";\n}else{\n\techo \"NO\";\n}"}, {"source_code": ""}, {"source_code": " 2) {\n\t\techo 'NO';\n\t\treturn;\n\t}\n\n\t$c = $line[$i];\n\tif ($c == 1) {\n\t\t$count4 = 0;\n\t\tcontinue;\n\t}\n\n\tif ($c == 4) {\n\t\t$count4++;\n\t\tcontinue;\n\t}\n\n\techo 'NO';\n\treturn;\n}\n\necho ($count4 > 2) ? 'NO' : 'YES';\n"}, {"source_code": "\n"}, {"source_code": " 0 && $x[$i - 1] == 1) continue;\n\t\t\t\tif ($i - 1 > 0 && $x[$i - 1] == 4 && $x[$i - 2] == 1) continue;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\n\n\t$input = trim(fgets(STDIN));\n\tif (check($input)) echo \"YES\";\n\telse echo \"NO\";\n\techo \"\\n\";\n\n\t\n\t\n?>\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n \t \t \t \t \t\t \t\t \t \t"}, {"source_code": ""}, {"source_code": "1 && (substr($n,$i-2,1) . substr($n,$i-1,1) . substr($n,$i,1)== \"444\")) //444\n {\n echo \"NO\";\n return;\n }\n\n\n}\n}\n\necho \"YES\";\n\n?>"}], "negative_code": [{"source_code": " 0 && $x[$i - 1] == 1) continue;\n\t\t\t\tif ($i - 1 > 0 && $x[$i - 1] == 4 && $x[$i - 2] == 1) continue;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\n\n\t$input = fgets(STDIN);\n\tif (check($input)) echo \"YES\";\n\telse echo \"NO\";\n\techo \"\\n\";\n\n\t\n\t\n?>"}, {"source_code": " 0 && $x[$i - 1] == 1) continue;\n\t\t\t\tif ($i - 1 > 0 && $x[$i - 1] == 4 && $x[$i] == 1) continue;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\n\n\t$input = fgets(STDIN);\n\tif (check($input)) echo \"YES\";\n\telse echo \"NO\";\n\techo \"\\n\";\n\n\t\n\t\n?>\n"}, {"source_code": ""}, {"source_code": " 0 && $x[$i - 1] == 1) continue;\n\t\t\t\tif ($i - 1 > 0 && $x[$i - 1] == 4 && $x[$i - 2] == 1) continue;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\n\n\t$input = fgets(STDIN);\n\tif (check($input)) echo \"YES\";\n\telse echo \"NO\";\n\techo \"\\n\";\n\n\t\n\t\n?>\n"}, {"source_code": " 0 && $x[$i - 1] == 1) continue;\n\t\t\t\tif ($i - 1 > 0 && $x[$i - 1] == 4 && $x[$i - 2] == 1) continue;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\n\n\t$input = fgets(STDIN);\n\tif (check($input)) echo \"YES\";\n\telse echo \"NO\";\n\techo \"\\n\";\n\n\t\n\t\n?>"}, {"source_code": " 0 && $x[$i - 1] == 1) continue;\n\t\t\t\tif ($i - 1 > 0 && $x[$i - 1] == 4 && $x[$i - 2] == 1) continue;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\n\n\t$input = fgets(STDIN);\n\tif (check($input)) echo \"YES\";\n\telse echo \"NO\";\n\techo \"\\n\";\n\n\t\n\t\n?>\n"}, {"source_code": " 0 && $x[$i - 1] == 1) continue;\n\t\t\t\tif ($i - 1 > 0 && $x[$i - 1] == 4 && $x[$i - 2] == 1) continue;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}\n\n\n\t\t$input = fgets(STDIN);\n\t\t$regex = '/^(1|14|144)+$/';\n\t\tif (preg_match($regex, $input)) echo \"YES\";\n\t\telse echo \"NO\";\n\t\techo \"\\n\";\n\t\n\t\n?>\n"}, {"source_code": "';\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n\n"}, {"source_code": "\n"}, {"source_code": "\n"}, {"source_code": "1 && substr($n,$i-1,1)==4 && substr($n,$i-2,1)==4) //444\n {\n echo \"NO\";\n return;\n }\n\n\n}\n}\n\necho \"YES\";\n\n?>"}, {"source_code": " $number){\n\t\tif(!in_array($number, [1,4])){\n\t\t\treturn false;\n\t\t}\n\t\tif($number == 4){\n\t\t\tif($numbers[$key-1] == 1){\n\t\t\t\tcontinue;\n\t\t\t}elseif($numbers[$key-1] == 4){\n\t\t\t\tif($numbers[$key-2] == 1)\n\t\t\t\t\tcontinue;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}\n\treturn true;\n}\nif(magicNumber($input)){\n\techo \"YES\";\n}else{\n\techo \"NO\";\n}"}], "src_uid": "3153cfddae27fbd817caaf2cb7a6a4b5"} {"source_code": "", "positive_code": [{"source_code": " 'zero', '1' => 'one', '2' => 'two', '3' => 'three', '4' => 'four', '5' => 'five', '6' => 'six', '7' => 'seven', '8' => 'eight', '9' => 'nine', '10' => 'ten', '11' => 'eleven', '12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', '18' => 'eighteen', '19' => 'nineteen', '20' => 'twenty', '30' => 'thirty', '40' => 'forty', '50' => 'fifty', '60' => 'sixty', '70' => 'seventy', '80' => 'eighty', '90' => 'ninety');\n// Если число меньше или равно 19\nif ($s <= 19) {\n\t$result = $numbers[$s];\n} else {\n\t// Проверяем второй символ введенного числа\n\tif($s[1]==0) {\n\t\t// Если 0, то выводим из массива\n\t\t$result = $numbers[$s];\n\t} else {\n\t\t// Если нет, то собираем число\n\t\t$first_number = $numbers[$s[0].'0'];\n\t\t$second_number = $numbers[$s[1]];\n\t\t$result = $first_number.'-'.$second_number;\n\t}\n}\nprint($result);\n?>"}, {"source_code": " \"zero\", 1 => \"one\", 2 => \"two\", 3 => \"three\", 4 => \"four\", 5 => \"five\", 6 => \"six\", 7 => \"seven\", 8 => \"eight\", 9 => \"nine\", 10 => \"ten\", 11 => \"eleven\", 12 => \"twelve\", 13 => \"thirteen\", 14 => \"fourteen\", 15 => \"fifteen\", 16 => \"sixteen\", 17 => \"seventeen\", 18 => \"eighteen\", 19 => \"nineteen\", 20 => \"twenty\", 30 => \"thirty\", 40 => \"forty\", 50 => \"fifty\", 60 => \"sixty\", 70 => \"seventy\", 80 => \"eighty\", 90 => \"ninety\");\n$c = array(2 => \"twenty-\", 3 => \"thirty-\", 4 => \"forty-\", 5 => \"fifty-\", 6 => \"sixty-\", 7 => \"seventy-\", 8 => \"eighty-\", 9 => \"ninety-\");\nif(($a <= 20) || ($a == 30) || ($a == 40) || ($a == 50) || ($a == 60) || ($a == 70) || ($a == 80) || ($a == 90))\n{\n print $b[$a];\n}\nelse\n{\n print $c[$a[0]] . $b[$a[1]];\n}\n?>"}, {"source_code": " 'one',\n 2 => 'two',\n 3 => 'three',\n 4 => 'four',\n 5 => 'five',\n 6 => 'six',\n 7 => 'seven',\n 8 => 'eight',\n 9 => 'nine',\n 10 => 'ten',\n 11 => 'eleven',\n 12 => 'twelve',\n 13 => 'thirteen',\n 15 => 'fifteen',\n 18 => 'eighteen',\n);\n\n$stringFirstNumbers = array(\n 1 => '',\n 2 => 'twenty',\n 3 => 'thirty',\n 4 => 'forty',\n 5 => 'fifty',\n 6 => 'sixty',\n 7 => 'seventy',\n 8 => 'eighty',\n 9 => 'ninety',\n);\n\nif ($number <= 13 || $number == 15 || $number == 18)\n echo $number == 0 ? 'zero' : $stringNumbers[$number];\n\nelse {\n $firstNumber = $number / 10;\n $secondNumber = $number % 10;\n\n if ((int)$firstNumber == 1) echo $stringNumbers[(int)$secondNumber].'teen';\n\n else echo $stringNumbers[(int)$secondNumber] ? $stringFirstNumbers[(int)$firstNumber].'-'.$stringNumbers[(int)$secondNumber] : $stringFirstNumbers[(int)$firstNumber];\n}"}], "negative_code": [{"source_code": " \"one\", 2 => \"two\", 3 => \"three\", 4 => \"four\", 5 => \"five\", 6 => \"six\", 7 => \"seven\", 8 => \"eight\", 9 => \"nine\", 10 => \"ten\", 11 => \"eleven\", 12 => \"twelve\", 13 => \"thirteen\", 14 => \"fourteen\", 15 => \"fifteen\", 16 => \"sixteen\", 17 => \"seventeen\", 18 => \"eighteen\", 19 => \"nineteen\", 20 => \"twenty\", 30 => \"thirty\", 40 => \"forty\", 50 => \"fifty\", 60 => \"sixty\", 70 => \"seventy\", 80 => \"eighty\", 90 => \"ninety\");\n$c = array(2 => \"twenty-\", 3 => \"thirty-\", 4 => \"forty-\", 5 => \"fifty-\", 6 => \"sixty-\", 7 => \"seventy-\", 8 => \"eighty-\", 9 => \"ninety-\");\nif(($a <= 20) || ($a == 30) || ($a == 40) || ($a == 50) || ($a == 60) || ($a == 70) || ($a == 80) || ($a == 90))\n{\n print $b[$a];\n}\nelseif($a == 0)\n{\n print \"zero\";\n}\nelse\n{\n print $c[$a[0]] . $b[$a[1]];\n}\n?>"}, {"source_code": " \"one\", 2 => \"two\", 3 => \"three\", 4 => \"four\", 5 => \"five\", 6 => \"six\", 7 => \"seven\", 8 => \"eight\", 9 => \"nine\", 10 => \"ten\", 11 => \"eleven\", 12 => \"twelve\", 13 => \"thirteen\", 14 => \"fourteen\", 15 => \"fifteen\", 16 => \"sixteen\", 17 => \"seventeen\", 18 => \"eighteen\", 19 => \"nineteen\", 20 => \"twenty\", 30 => \"thirty\", 40 => \"forty\", 50 => \"fifty\", 60 => \"sixty\", 70 => \"seventy\", 80 => \"eighty\", 90 => \"ninety\");\n$c = array(2 => \"twenty-\", 3 => \"thirty-\", 4 => \"forty-\", 5 => \"fifty-\", 6 => \"sixty-\", 7 => \"seventy-\", 8 => \"eighty-\", 9 => \"ninety-\");\nif(($a <= 20) || ($a == 30) || ($a == 40) || ($a == 50) || ($a == 60) || ($a == 70) || ($a == 80) || ($a == 90))\n{\n print $b[$a];\n}\nelseif($a == 0)\n{\n print \"zero\";\n}\nelse\n{\n print $c[$a[0]] . $b[$a[1]];\n}\n?>"}, {"source_code": " \"one\", 2 => \"two\", 3 => \"three\", 4 => \"four\", 5 => \"five\", 6 => \"six\", 7 => \"seven\", 8 => \"eight\", 9 => \"nine\", 10 => \"ten\", 11 => \"eleven\", 12 => \"twelve\", 13 => \"thirteen\", 14 => \"fourteen\", 15 => \"fifteen\", 16 => \"sixteen\", 17 => \"seventeen\", 18 => \"eighteen\", 19 => \"nineteen\", 20 => \"twenty\");\n$c = array(2 => \"twenty-\", 3 => \"thirty-\", 4 => \"forty-\", 5 => \"fifty-\", 6 => \"sixty-\", 7 => \"seventy-\", 8 => \"eighty-\", 9 => \"ninety-\");\nif($a <= 20)\n{\n print $b[$a];\n}\nelse\n{\n print $c[$a[0]] . $b[$a[1]];\n}\n?>"}, {"source_code": " 'one',\n 2 => 'two',\n 3 => 'three',\n 4 => 'four',\n 5 => 'five',\n 6 => 'six',\n 7 => 'seven',\n 8 => 'eight',\n 9 => 'nine',\n 10 => 'ten',\n 11 => 'eleven',\n 12 => 'twelve',\n 13 => 'thirteen',\n 15 => 'fifteen'\n);\n\n$stringFirstNumbers = array(\n 1 => '',\n 2 => 'twenty',\n 3 => 'thirty',\n 4 => 'forty',\n 5 => 'fifty',\n 6 => 'sixty',\n 7 => 'seventy',\n 8 => 'eighty',\n 9 => 'ninety',\n);\n\nif ($number <= 13 || $number == 15)\n echo $number == 0 ? 'zero' : $stringNumbers[$number];\n\nelse {\n $firstNumber = $number / 10;\n $secondNumber = $number % 10;\n\n if ((int)$firstNumber == 1) echo $stringNumbers[(int)$secondNumber].'teen';\n\n else echo $stringNumbers[(int)$secondNumber] ? $stringFirstNumbers[(int)$firstNumber].'-'.$stringNumbers[(int)$secondNumber] : $stringFirstNumbers[(int)$firstNumber];\n}"}, {"source_code": " 'one',\n 2 => 'two',\n 3 => 'three',\n 4 => 'four',\n 5 => 'five',\n 6 => 'six',\n 7 => 'seven',\n 8 => 'eight',\n 9 => 'nine',\n 10 => 'ten',\n 11 => 'eleven',\n 12 => 'twelve',\n 13 => 'thirteen',\n 15 => 'fifteen'\n);\n\n$stringFirstNumbers = array(\n 1 => '',\n 2 => 'twenty',\n 3 => 'thirty',\n 4 => 'forty',\n 5 => 'fifty',\n 6 => 'sixty',\n 7 => 'seventy',\n 8 => 'eighty',\n 9 => 'ninety',\n);\n\nif ($number <= 13 || $number === 15)\n echo $number == 0 ? 'zero' : $stringNumbers[$number];\n\nelse {\n $firstNumber = $number / 10;\n $secondNumber = $number % 10;\n\n if ((int)$firstNumber == 1) echo $stringNumbers[(int)$secondNumber].'teen';\n\n else echo $stringNumbers[(int)$secondNumber] ? $stringFirstNumbers[(int)$firstNumber].'-'.$stringNumbers[(int)$secondNumber] : $stringFirstNumbers[(int)$firstNumber];\n}"}, {"source_code": " 'one',\n 2 => 'two',\n 3 => 'three',\n 4 => 'four',\n 5 => 'five',\n 6 => 'six',\n 7 => 'seven',\n 8 => 'eight',\n 9 => 'nine',\n 10 => 'ten',\n 11 => 'eleven',\n 12 => 'twelve',\n 13 => 'thirteen',\n 15 => 'fifteen'\n);\n\n$stringFirstNumbers = array(\n 1 => '',\n 2 => 'twenty',\n 3 => 'thirty',\n 4 => 'forty',\n 5 => 'fifty',\n 6 => 'sixty',\n 7 => 'seventy',\n 8 => 'eighty',\n 9 => 'ninety',\n);\n\nif ($number <= 13 || $number === 15)\n echo $number == 0 ? 'zero' : $stringNumbers[$number];\n\nelse {\n $firstNumber = $number / 10;\n $secondNumber = $number % 10;\n\n if ((int)$firstNumber == 1) echo $stringNumbers[(int)$secondNumber].'teen';\n\n else echo $stringFirstNumbers[(int)$firstNumber].$stringNumbers[(int)$secondNumber];\n}"}, {"source_code": " 'one',\n 2 => 'two',\n 3 => 'three',\n 4 => 'four',\n 5 => 'five',\n 6 => 'six',\n 7 => 'seven',\n 8 => 'eight',\n 9 => 'nine',\n 10 => 'ten',\n 11 => 'eleven',\n 12 => 'twelve',\n 13 => 'thirteen',\n 15 => 'fifteen'\n);\n\n$stringFirstNumbers = array(\n 1 => '',\n 2 => 'twenty',\n 3 => 'thirty',\n 4 => 'forty',\n 5 => 'fifty',\n 6 => 'sixty',\n 7 => 'seventy',\n 8 => 'eighty',\n 9 => 'ninety',\n);\n\nif ($number <= 13 || $number === 15)\n echo $number == 0 ? 'zero' : $stringNumbers[$number];\n\nelse {\n $firstNumber = $number / 10;\n $secondNumber = $number % 10;\n\n if ((int)$firstNumber == 1) echo $stringNumbers[(int)$secondNumber].'teen';\n\n else echo $stringFirstNumbers[(int)$firstNumber].'-'.$stringNumbers[(int)$secondNumber];\n}"}, {"source_code": " 'zero', '1' => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => 'five', 6 => 'six', 7 => 'seven', '8' => 'eight', 9 => 'nine', 10 => 'ten', 11 => 'eleven', 12 => 'twelve', 13 => 'thirteen', 14 => 'fourteen', 15 => 'fifteen', 16 => 'sixteen', 17 => 'seventeen', 18 => 'eighteen', 19 => 'nineteen', 20 => 'twenty', 30 => 'thirty', 40 => 'forty', 50 => 'fifty', 60 => 'sixty', 70 => 'seventy', 80 => 'eighty', 90 => 'ninety');\n// Если число меньше или равно 19\nif ($s <= 19) {\n\t$result = $numbers[$s];\n} else {\n\t// Проверяем второй символ введенного числа\n\tif($s[1]==0) {\n\t\t// Если 0, то выводим из массива\n\t\t$result = $numbers[$s];\n\t} else {\n\t\t// Если нет, то собираем число\n\t\t$first_number = $numbers[$s[0].'0'];\n\t\t$second_number = $numbers[$s[1]];\n\t\t$result = $first_number.'-'.$second_number;\n\t}\n}\nprintf($result);\n?>"}], "src_uid": "a49ca177b2f1f9d5341462a38a25d8b7"} {"source_code": "", "positive_code": [{"source_code": "7){\n $coolxcnt++;\n break;\n }\n \n } \n } \n}\necho $coolxcnt;\n\n\n?>"}, {"source_code": "$b)\n echo $b-$a+1;\nelseif (($min>$a)&&($min<$b))\n echo $min - $a;\nelse \n echo 0;\n?>\n"}], "negative_code": [{"source_code": "$b)\n echo $b-$a;\nelseif (($min>$a)&&($min<$b))\n echo $min - $a;\nelse \n echo 0;\n?>"}, {"source_code": ""}], "src_uid": "63b9dc70e6ad83d89a487ffebe007b0a"} {"source_code": "", "positive_code": [{"source_code": ""}], "src_uid": "3eff6f044c028146bea5f0dfd2870d23"} {"source_code": "", "positive_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "= 'a' && $c <= 'z');\n }\n \n $s = trim(fgets(STDIN));\n \n if (islower($s[0])) {\n $char = ord($s[0]) + ord(\"A\") - ord(\"a\");\n $s[0] = chr($char);\n }\n \n echo $s;\n?>"}, {"source_code": ""}, {"source_code": "#!/usr/bin/php\n"}, {"source_code": "='a') $str[0] = chr(ord($str[0]) - 32);\necho $str;"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "96 && ord($a)<123) { $stri[0] = chr((ord($a)-32)); \n\t\t//for($i=0;$i<$n;$i++){echo $stri[$i];}\n\t\t}\n//echo ord($a);\n\necho $stri;\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": " $value) {\n $stdIn[$key] = (int)$value;\n }\n }\n\n return $stdIn;\n}\n\nfunction stdOut($output)\n{\n fwrite(STDOUT, $output);\n}\n\nfunction solve(): void\n{\n [$word] = getStdIn();\n stdOut(ucfirst($word));\n}\n\nsolve();\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": "= 97 )\n{\n $s[0] = strtoupper( $s[0] ) ;\n}\necho $s ;\n\nfwrite($stdout);\n\nfclose($stdin);\nfclose($stdout);\n\n?>"}, {"source_code": ""}, {"source_code": "= 97 && $oldOrd <= 122) {\n $newOrd = ord($str_chars[0]) - 32;\n $str_chars[0] = chr($newOrd);\n}\n\n$new_str = implode(\"\", $str_chars);\n\necho $new_str;\n\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "= 'a' && $s[0] <= 'z'){\n $s[0] = strtoupper($s[0]);\n }\n echo $s;\n echo \"\\n\";\n}"}, {"source_code": ""}, {"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": "= 'A' && $in[$x] <= 'Z') {\n\t\t\t$flag = false;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif ($flag) {\n\t\techo strtoupper(substr($in,0,1)).substr($in,1,$len-1);\n\t} else echo $in;"}, {"source_code": ""}, {"source_code": " $value) {\n $stdIn[$key] = (int)$value;\n }\n }\n\n return $stdIn;\n}\n\nfunction stdOut($output)\n{\n fwrite(STDOUT, $output);\n}\n\nfunction solve(): void\n{\n [$word] = getStdIn(true);\n stdOut(ucfirst($word));\n}\n\nsolve();\n"}, {"source_code": ""}], "src_uid": "29e0fc0c5c0e136ac8e58011c91397e4"} {"source_code": "= 0) && ($diffy >= 0)) {\n\t\techo \"Yes\"; return 0;\n\t}\n}\necho \"No\";", "positive_code": [{"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n \n if ($i<$length)\n {\n if ($min_x>$c_posx) $min_x=$c_posx;\n if ($min_y>$c_posy) $min_y=$c_posy;\n \n if ($max_x<$c_posx) $max_x=$c_posx;\n if ($max_y<$c_posy) $max_y=$c_posy;\n }\n \n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n$plav_x=$max_x-$min_x;\n$plav_y=$max_y-$min_y;\n\n\nif ($plav_x>$plav_y) $plav=$plav_x; else $plav=$plav_y;\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=abs($a)/abs($itog_x);\n$num_y_cycles=abs($b)/abs($itog_y);\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=ceil($num_cycles)-$plav;\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*($plav+1))\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n if ($c_posx==$a && $c_posy==$b && $plav==0) die('Yes');\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n //echo $current_word.' '.$c_posx.' '.$c_posy.'
';\n \n \n $i++;\n \n //if (($i % $length) == 0 && $i!=0) echo '
';\n \n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}], "negative_code": [{"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=abs($a)/abs($itog_x);\n$num_y_cycles=abs($b)/abs($itog_y);\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=$num_cycles-2;\n\n\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*3)\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}, {"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=$a/$itog_x;\n$num_y_cycles=$b/$itog_y;\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=$num_cycles-2;\n\n$c_posx=$itog_x*abs($go_iterations);\n$c_posy=$itog_y*abs($go_iterations);\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*3)\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}, {"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=abs($a)/abs($itog_x);\n$num_y_cycles=abs($b)/abs($itog_y);\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=ceil($num_cycles)-5;\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*7)\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n\n $i++;\n \n\n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}, {"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n \n if ($i<$length)\n {\n if ($min_x>$c_posx) $min_x=$c_posx;\n if ($min_y>$c_posy) $min_y=$c_posy;\n \n if ($max_x<$c_posx) $max_x=$c_posx;\n if ($max_y<$c_posy) $max_y=$c_posy;\n }\n \n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n$plav_x=$max_x-$min_x;\n$plav_y=$max_y-$min_y;\n\n\nif ($plav_x>$plav_y) $plav=$plav_x; else $plav=$plav_y;\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=abs($a)/abs($itog_x);\n$num_y_cycles=abs($b)/abs($itog_y);\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=ceil($num_cycles)-$plav;\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*($plav+1))\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n //echo $current_word.' '.$c_posx.' '.$c_posy.'
';\n \n \n $i++;\n \n //if (($i % $length) == 0 && $i!=0) echo '
';\n \n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}, {"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n if ($c_posx==$a && $c_posy==$b) die('Yes');\n if ($c_posx<$max_x || $c_posx>$max_y || $c_posy>$max_y || $c_posy<$max_x) die('No');\n\n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=$a/$itog_x;\n$num_y_cycles=$b/$itog_y;\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=$num_cycles-1;\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*2)\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}, {"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=$a/$itog_x;\n$num_y_cycles=$b/$itog_y;\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=$num_cycles-1;\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*2)\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}, {"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=$a/$itog_x;\n$num_y_cycles=$b/$itog_y;\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=$num_cycles-2;\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*3)\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}, {"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=$a/$itog_x;\n$num_y_cycles=$b/$itog_y;\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=$num_cycles-2;\nif ($go_iterations<0) $go_iterations=1;\n\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*3)\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}, {"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=abs($a)/abs($itog_x);\n$num_y_cycles=abs($b)/abs($itog_y);\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=ceil($num_cycles)-5;\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*3)\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n \n $i++;\n \n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}, {"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n \n if ($i<$length)\n {\n if ($min_x>$c_posx) $min_x=$c_posx;\n if ($min_y>$c_posy) $min_y=$c_posy;\n \n if ($max_x<$c_posx) $max_x=$c_posx;\n if ($max_y<$c_posy) $max_y=$c_posy;\n }\n \n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n$plav_x=$max_x-$min_x;\n$plav_y=$max_y-$min_y;\n\nif ($plav_x>$plav_y) $plav=$plav_x; else $plav=$plav_y;\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=abs($a)/abs($itog_x);\n$num_y_cycles=abs($b)/abs($itog_y);\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=ceil($num_cycles)-$plav;\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n//echo $num_cycles.' '.$itog_x.' '.$itog_y.'
';\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*($plav+1))\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n //echo $current_word.' '.$c_posx.' '.$c_posy.'
';\n \n \n $i++;\n \n //if (($i % $length) == 0 && $i!=0) echo '
';\n \n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}, {"source_code": "=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n if ($i==$length)\n {\n $change_x=$c_posx;\n $change_y=$c_posy;\n }\n if ($i==$length*2)\n {\n $change_x_2=$c_posx;\n $change_y_2=$c_posy;\n }\n $cur_pos++;\n}\n\n\n\n$itog_x=$change_x_2-$change_x;\n$itog_y=$change_y_2-$change_y;\n\n$num_x_cycles=abs($a)/abs($itog_x);\n$num_y_cycles=abs($b)/abs($itog_y);\n\nif ($num_x_cycles>$num_y_cycles) $num_cycles=$num_x_cycles; else $num_cycles=$num_y_cycles;\n\n$go_iterations=ceil($num_cycles)-2;\n\n$c_posx=$itog_x*$go_iterations;\n$c_posy=$itog_y*$go_iterations;\n\n$i=0;\n$cur_pos=0;\nwhile($i<$length*3)\n{\n if ($cur_pos>=$length) $cur_pos=0;\n $current_word=$path[$cur_pos];\n \n switch ($current_word)\n {\n case 'U':\n $c_posy=$c_posy+1;\n break;\n case 'D':\n $c_posy=$c_posy-1;\n break;\n case 'L':\n $c_posx=$c_posx-1;\n break;\n case 'R':\n $c_posx=$c_posx+1;\n break;\n }\n $i++;\n $cur_pos++;\n if ($c_posx==$a && $c_posy==$b) die('Yes');\n}\ndie('No');\n?>"}], "src_uid": "5d6212e28c7942e9ff4d096938b782bf"} {"source_code": "", "positive_code": [{"source_code": " ($k+1)/2 * $k+1) {$r = -1; }\n else \n {\n while(($l-$r)<0)\n {\n $mid = floor(($l + $r ) / 2); \n //$Mmid = (($mid*($mid+1)/2)-$mid +1) ; \n $Mmid = ($k+$k -$mid +1)/2 *$mid ; \n if ($n <= $Mmid)\n {\n $r = $mid; \n }\n else\n {\n $l = $mid+1; \n } \n } \n }\n if($n==$k+1) $r = 1;\n if($n==1) $r = 0;\n // echo $l.PHP_EOL.$r.PHP_EOL;\n\n\n\n\n\n\n echo $r;\n "}, {"source_code": ""}, {"source_code": ""}, {"source_code": " ($k+1)/2 * $k+1) {$r = -1; }\n else \n {\n while(($l-$r)<0)\n {\n $mid = floor(($l + $r ) / 2); \n //$Mmid = (($mid*($mid+1)/2)-$mid +1) ; \n $Mmid = ($k+$k -$mid +1)/2 *$mid ; \n if ($n <= $Mmid)\n {\n $r = $mid; \n }\n else\n {\n $l = $mid+1; \n } \n } \n }\n if($n==$k+1) $r = 1;\n // echo $l.PHP_EOL.$r.PHP_EOL;\n\nif($n == 499999999500000000) $r = 999999998;\n echo $r;"}, {"source_code": "= $s[1])echo \"-1\"; else echo $t;}\nelse \n{\n echo \"1\";\n}\n"}, {"source_code": " ($k+1)/2 * $k+1) {$r = -1; }\n else \n {\n while(($l-$r)<0)\n {\n $mid = floor(($l + $r ) / 2); \n //$Mmid = (($mid*($mid+1)/2)-$mid +1) ; \n $Mmid = ($k+$k -$mid +1)/2 *$mid ; \n if ($n <= $Mmid)\n {\n $r = $mid; \n }\n else\n {\n $l = $mid+1; \n } \n } \n }\n if($n==$k+1) $r = 1;\n // echo $l.PHP_EOL.$r.PHP_EOL;\n\n\n\n\n\n\n echo $r;\n "}, {"source_code": " (($k*($k+1)/2)-$k +1)) {$r = -1;}\n \n else \n {\n while($l<$r)\n {\n $mid = $l + ($r - $l) / 2;\n if ($n <= $mid)\n {\n $r = $mid;\n }\n else\n {\n $l = $mid + 1;\n }\n }\n \n }\n if($n==$k) $r = 1;\n echo $r;"}, {"source_code": " ceil(($k*($k+1)/2)-$k +1)) {$r = -1;}\n \n else \n {\n while($l<$r)\n {\n $mid = ceil($l + ($r - $l) / 2);\n if ($n <= $mid)\n {\n $r = $mid;\n }\n else\n {\n $l = $mid + 1;\n }\n }\n \n }\n if($n==$k) $r = 1;\n if($n == 499999998500000001 )$r = 999955279;\n\n echo $r;"}, {"source_code": " ($k+1)/2 * $k+1) {$r = -1; }\n else \n {\n while(($l-$r)<0)\n {\n $mid = floor(($l + $r ) / 2); \n //$Mmid = (($mid*($mid+1)/2)-$mid +1) ; \n $Mmid = ($k+$k -$mid +1)/2 *$mid ; \n if ($n <= $Mmid)\n {\n $r = $mid; \n }\n else\n {\n $l = $mid +1; \n } \n } \n }\n if($n==$k+1) $r = 1;\n\n echo $r;"}, {"source_code": " ($k+$k +1)/2 *$k ) {$r = -1;}\n else \n {\n while(($l-$r)<0)\n {\n $mid = floor(($l + $r ) / 2); \n //$Mmid = (($mid*($mid+1)/2)-$mid +1) ; \n $Mmid = ($k+$k -$mid +1)/2 *$mid ; \n if ($n <= $Mmid)\n {\n $r = $mid; \n }\n else\n {\n $l = $mid +1; \n } \n } \n }\n if($n==$k+1) $r = 1;\n\n echo $r;"}, {"source_code": " ($k+1)/2 * $k+1) {$r = -1; }\n else \n {\n while(($l-$r)<0)\n {\n $mid = floor(($l + $r ) / 2); \n //$Mmid = (($mid*($mid+1)/2)-$mid +1) ; \n $Mmid = ($k+$k -$mid +1)/2 *$mid ; \n if ($n <= $Mmid)\n {\n $r = $mid; \n }\n else\n {\n $l = $mid+1; \n } \n } \n }\n if($n==$k+1) $r = 1;\n // echo $l.PHP_EOL.$r.PHP_EOL;\n\n\n\n\n\n\n echo $r;\n "}, {"source_code": " ($k+1)/2 * $k+1) {$r = -1; }\n else \n {\n while(($l-$r)<0)\n {\n $mid = floor(($l + $r ) / 2); \n //$Mmid = (($mid*($mid+1)/2)-$mid +1) ; \n $Mmid = ($k+$k -$mid +1)/2 *$mid ; \n if ($n <= $Mmid)\n {\n $r = $mid; \n }\n else\n {\n $l = $mid+1; \n } \n } \n }\n if($n==$k+1) $r = 1;\n // echo $l.PHP_EOL.$r.PHP_EOL;\n\n\n\n\nif($n == 499999999500000002) $r = -1;\nif($n == 499999999500000001) $r = 999999999;\nif($n == 499999999500000000) $r = 999999998;\n\n echo $r;\n "}, {"source_code": " ceil(($k*($k+1)/2)-$k +1)) {$r = -1;}\n else \n {\n while(($l-$r)<0)\n {\n $mid = floor(($l + $r ) / 2); \n //$Mmid = (($mid*($mid+1)/2)-$mid +1) ; \n $Mmid = ($k+$k -$mid +1)/2 *$mid ; \n if ($n <= $Mmid)\n {\n $r = $mid; \n }\n else\n {\n $l = $mid +1; \n } \n } \n }\n if($n==$k) $r = 1;\n \n echo $r;"}], "src_uid": "83bcfe32db302fbae18e8a95d89cf411"} {"source_code": " $b)\n {\n $a -= bcmul($b, $g);\n }\n else\n {\n $b -= bcmul($a, $g);\n }\n } \n}\nprint $c;\n?>", "positive_code": [{"source_code": ""}], "negative_code": [], "src_uid": "ce698a0eb3f5b82de58feb177ce43b83"} {"source_code": "$b)\n $a -= $b;\n else\n $b -= $a;\n return $a;\n}\nfunction lite($a,$b,$n){\n $f=nod($a,$n);\n if (($n-$f)==0) return 0;\n $f1=nod($b,$n-$f);\n if (($n-$f-$f1)==0) return 1;\n return lite($a,$b,$n-=($f+$f1));\n} \nprint lite($a, $b, $n);\n?>", "positive_code": [{"source_code": ""}, {"source_code": "=0){\n $a = $n;\n $b = $k[$cur];\n if ($a > $b) $a ^= $b ^= $a ^= $b;\n for($i = $b; $i >= 1; $i--) \n if(($b%$i==0)&&($a%$i==0)) {$turn = $i; break;}\n if($turn<=$n) {$n-=$turn; $cur ^= 1;} else break; \n }\n $cur ^= 1;\n echo $cur;\n?>"}, {"source_code": " $b && $a > 0) {\n $a -= $b;\n }\n if($a === 0) {\n return $b;\n }\n }\n}\n\n$i = explode(' ',trim(fgets(STDIN)));\n$a = intval($i[0]);\n$b = intval($i[1]);\n$n = intval($i[2]);\n$cur = 1;\nwhile(1) {\n if( ($cur%2) !== 0 ) {\n $n -= gcd($a, $n);\n }\n else {\n $n -= gcd($b, $n);\n }\n if($n < 0) {\n break;\n }\n else {\n $cur++;\n if($n === 0) {\n break;\n }\n }\n}\necho( ($cur%2)!==0?'1':'0' );\n"}, {"source_code": " 0)\n{\n while ($k != $n)\n {\n if ($k > $n)\n $k -= $n;\n else\n $n -= $k;\n }\n \n if ($sem)\n {\n $sem = false;\n $k = $b;\n }\n else\n {\n $sem = true;\n $k = $a;\n } \n \n $n = $nn - $n; \n $nn = $n; \n if ($n <= 0)\n {\n switch ($sem)\n {\n case true:\n echo \"1\";\n break;\n case false:\n echo \"0\";\n break;\n }\n break;\n } \n}\n?>"}, {"source_code": " 0)) {\n $n -= $gcd;\n $flag = $flag ^ true;\n } else {\n break;\n } \n}\n\nif ($flag) {\n echo '1';\n} else {\n echo '0';\n}\n\n?>"}, {"source_code": "$a) {$tmp=$b; $b=$a; $a=$tmp; unset($tmp);}\n if ($b==0) $b=$a;\n while ($a%$b>0){\n $r=$a%$b;\n $a=$b;\n $b=$r; \n }\n return $b; \n }\n //\n \n while (1==1){\n $nod=gcd($a,$n);\n $n=$n-$nod;\n if ($n<0) {print(1); break;}\n \n $nod=gcd($b,$n);\n $n=$n-$nod;\n if ($n<0) {print(0); break;}\n }\n \n?>"}, {"source_code": " 0) {\n if(!$player) {\n $c = $a;\n } else {\n $c = $b;\n }\n $n -= NWD($c, $n);\n $player = !$player;\n}\n\necho intVal(!$player);\n\n"}, {"source_code": " $j) return gcd($i % $j, $j); else return gcd($i, $j % $i);\n}\n\nlist($a, $b, $n) = explode(' ',trim(fgets(STDIN)));\n\n$r = 1;\nwhile($n > 0){\n if($r == 1) $n -= gcd($n, $a); else $n -= gcd($n, $b);\n $r = 1 - $r;\n}\n\nprint $r;\n\n?>"}, {"source_code": ""}, {"source_code": " 0)\n{\n while ($k != $n)\n {\n if ($k > $n)\n $k -= $n;\n else\n $n -= $k;\n }\n \n if ($sem)\n {\n $sem = false;\n $k = $b;\n $m++;\n }\n else\n {\n $sem = true;\n $k = $a;\n $l++;\n } \n \n $n = $nn - $n; \n $nn = $n; \n}\nif ($k == max($k, $l))\n echo \"0\";\nelse\n echo \"1\";\n?>"}, {"source_code": ""}, {"source_code": " 0)) {\n $n -= $gcd;\n $flag = $flag ^ true;\n } else {\n break;\n } \n}\n\nif ($flag) {\n echo '1';\n} else {\n echo '0';\n}\n\n?>"}, {"source_code": ""}, {"source_code": ""}], "src_uid": "0bd6fbb6b0a2e7e5f080a70553149ac2"} {"source_code": "1,'.'=>-1);\n$s = '';\nfor($i =0;$i<4;$i++)\n\t$s .= trim(fgets(STDIN));\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i*4+$j]]+$m[$s[$i*4+$j+1]]+$m[$s[($i+1)*4+$j]]+$m[$s[($i+1)*4+$j+1]])>=2&&$a = \"YES\")\n\t\t\tbreak 2;\necho $a;\nreturn;\n?>", "positive_code": [{"source_code": ""}, {"source_code": "= 3) || ($p >= 3))\n {\n $r = 1;\n break;\n }\n else\n {\n $o = 0;\n $p = 0;\n }\n}\nif($r == 1)\n{\n print \"YES\";\n}\nelse\n{\n print \"NO\";\n}\n?>"}, {"source_code": "= 3|| $tmp <= 1){\n\t\t\t\t$ok=true;\n\t\t\t//\tprint(\"yes\");\n\t\t\t}\n\t\t}\n\t//\tprint_r($pre);\n\t\tfor ($i=0;$i<$sz;++$i) $pre[$i] = $cur[$i];\n\t//\tprint_r($pre);\n\t}\n\n\techo($ok==true ? \"YES\":\"NO\");\n?>\n"}, {"source_code": ""}, {"source_code": "= 3 || ($a[$i][$j] == '.') + ($a[$i+1][$j] == '.') + ($a[$i][$j+1] == '.') + ($a[$i+1][$j+1] == '.') >= 3) {\n\t\t\t\t$chk = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\techo ($chk) ? 'YES' : 'NO';\n?> "}], "negative_code": [{"source_code": "\n"}, {"source_code": "= 3|| $tmp <= 1){\n\t\t\t\t$ok=true;\n\t\t\t\tprint(\"yes\");\n\t\t\t}\n\t\t}\n\t\tfor ($i=0;$i<$sz && $ok == false;++$i) $pre[i] = $cur[i];\n\t}\n\n\techo($ok==true ? \"YES\":\"NO\");\n?>\n"}, {"source_code": "= 3|| $tmp <= 1){\n\t\t\t\t$ok=true;\n\t\t//\t\tprint(\"yes\");\n\t\t\t}\n\t\t}\n\t\tfor ($i=0;$i<$sz && $ok == false;++$i) $pre[i] = $cur[i];\n\t}\n\n\techo($ok==true ? \"YES\":\"NO\");\n?>\n"}, {"source_code": "= 3) {\n\t\t\t\t$chk = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\techo ($chk) ? 'YES' : 'NO';\n?> "}, {"source_code": " 2)\n echo \"YES\\n\";\n else echo \"NO\\n\";\n?>"}, {"source_code": ""}, {"source_code": "1,'.'=>-1);\n$a = \"NO\";\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i*4+$j]]+$m[$s[$i*4+$j+1]]+$m[$s[($i+1)*4+$j]]+$m[$s[($i+1)*4+$j+1]])==2&&$a = \"YES\")\n\t\t\tbreak 2;\n\necho $a;\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\nfor($i=0;$i<3;$i++)\n for($j=0;$j<3;$j++)\n if(abs($m[$s[$i][$j]]+$m[$s[$i][$j+1]]+$m[$s[$i+1][$j]]+$m[$s[$i+1][$j+1]])==2){\n echo \"YES\";\n return;\n }\necho \"NO\";\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\n$a = \"NO\";\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i*4+$j]]+$m[$s[$i*4+$j+1]]+$m[$s[($i+1)*4+$j]]+$m[$s[($i+1)*4+$j+1]])==2){\n\t\t\t$a = \"YES\";\n\t\t\tbreak 2;\n\t\t}\necho $a;\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i][$j]]+$m[$s[$i][$j+1]]+$m[$s[$i+1][$j]]+$m[$s[$i+1][$j+1]])==2){\n\t\t\techo \"YES\";\n\t\t\treturn;\n\t\t}\necho \"NO\";\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i][$j]]+$m[$s[$i][$j+1]]+$m[$s[$i+1][$j]]+$m[$s[$i+1][$j+1]])==2){\n\t\t\techo \"YES\";\n\t\t\treturn;\n\t\t}\necho \"NO\";\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i][$j]]+$m[$s[$i][$j+1]]+$m[$s[$i+1][$j]]+$m[$s[$i+1][$j+1]])==2){\n\t\t\techo \"YES\";\n\t\t\treturn;\n\t\t}\necho \"NO\";\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\n$a = \"NO\";\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i*4+$j]]+$m[$s[$i*4+$j+1]]+$m[$s[($i+1)*4+$j]]+$m[$s[($i+1)*4+$j+1]])==2){\n\t\t\t$a = \"YES\";\n\t\t\tbreak 2;\n\t\t}\necho $a;\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\n$a = \"NO\";\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i*4+$j]]+$m[$s[$i*4+$j+1]]+$m[$s[($i+1)*4+$j]]+$m[$s[($i+1)*4+$j+1]])==2){\n\t\t\t$a = \"YES\";\n\t\t\tbreak 2;\n\t\t}\necho $a;\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\n$a = \"NO\";\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i*4+$j]]+$m[$s[$i*4+$j+1]]+$m[$s[$i*5+$j]]+$m[$s[$i*5+$j+1]])==2){\n\t\t\t$a = \"YES\";\n\t\t\tbreak 2;\n\t\t}\necho $a;\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\n$a = \"NO\";\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i*4+$j]]+$m[$s[$i*4+$j+1]]+$m[$s[$i*5+$j]]+$m[$s[$i*5+$j+1]])==2){\n\t\t\t$a = \"YES\";\n\t\t\tbreak 2;\n\t\t}\necho $a;\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\n$a = \"NO\";\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i*4+$j]]+$m[$s[$i*4+$j+1]]+$m[$s[($i+1)*4+$j]]+$m[$s[($i+1)*4+$j+1]])==2){\n\t\t\t$a = \"YES\";\n\t\t\tbreak 2;\n\t\t}\necho $a;\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\n$a = \"NO\";\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i*4+$j]]+$m[$s[$i*4+$j+1]]+$m[$s[($i+1)*4+$j]]+$m[$s[($i+1)*4+$j+1]])==2&&$a = \"YES\")\n\t\t\tbreak 2;\n\necho $a;\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i][$j]]+$m[$s[$i][$j+1]]+$m[$s[$i+1][$j]]+$m[$s[$i+1][$j+1]])==2){\n\t\t\techo \"YES\";\n\t\t\treturn;\n\t\t}\necho \"NO\";\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\n$s = '';\nfor($i =0;$i<4;$i++)\n\t$s .= trim(fgets(STDIN));\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i*4+$j]]+$m[$s[$i*4+$j+1]]+$m[$s[($i+1)*4+$j]]+$m[$s[($i+1)*4+$j+1]])==2&&$a = \"YES\")\n\t\t\tbreak 2;\necho $a;\nreturn;\n?>"}, {"source_code": "1,'.'=>-1);\nfor($i=0;$i<3;$i++)\n\tfor($j=0;$j<3;$j++)\n\t\tif(abs($m[$s[$i][$j]]+$m[$s[$i][$j+1]]+$m[$s[$i+1][$j]]+$m[$s[$i+1][$j+1]])==2){\n\t\t\techo \"YES\";\n\t\t\treturn;\n\t\t}\necho \"NO\";\nreturn;\n?>"}], "src_uid": "01b145e798bbdf0ca2ecc383676d79f3"} {"source_code": "", "positive_code": [{"source_code": "8) exit;\n\nforeach($names as $k=>$v){\nif(strlen($v)==$num){\n$temp=0;\nfor($i=0;$i<=strlen($str)-1;$i++){\n\nif($v[$i]==$str[$i] || $str[$i]=='.'){\n$temp++;\n}\n\n}\nif($temp==$num){$rezult=$v;}\n}\n}\n\nprint $rezult;\n?>"}, {"source_code": " 8) exit;\n\n$letter = trim(fgets(STDIN));\n\nif ($len !== strlen($letter)) exit;\n\n$pokemons = array(\"vaporeon\", \"jolteon\", \"flareon\", \"espeon\", \"umbreon\", \"leafeon\", \"glaceon\", \"sylveon\");\n\n$letters = array();\nfor ($i=0; $i<$len; $i++)\n{\n if ($letter{$i} === '.') continue;\n $letters[$i] = $letter{$i};\n}\n\n$result = '';\nforeach ($pokemons as $pokemon)\n{\n if (strlen($pokemon) !== $len) continue;\n\n $find = TRUE;\n foreach ($letters as $k => $v)\n if ($pokemon{$k} !== $v)\n $find = FALSE;\n\n if ($find)\n {\n $result = $pokemon;\n break;\n }\n}\n\nprint $result;\n"}, {"source_code": "\"vaporeon\",\n\t\t 1=>\"jolteon\",\n\t\t 2=>\"flareon\", \n\t\t 3=>\"espeon\", \n\t\t 4=>\"umbreon\",\n\t\t 5=>\"leafeon\", \n\t\t 6=>\"glaceon\", \n\t\t 7=>\"sylveon\"\n ];\n $ev1=\"vaporeon\";\n $ev2=\"jolteon\";\n $ev3=\"flareon\";\n $ev4=\"espeon\";\n $ev5=\"umbreon\";\n $ev6=\"leafeon\";\n $ev7=\"glaceon\";\n $ev8=\"sylveon\";\nif($str=='......')\necho \"espeon\";\nelseif ($str=='........')\n {\n \techo \"vaporeon\";\n\t# code...\n}\n\n\n\nelse\n{\n\n\n \n \n $flag=0;\n $max=0;\n //$length=9;\n $trgetStr=findTrgtStr($str);\nfor ($i=0; $i =$max&&strlen($eve[$i])==$n)\n {\n \t$max=$count;\n \t//$length=strlen($eve[$i]);\n \t$str3=$eve[$i];\n }\n //echo \"$max\\n\";\n\n \n \n}\t\nprint_r($str3);\n}\n\nfunction findTrgtStr($str)\n{\n\t$trgetStr=\"\";\nfor ($i=0; $i \"vaporeon\",\n\t\t 1=>\"jolteon\",\n\t\t 2=>\"flareon\", \n\t\t 3=>\"espeon\", \n\t\t 4=>\"umbreon\",\n\t\t 5=>\"leafeon\", \n\t\t 6=>\"glaceon\", \n\t\t 7=>\"sylveon\"\n ];\n\nif($str=='......')\necho \"espeon\";\nelseif ($str=='........')\n {\n \techo \"vaporeon\";\n\t# code...\n}\n\n\n\nelse\n{\n\n\n \n \n $flag=0;\n $max=0;\n //$length=9;\n $trgetStr=findTrgtStr($str);\nfor ($i=0; $i =$max&&strlen($eve[$i])==$n)\n {\n \t$max=$count;\n \t//$length=strlen($eve[$i]);\n \t$str3=$eve[$i];\n }\n //echo \"$max\\n\";\n\n \n \n}\t\nprint_r($str3);\n}\n\nfunction findTrgtStr($str)\n{\n\t$trgetStr=\"\";\nfor ($i=0; $i $name){\n if($pos[$k] && $s[$i]!=$name[$i]){\n $pos[$k] = 0;\n $c--;\n }\n }\n if($c==1){\n break;\n }\n }\n }\n\n for($i=0; $i<$n; $i++){\n if($pos[$i]){\n echo $names[$i];\n break;\n }\n }\n\n}\n"}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": "\"vaporeon\",\n\t\t 1=>\"jolteon\",\n\t\t 2=>\"flareon\", \n\t\t 3=>\"espeon\", \n\t\t 4=>\"umbreon\",\n\t\t 5=>\"leafeon\", \n\t\t 6=>\"glaceon\", \n\t\t 7=>\"sylveon\"\n ];\n \n \n $flag=0;\n $max=0;\nfor ($i=0; $i =$max)\n {\n \t$max=$count;\n \t$str3=$eve[$i];\n }\n //echo \"$max\\n\";\n\n if($flag==1)\n \tbreak;\n \n}\t\necho \"$str3\\n\";\n"}, {"source_code": "\"vaporeon\",\n\t\t 1=>\"jolteon\",\n\t\t 2=>\"flareon\", \n\t\t 3=>\"espeon\", \n\t\t 4=>\"umbreon\",\n\t\t 5=>\"leafeon\", \n\t\t 6=>\"glaceon\", \n\t\t 7=>\"sylveon\"\n ];\n \n \n $flag=0;\n $max=0;\nfor ($i=0; $i =$max)\n {\n \t$max=$count;\n \t$str3=$eve[$i];\n }\n //echo \"$max\\n\";\n\n if($flag==1)\n \tbreak;\n \n}\t\necho \"$str3\\n\";\n}"}], "src_uid": "ec3d15ff198d1e4ab9fd04dd3b12e6c0"} {"source_code": "", "positive_code": [{"source_code": ""}, {"source_code": ""}], "negative_code": [{"source_code": ""}], "src_uid": "758d342c1badde6d0b4db81285be780c"} {"source_code": " 15) {\n echo($tt[$i] + 15);\n $isTVOff = true;\n break;\n }\n}\nif (!$isTVOff) {\n echo(90);\n}", "positive_code": [{"source_code": " '',\n\t\t\"\\n\" => '',\n\t);\n\treturn strtr(fgets($f), $r);\n}\n\nfunction readNumString($f) {\n\treturn trim(fgets($f));\n}\n\nfunction stringToArray($str) {\n\treturn str_split($str);\n}\n\nfunction readNum($f, $is_int = false) {\n\t$v = readNumString($f);\n\treturn $is_int ? intval($v) : floatval($v);\n}\n\nfunction readStringExplode($f, $delimiter = ' ') {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = 'trim';\n\treturn array_map($callf, $return);\n}\n\nfunction readStringExplodeNum($f, $delimiter = ' ', $is_int = false) {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = $is_int ? 'intval' : 'floatval';\n\treturn array_map($callf, $return);\n}\n\n###### /IO ######\n\nfunction getAnswer($is_test = false, $f = false) {\n\tif ($is_test === false) {\n\t\t$f = STDIN;\n\t}\n\t/* begin body */\n\t$n = readNum($f);\n\t$times = readStringExplodeNum($f, ' ', true);\n\t$f = 0;\n\t$viewTime = 0;\n\tfor ($i = 1; $i <= 90; $i++) {\n\t\tif (in_array($i, $times)) {\n\t\t\t$f = 0;\n\t\t} else {\n\t\t\t$f ++;\n\t\t}\n\n\t\t$viewTime++;\n\t\tif ($f >= 15) {\n\t\t\tbreak;\n\t\t}\n\t}\n\techo $viewTime;\n\t/* / end body */\n}\n\nif (empty($is_test))\n\tgetAnswer();"}, {"source_code": " 15) {\n echo($t[$i] + 15);\n $isTVOff = true;\n break;\n }\n}\nif (!$isTVOff) {\n echo(90);\n}"}, {"source_code": " 15) break;\n\n $watchTime = $t[$i];\n }\n echo $watchTime+15 > 90 ? 90 : $watchTime+15;\n}\n\nwatchTime($n,$t);"}, {"source_code": " 1){\n break;\n } else {\n $watchTime = $t[$i];\n }\n }\n echo $watchTime+15 > 90 ? 90 : $watchTime+15 ;\n}\n\nwatchTime($n,$t);"}, {"source_code": ""}, {"source_code": " $min) {\n\t\t$min = (int)$min;\n\t\tif($min - $prevMin > 15) {\n\t\t\t$result = $prevMin + 15;\n\t\t\tbreak;\n\t\t}\n\t\tif($min == 90) {\n\t\t\t$result = 90;\n\t\t\tbreak;\n\t\t}\n\t\tif($key == $count - 1 && $min + 15 < 90) {\n\t\t\t$result = $min + 15;\n\t\t\tbreak;\n\t\t}\n\t\t$prevMin = $min;\n\t}\n\techo $result;\n?>"}, {"source_code": " 15) return ($start+15) >= 90 ? 90 : $start+15 ;\n $start = $arr[$i];\n }\n return ($arr[$n-1] + 15) >= 90 ? 90 : $arr[$n-1]+15;\n}\n //  Bear and Game\n $in = 'php://stdin';\n $input = fopen($in, \"r\");\n $n = fgets($input);\n $t = [];\n $t = array_merge($t, explode(\" \", trim(fgets($input))));\n echo (test($n,$t));\n\n?>"}, {"source_code": " $maxWait){\n\t\techo $maxWait;die;\n\t}else{\n\t\t$maxWait = $interestMin + 15;\n\t}\n}\necho $maxWait > 90 ? 90 : $maxWait;\n\n?>"}], "negative_code": [{"source_code": " 15) {\n\t\t\techo $prevMin + 15;\n\t\t\tbreak;\n\t\t}\n\t\t$prevMin = $min;\n\t}\n\t\n?>"}, {"source_code": " 15) {\n\t\t\techo $prevMin + 15;\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n?>"}, {"source_code": " 15) {\n\t\t\t$result = $prevMin + 15;\n\t\t\tbreak;\n\t\t}\n\t\t$prevMin = $min;\n\t}\n\techo $result;\n?>"}, {"source_code": " 15) {\n\t\t\techo $min + 15;\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n?>"}, {"source_code": " $min) {\n\t\t$min = (int)$min;\n\t\tif($min == 90) {\n\t\t\t$result = 90;\n\t\t\tbreak;\n\t\t}\n\t\tif($min - $prevMin > 15) {\n\t\t\t$result = $prevMin + 15;\n\t\t\tbreak;\n\t\t}\n\t\tif($key == $count - 1 && $min + 15 < 90) {\n\t\t\t$result = $min + 15;\n\t\t\tbreak;\n\t\t}\n\t\t$prevMin = $min;\n\t}\n\techo $result;\n?>"}, {"source_code": " 15) return $start+15;\n $start = $arr[$i];\n }\n return $arr[$n-1] + 15;\n}\n //  Bear and Game\n $in = 'php://stdin';\n $input = fopen($in, \"r\");\n $n = fgets($input);\n $t = [];\n $t = array_merge($t, explode(\" \", trim(fgets($input))));\n echo (test($n,$t));\n\n?>"}, {"source_code": " $maxWait){\n\t\techo $maxWait;die;\n\t}else{\n\t\t$maxWait = $interestMin + 15;\n\t}\n}\necho 90;\n\n?>"}, {"source_code": " 1){\n break;\n } else {\n $watchTime = $t[$i];\n }\n }\n echo $watchTime+15 > 90 ? $watchTime : $watchTime+15 ;\n}\n\nwatchTime($n,$t);"}, {"source_code": " 1){\n $watchTime+=15;\n break;\n } else {\n $watchTime = $t[$i];\n }\n }\n echo $watchTime;\n}\n\necho watchTime($n,$t);"}, {"source_code": " 1){\n $watchTime+=15;\n break;\n } else {\n $watchTime = $t[$i];\n }\n }\n echo $watchTime > 90 ? 90 : $watchTime;\n}\n\necho watchTime($n,$t);"}, {"source_code": "= 15) {\n return $temp + 15;\n }\n\n $temp = $t[$i];\n }\n\n $temp += 15;\n\n return $temp >= 90 ? 90 : $temp;\n}\n\necho kq($t,$n);"}, {"source_code": " 1){\n $watchTime+=15;\n break;\n } else {\n $watchTime = $t[$i];\n }\n }\n echo $watchTime > 90 ? 90 : $watchTime;\n}\n\nwatchTime($n,$t);"}, {"source_code": " 1){\n $watchTime+=15;\n echo \"inTime=$inTime\".PHP_EOL;\n break;\n } else {\n $watchTime = $t[$i];\n }\n\n echo \"inTime=$inTime\".PHP_EOL;\n }\n\n echo $watchTime;\n}\n\necho watchTime($n,$t);"}], "src_uid": "5031b15e220f0ff6cc1dd3731ecdbf27"} {"source_code": "", "positive_code": [{"source_code": " 0){$line = str_replace($del,'',$line);$dataex[] = $line;$text = explode(\" \",$line);\nforeach($text as $txt){$arr_txt[] = $txt;$this->linex[$id] = $il;$this->liney[$il] = $id;$id++;}}$il++;}$this->arr_line = $dataex;$this->arr_txt = $arr_txt;}\nfunction G(){$ret = $this->arr_txt[$this->ntxt++];$this->nline = $this->linex[$this->ntxt];return $ret;}\nfunction GL(){$this->ntxt = $this->liney[$this->nline]+1;return $this->arr_line[$this->nline++];}} /*init*/ $dxs = new stdIn(false);\n\n$n = $dxs->GL();\n$a = (int) sqrt($n);\n\nfor( ; $a ; $a--) {\n\tif($n % $a == 0) {\n\t\t$t = $n / $a;\n\t\techo min($t, $a) . ' ' . max($t, $b);\n\t\tbreak;\n\t}\n}\n"}, {"source_code": " $input[$x+1]){\n $z = $input[$x];\n $input[$x] = $input[$x+1];\n $input[$x+1] = $z;\n }\n }\n}\n\n$output = implode(\" \", $input);\n\nprint $output;\n\n?>"}, {"source_code": ""}, {"source_code": "\n "}, {"source_code": ""}, {"source_code": " $col[$i]){\n $t = $col[$i + 1];\n $col[$i + 1] = $col[$i];\n $col[$i] = $t;\n\n $end = false;\n }\n }\n}while(!$end);\n\n$col = array_reverse($col);\nw(implode(' ', $col));"}, {"source_code": ""}, {"source_code": " "}, {"source_code": ""}, {"source_code": "=0;$i--){\n for($j=$n-1;$j>=0;$j--){\n\t\tif ($cube[$i] > $cube[$j]){\n\t\t\t$sisa = $cube[$i] - $cube[$j];\n\t\t\t$cube[$j] += $sisa;\n\t\t\t$cube[$i] -= $sisa;\n\t\t}\n\t}\n}\nforeach($cube as $value){\n\techo $value . \" \";\n}\n?>"}, {"source_code": ""}, {"source_code": " &$value) {\n $value = (int) $value;\n}\nunset($value);\n\nsort($arr);\n\n$out = implode(\" \", $arr);\n\necho $out;\n\n?>"}, {"source_code": ""}, {"source_code": "= $m - $j);\n }\n}\n\n$output = '';\n\nfor ($i = 0; $i < $n; $i ++) {\n $answer = 0;\n for ($j = 0; $j < $m; $j ++) {\n $answer += ($b[$j] >= $n - $i);\n }\n $output .= ($i > 0 ? ' ' : '') . $answer;\n}\n\nprint $output;\n\nfunction line() {\n return trim(fgets(STDIN));\n}\n"}, {"source_code": ""}, {"source_code": "= $g)\n {\n $f[$x]++;\n }\n }\n $g--;\n}\nprint implode(\" \", $f);\n?>"}, {"source_code": " $input[$x+1]){\n $z = $input[$x];\n $input[$x] = $input[$x+1];\n $input[$x+1] = $z;\n } else {\n break;\n }\n }\n}\n\n$output = implode(\" \", $input);\n\nprint $output;\n\n?>"}, {"source_code": " $input[$x+1]){\n $z = $input[$x];\n $input[$x] = $input[$x+1];\n $input[$x+1] = $z;\n }\n }\n}\n\n$output = implode(\" \", $input);\n\nprint $output;\n\n?>"}, {"source_code": "\n "}, {"source_code": ""}, {"source_code": ""}], "src_uid": "ae20712265d4adf293e75d016b4b82d8"} {"source_code": "", "positive_code": [{"source_code": ""}], "negative_code": [{"source_code": "", "positive_code": [{"source_code": "#!/usr/bin/env php\n $b[count($b) - 1])\n {\n $b[0] = $b[0] - $b[count($b) - 1];\n rsort($b);\n }\n else\n {\n break;\n }\n}\nprint array_sum($b);\n?>"}], "negative_code": [{"source_code": " $b[1])\n {\n $b[0] = $b[0] - $b[1];\n rsort($b);\n }\n else\n {\n break;\n }\n}\nprint array_sum($b);\n?>"}, {"source_code": "#!/usr/bin/env php\n $i)\n {\n print \"YES\";\n }\n else\n {\n print \"NO\";\n }\n}\nelse\n{\n print \"NO\";\n}\n?>", "positive_code": [{"source_code": "$d[1])) echo 'YES';\nelseif(($c[0][1]==$k) && ($c[1][1]!=$k)) echo 'YES';\nelse echo 'NO';\n?>"}, {"source_code": " $m[$c2[0]] && $c1[1] == $c2[1]) || ($c1[1] == $k && $c2[1] == $k && $m[$c1[0]] > $m[$c2[0]])){\n\t\techo 'YES';\n\t}else{\n\t\techo 'NO';\n\t}"}, {"source_code": "$b) return 1;\n else return 0; \n}\nif($first[1]==$root){\n if($second[1]==$root){\n if(differ($first[0],$second[0])) echo \"YES\";\n else echo \"NO\";\n }else{\n echo \"YES\";\n }\n}else{\n if($second[1]==$root) echo \"NO\";\n else{\n if($first[1]==$second[1]){\n if(differ($first[0],$second[0])) echo \"YES\";\n else echo \"NO\";\n }else{\n echo \"NO\";\n }\n }\n}\n?>"}, {"source_code": "$key_2)?'YES':'NO';\nelse\n echo ($first{1}==$jok)?'YES':'NO';\n?>"}], "negative_code": [{"source_code": "$b) return 1;\n}\nif($first[1]==$root){\n if($second[1]==$root){\n if(differ($first[0],$second[0])) echo \"YES\";\n else echo \"NO\";\n }else{\n echo \"YES\";\n }\n}else{\n if($second[1]==$root) echo \"NO\";\n else{\n if($first[1]==$second[1]){\n if(differ($first[0],$second[0])) echo \"YES\";\n else echo \"NO\";\n }else{\n echo \"NO\";\n }\n }\n}\n?>"}, {"source_code": "$key_2) or $first{1}==$jok)?'YES':'NO';\n?>"}], "src_uid": "da13bd5a335c7f81c5a963b030655c26"} {"source_code": " $b) {\n\t\t$realNumber .= '.';\n\t}\n\n\t$realNumber .= substr($d, $b);\n\n\t$realNumber = removeLeadingZeroes($realNumber);\n}\n\nfunction removeLeadingZeroes($realNumber)\n{\n\tif (! strpos($realNumber, '.')) {\n\t\treturn $realNumber;\n\t}\n\n\tfor ($i = strlen($realNumber); $i> 0; $i--) {\n\t\tif ($realNumber[$i-1] != 0) {\n\t\t\treturn $realNumber;\n\t\t}\n\n\t\t$realNumber = substr($realNumber, 0, $i-1);\n\t}\n\n\treturn $realNumber;\n}\n\nfprintf($fw, $realNumber);\n\nfclose($fr);\nfclose($fw);", "positive_code": [{"source_code": " $f)\n{\n $g = array_slice($d, 0, $f);\n $h = array_slice($d, $f);\n $i = array_merge($b, $g);\n $h2 = array_unique($h);\n sort($h2);\n if((count($h2) == 1) && ($h2[0] == 0))\n {\n $j = $i;\n if(count($j) == 1)\n {\n print implode($j);\n }\n else\n {\n $k = count($j);\n for($x = 0; $x < $k; $x++)\n {\n if($j[$x] == 0)\n {\n unset($j[$x]);\n }\n else\n {\n break;\n }\n }\n print implode($j);\n }\n }\n else\n {\n array_push($i, \".\");\n $j = array_merge($i, $h);\n if($j[1] == \".\")\n {\n print implode($j);\n }\n else\n {\n $k = count($j);\n for($x = 0; $x < $k; $x++)\n {\n if($j[$x] == 0)\n {\n unset($j[$x]);\n }\n else\n {\n break;\n }\n }\n print implode($j);\n }\n }\n}\n?>"}], "negative_code": [{"source_code": " $f)\n{\n $g = array_slice($d, 0, $f);\n $h = array_slice($d, $f);\n $i = array_merge($b, $g);\n array_push($i, \".\");\n $j = array_merge($i, $h);\n if($j[1] == \".\")\n {\n print implode($j);\n }\n else\n {\n $k = count($j);\n for($x = 0; $x < $k; $x++)\n {\n if($j[$x] == 0)\n {\n unset($j[$x]);\n }\n else\n {\n break;\n }\n }\n print implode($j);\n }\n}\n?>"}, {"source_code": " $f)\n{\n $g = array_slice($d, 0, $f);\n $h = array_slice($d, $f);\n $i = array_merge($b, $g);\n array_push($i, \".\");\n $j = array_merge($i, $h);\n if($j[1] == \".\")\n {\n print implode($j);\n }\n else\n {\n $k = count($j);\n for($x = 0; $x < $k; $x++)\n {\n if($j[$x] == 0)\n {\n unset($j[$x]);\n }\n else\n {\n break;\n }\n }\n print implode($j);\n }\n}\n?>"}, {"source_code": " 0; $i--) {\n\t\tif ($realNumber[$i-1] != 0) {\n\t\t\treturn $realNumber;\n\t\t}\n\n\t\t$realNumber = substr($realNumber, 0, $i-1);\n\t}\n\n\treturn $realNumber;\n}\n\nfprintf($fw, $realNumber);\n\nfclose($fr);\nfclose($fw);"}], "src_uid": "a79358099f08f3ec50c013d47d910eef"} {"source_code": "", "positive_code": [{"source_code": "=0;$j--){\n if($s[$j]==\"B\" && $s[$j+1]==\"G\"){$s[$j]=\"G\";$s[$j+1]=\"B\";$j--;}\n }\n}\nforeach($s as $v)echo $v;\n?>"}, {"source_code": ""}, {"source_code": "0;$i--) {\n if ($s[$i] == \"G\") {\n if ($s[$i - 1] == \"B\") {\n $r[$i] = $s[$i-1];\n $r[$i-1] = $s[$i];\n }\n }\n }\n $s=$r;\n}\n\necho $r;\n\n?>\n"}, {"source_code": ""}, {"source_code": "0; --$j) {\n if ( $q[$j] == 'G' && $q[$j-1] == 'B') {\n $z = $q[$j-1];\n $q[$j-1] = $q[$j];\n $q[$j] = $z;\n --$j;\n\n }\n\n }\n }\n\n put($q);\n\n\n if (++$COUNT > 1) {\n break;\n }\n\n}\n"}, {"source_code": "0; --$j) {\n if ( $q[$j] == 'G' && $q[$j-1] == 'B') {\n $z = $q[$j-1];\n $q[$j-1] = $q[$j];\n $q[$j] = $z;\n --$j;\n }\n\n }\n }\n\n echo $q;\n\n\n if (++$COUNT > 1) {\n break;\n }\n\n}\n"}, {"source_code": "=1){\nforeach ($array as $key => $value) {\n if(key_exists($key+1,$array)){\n if($value == 'B' and $array[$key+1] == 'G'){\n $x=$array[$key];\n $array[$key]=$array[$key+1];\n $array[$key+1]=$x;\n }\n }\n}\n$a--;\n}\necho join('',$array);"}, {"source_code": ""}, {"source_code": ""}, {"source_code": " $value) {\n $out .= $value;\n}\n\necho $out;\n\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "0; --$j) {\n if ( $q[$j] == 'G' && $q[$j-1] == 'B') {\n $z = $q[$j-1];\n $q[$j-1] = $q[$j];\n $q[$j] = $z;\n }\n }\n }\n\n put($q);\n\n\n if (++$COUNT > 1) {\n break;\n }\n\n}\n"}, {"source_code": "= 0) {\n\t\t$temp1=$s[$n];\n\t\t$temp2=$s[$n-1];\n\t\tif ($temp1 != $temp2) {\n\t\t\t$s[$n-1] = $temp1;\n\t\t\t$s[$n] = $temp2;\n\t\t}\n\t\t$n--;\n\t}\n\t$j++;\n}\necho $s;\n?>"}, {"source_code": ""}, {"source_code": "= 0) {\n\t\t$temp1=$arr[$n];\n\t\t$m=$n-1;\n\t\t$temp2=$arr[$m];\n\t\tif ($temp2 != $temp1) {\n\t\t\t$arr[$m] = $temp1;\n\t\t\t$arr[$n] = $temp2;\n\t\t}\n\t\t$n--;\n\t}\n\t$j++;\n}\necho $arr;\n?>"}, {"source_code": ""}, {"source_code": " 0) {\n\t\t$temp1=$arr[$n[0]];\n\t\t$temp2=$arr[$n[0]-1];\n\t\tif ($temp2 != $temp1) {\n\t\t\tif ($temp2 ==\"B\" && $temp1 ==\"G\" ) {\n\t\t\t\t$arr[$n[0]-1] = $temp1;\n\t\t\t\t$arr[$n[0]] = $temp2;\n\t\t\t}\n\t\t}\n\t\t$n[0]--;\n\t}\n\t$j++;\n}\necho implode($arr);\n?>"}, {"source_code": " $n[0]-1; $k++) { \n\t\t$temp1=$arr[$k];\n\t\t$temp2=$arr[$k+1];\n\t\tif (($temp2 != $temp1) && ($temp2 ==\"B\" && $temp1 ==\"G\" )) {\n\t\t\t$arr[$k+1] = $temp1;\n\t\t\t$arr[$k] = $temp2;\n\t\t\t$k++;\n\t\t}\n\t}\n}\n\necho implode($arr);\n?>"}, {"source_code": " 0) {\n\t\t$temp1=$arr[$n[0]];\n\t\t$temp2=$arr[$n[0]-1];\n\t\tif (($temp2 != $temp1) && ($temp2 ==\"B\" && $temp1 ==\"G\" )) {\n\t\t\t$arr[$n[0]-1] = $temp1;\n\t\t\t$arr[$n[0]] = $temp2;\n\t\t}\n\t\t$n[0]--;\n\t}\n\t$j++;\n}\necho implode($arr);\n?>"}, {"source_code": " 0) {\n\t\t$temp1=$arr[$k];\n\t\t$temp2=$arr[$k-1];\n\t\tif (($temp2 != $temp1) && ($temp2 ==\"B\" && $temp1 ==\"G\" )) {\n\t\t\t$arr[$k-1] = $temp1;\n\t\t\t$arr[$k] = $temp2;\n\t\t}\n\t\t$k--;\n\t}\n\t$j++;\n}\necho implode($arr);\n?>"}, {"source_code": " $n[0]; $k++) { \n\t\t$temp1=$arr[$k];\n\t\t$temp2=$arr[$k+1];\n\t\tif (($temp2 != $temp1) && ($temp2 ==\"B\" && $temp1 ==\"G\" )) {\n\t\t\t$arr[$k+1] = $temp1;\n\t\t\t$arr[$k] = $temp2;\n\t\t\t$k++;\n\t\t}\n\t}\n}\n\necho implode($arr);\n?>"}, {"source_code": "=0;$j--){\n if($s[$j]==\"B\" && $s[$j+1]==\"G\"){$s[$j]=\"G\";$s[$j+1]=\"B\";}\n }\n}\nforeach($s as $v)echo $v;\n?>"}, {"source_code": "0;$y--) {\n\t\t\tif ($var[$y] == 'G' && $var[$y-1] == 'B') {\n\t\t\t\t$var[$y] = 'B';\n\t\t\t\t$var[$y-1] = 'G';\n\t\t\t}\n\t\t}\n\t}\n\techo implode('',$var);"}, {"source_code": "0;$y--) {\n\t\t\tif ($var[$y] == 'G' && $var[$y-1] == 'B') {\n\t\t\t\t$var[$y] = 'B';\n\t\t\t\t$var[$y-1] = 'G';\n\t\t\t}\n\t\t}\n\t}\n\techo implode('',$var);"}], "src_uid": "964ed316c6e6715120039b0219cc653a"} {"source_code": "\n"}, {"source_code": " $d) {\n echo $k;\n $inputs = array_merge($inputs, $data[$k]);\n} */\n\n$stdin = fopen('php://stdin', 'r');\nwhile($line = fgets($stdin)) {\n $line = explode(\" \", $line);\n $data[] = $line;\n}\nfclose($stdin);\n\nlist($n, $i) = $data;\n\nif (in_array(1, $i)) {\n echo \"HARD\";\n} else {\n echo \"EASY\";\n}"}, {"source_code": " $d) {\n echo $k;\n $inputs = array_merge($inputs, $data[$k]);\n} */\n\n// // // STANDARD INPUT DEFINITION // // //\n$stdin = fopen('php://stdin', 'r');\nwhile($line = fgets($stdin)) {\n $data[] = explode(\" \", $line);\n}\nfclose($stdin);\n\n// // // DEFINE VARIABLES HERE (1 input line = 1 variable) // // //\nlist($a, $b) = $data;\n\n// // // START CODING LOGIC HERE // // //\nif (in_array(1, $b)) {\n echo \"HARD\";\n} else {\n echo \"EASY\";\n}"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "0) echo 'HARD';\n else echo 'EASY';"}, {"source_code": " $line) {\n if (strlen($line) > 0) {\n $input[$index] = explode(\" \", trim($line));\n }\n}\n\necho in_array(\"1\", $input[1], false) ? 'HARD': 'EASY';\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": " 0){\n echo 'HARD';\n }\n else echo 'EASY';"}, {"source_code": " 0){$line = str_replace($del,'',$line);$dataex[] = $line;$text = explode(\" \",$line);\n foreach($text as $txt){$arr_txt[] = $txt;$this->linex[$id] = $il;$this->liney[$il] = $id;$id++;}}$il++;}$this->arr_line = $dataex;$this->arr_txt = $arr_txt;}\n function G(){$ret = $this->arr_txt[$this->ntxt++];$this->nline = $this->linex[$this->ntxt];return $ret;}\n function GL(){$this->ntxt = $this->liney[$this->nline]+1;return $this->arr_line[$this->nline++];}} /*init*/\n\n$inp = new stdIn(false);\n$n = $inp->arr_line[0];\n$a = explode(' ',$inp->arr_line[1]);\n$bool = \"easy\";\nfor($i=0;$i<$n;$i++){\n if(strval($a[$i])==\"1\"){\n $bool = \"hard\";\n }\n}\necho $bool;"}, {"source_code": "\n"}, {"source_code": ""}, {"source_code": " 0 ? \"HARD\" : \"EASY\";\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": " 0){\n $res = \"HARD\";\n break;\n }\n $i++;\n}\necho $res;\n?>"}, {"source_code": " 0 ? 'HARD' : 'EASY');\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": " 0){\n echo 'HARD';\n }\n else echo 'YASY';"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": " 0){\n $res = \"HARD\";\n break;\n }\n $i++;\n}\necho $res;\n?>"}, {"source_code": ""}, {"source_code": "n = int(input())\na = sum(map(int, input().split()))\nif a > 0:\n print('HARD')\nelse:\n print('EASY')"}, {"source_code": " $d) {\n echo $k;\n $inputs = array_merge($inputs, $data[$k]);\n} */\n\n$stdin = fopen(STDIN, 'r');\nwhile($line = fgets($stdin)) {\n $line = explode(\" \", $line);\n $data[] = $line;\n}\nfclose($stdin);\n\nprint_r($data);\n\nlist($n, $i) = $data;\n\nif (in_array(1, $i)) {\n echo \"HARD\";\n} else {\n echo \"EASY\";\n}"}, {"source_code": " $d) {\n echo $k;\n $inputs = array_merge($inputs, $data[$k]);\n} */\n\n$stdin = fopen('php://stdin', 'r');\nwhile($line = fgets($stdin)) {\n $line = explode(\" \", $line);\n $data[] = $line;\n}\nfclose($stdin);\n\nprint_r($data);\n\nlist($n, $i) = $data;\n\nif (in_array(1, $i)) {\n echo \"HARD\";\n} else {\n echo \"EASY\";\n}"}, {"source_code": "0) echo 'HARD';\n else echo 'EASY';"}, {"source_code": "0) echo 'HARD';\n else echo 'EASY';"}, {"source_code": "0) echo 'HARD';\n else echo 'EASY';"}, {"source_code": "0) echo 'HARD';\n else echo 'EASY';"}, {"source_code": ""}, {"source_code": "' . $result;\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": "$h) {\n echo ('easy');\n}\nelse if ($h>$e) {\n echo ('hard');\n}\nelse {\n echo ('unknown');\n}"}, {"source_code": ""}], "src_uid": "060406cd57739d929f54b4518a7ba83e"} {"source_code": " 1, \"tuesday\" => 2, \"wednesday\" => 3, \"thursday\" => 4, \"friday\" => 5, \"saturday\" => 6, \"sunday\" => 7);\n$d = $c[$a];\n$e = $c[$b];\nif($e >= $d)\n{\n $f = $e - $d;\n}\nelse\n{\n $f = 7 - $d + $e;\n}\nif(($f == 0) || ($f == 2) || ($f == 3))\n{\n print \"YES\";\n}\nelse\n{\n print \"NO\";\n}\n?>", "positive_code": [{"source_code": " '',\n\t\t\"\\n\" => '',\n\t);\n\treturn strtr(fgets($f), $r);\n}\n\nfunction readNumString($f) {\n\treturn trim(fgets($f));\n}\n\nfunction stringToArray($str) {\n\treturn str_split($str);\n}\n\nfunction readNum($f, $is_int = false) {\n\t$v = readNumString($f);\n\treturn $is_int ? intval($v) : floatval($v);\n}\n\nfunction readStringExplode($f, $delimiter = ' ') {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = 'trim';\n\treturn array_map($callf, $return);\n}\n\nfunction readStringExplodeNum($f, $delimiter = ' ', $is_int = false) {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = $is_int ? 'intval' : 'floatval';\n\treturn array_map($callf, $return);\n}\n\nfunction readNumArray($f) {\n\treturn readStringExplodeNum($f, ' ', true);\n}\n\nfunction readArray($f) {\n\treturn readStringExplodeNum($f, ' ');\n}\n\nfunction readTrimString($f) {\n\treturn trim(readString($f));\n}\n\n###### /IO ######\n# for($i=0;$i<$n;$i++)\n\nfunction getAnswer($is_test = false, $f = false) {\n\tif ($is_test === false) {\n\t\t$f = STDIN;\n\t}\n\t/* begin body */\n\t$first = readString($f);\n\t$second = readString($f);\n\t\n\t$dayCount = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);\n\t$days = array('monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday');\n\t$firstIndex = array_search($first, $days);\n\tfor ($m = 0; $m < 11; $m++) {\n\t\t$diff = $dayCount[$m] % 7;\n\t\t$next = ($firstIndex + $diff) % 7;\n\t\tif ($second == $days[$next]) {\n\t\t\techo 'YES';\n\t\t\treturn;\n\t\t}\n\t}\n\techo 'NO';\n\t/* / end body */\n}\n\nif (empty($is_test))\n\tgetAnswer();"}], "negative_code": [{"source_code": ""}], "src_uid": "2a75f68a7374b90b80bb362c6ead9a35"} {"source_code": "", "positive_code": [{"source_code": ""}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": ""}], "src_uid": "4bd174a997707ed3a368bd0f2424590f"} {"source_code": "= 0; $x--)\n{\n if($b[$x] == 0)\n {\n $d++;\n }\n else\n {\n break;\n }\n}\n$e = 0;\n$f = 0;\n$g = 0;\n$h = 0;\nfor($x = $c; $x <= $a - $d; $x++)\n{\n if($b[$x] == 0)\n {\n $g = max($g, $h);\n $h = 0;\n $f++;\n }\n elseif($b[$x] == 1)\n {\n $e = max($e, $f);\n $f = 0;\n $h++;\n }\n}\n$e = max($e, $f);\n$f = 0;\n$g = max($g, $h);\n$h = 0;\nif(($a == 1) && ($b[0] == 0))\n{\n print \"No\";\n}\nelseif(($c >= 2) || ($d >= 2) || ($g >= 2) || ($e >= 3))\n{\n print \"No\";\n}\nelse\n{\n print \"Yes\";\n}\n?>"}], "negative_code": [{"source_code": ""}, {"source_code": ""}, {"source_code": "= 0; $x--)\n{\n if($b[$x] == 0)\n {\n $d++;\n }\n else\n {\n break;\n }\n}\n$e = 0;\n$f = 0;\nfor($x = $c; $x <= $a - $d; $x++)\n{\n if($b[$x] == 0)\n {\n $f++;\n }\n else\n {\n $e = max($e, $f);\n $f = 0;\n }\n}\n$e = max($e, $f);\n$f = 0;\nif(($a == 1) && ($b[0] == 0))\n{\n print \"No\";\n}\nelseif(($c >= 2) || ($d >= 2) || ($e >= 3))\n{\n print \"No\";\n}\nelse\n{\n print \"Yes\";\n}\n?>"}, {"source_code": "$b) : ($i>$b)+(($c/$i)>$b);\n }\n }\n echo $k;\n}\n?>", "positive_code": [{"source_code": "$b);\n } else {\n $o += ($i>$b)+((int)($a/$i)>$b);\n }\n }\n }\n printf(\"%d\\n\",$o);\n}\n?>"}, {"source_code": " $b) {\n $rs--;\n }\n }\n }\n fprintf($fileOUT, $rs);\n //echo $rs;\n}\n\nfclose($fileIN);\nfclose($fileOUT);\n?>\n"}, {"source_code": "$b);\n\t\t\telse\n\t\t\t\t$ans+=($i>$b)+((int)($a/$i)>$b);\n\t\t}\n printf(\"%d\\n\",$ans);\n?>"}, {"source_code": "= count($comb)) {\n return false;\n }\n $comb[$pos]++;\n if ($comb[$pos] > $orders[$pos]) {\n $comb[$pos] = 0;\n return next_comb($comb, $orders, $pos + 1);\n }\n return true;\n}\n\nif ($a == $b) {\n echo \"infinity\\n\";\n} elseif ($b > $a) {\n echo \"0\\n\";\n} elseif ($a == 1 && $b == 0) {\n echo \"1\\n\"; // fuck :) too lazy to actually fix\n} else {\n $divs = all_divisors($a - $b);\n $divisors = array_keys($divs);\n $orders = array_values($divs);\n $comb = array_fill(0, count($divs), 0);\n $ok = 0;\n do {\n $tryN = 1;\n foreach ($comb as $i => $count) {\n $tryN *= pow($divisors[$i], $count);\n }\n if ($tryN > $b) {\n $ok++;\n }\n } while (next_comb($comb, $orders));\n echo \"$ok\\n\";\n}\n\n"}], "negative_code": [{"source_code": " $b) {\n $rs--;\n }\n }\n }\n}\n\nfprintf($fileOUT, $rs);\n\nfclose($fileIN);\nfclose($fileOUT);\n?>\n"}, {"source_code": " $b) {\n $rs--;\n }\n }\n }\n fprintf($fileOUT, $rs);\n}\n\nfclose($fileIN);\nfclose($fileOUT);\n?>\n"}, {"source_code": " $b) {\n $rs--;\n }\n }\n }\n fprintf($fileOUT, $rs);\n //echo $rs;\n}\n\nfclose($fileIN);\nfclose($fileOUT);\n?>\n"}, {"source_code": " $b) {\n $rs--;\n }\n }\n }\n}\n\nfprintf($fileOUT, $rs);\n\nfclose($fileIN);\nfclose($fileOUT);\n?>\n"}, {"source_code": "= count($comb)) {\n return false;\n }\n $comb[$pos]++;\n if ($comb[$pos] > $orders[$pos]) {\n $comb[$pos] = 0;\n return next_comb($comb, $orders, $pos + 1);\n }\n return true;\n}\n\nif ($a == $b) {\n echo \"infinity\\n\";\n} elseif ($b > $a) {\n echo \"0\\n\";\n} else {\n $divs = all_divisors($a - $b);\n $divisors = array_keys($divs);\n $orders = array_values($divs);\n $comb = array_fill(0, count($divs), 0);\n $ok = 0;\n do {\n $tryN = 1;\n foreach ($comb as $i => $count) {\n $tryN *= pow($divisors[$i], $count);\n }\n if ($tryN > $b) {\n $ok++;\n }\n } while (next_comb($comb, $orders));\n echo \"$ok\\n\";\n}\n\n"}, {"source_code": "$b);\n } else {\n $ans += ($i>$b)+((int)($a/$i)>$b);\n }\n }\n }\n echo $ans;\n}\n?>"}, {"source_code": "$b);\n } else {\n $ans += ($i>$b)+((int)($a/$i)>$b);\n }\n }\n }\n echo $ans;\n?>"}], "src_uid": "6e0715f9239787e085b294139abb2475"} {"source_code": "", "positive_code": [{"source_code": "\n"}, {"source_code": ""}, {"source_code": ""}, {"source_code": "\n"}, {"source_code": " '',\n\t\t\"\\n\" => '',\n\t);\n\treturn strtr(fgets($f), $r);\n}\n\nfunction readNumString($f) {\n\treturn trim(fgets($f));\n}\n\nfunction stringToArray($str) {\n\treturn str_split($str);\n}\n\nfunction readNum($f, $is_int = false) {\n\t$v = readNumString($f);\n\treturn $is_int ? intval($v) : floatval($v);\n}\n\nfunction readStringExplode($f, $delimiter = ' ') {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = 'trim';\n\treturn array_map($callf, $return);\n}\n\nfunction readStringExplodeNum($f, $delimiter = ' ', $is_int = false) {\n\t$v = readNumString($f);\n\tif ($delimiter == '') {\n\t\t$return = stringToArray($v);\n\t} else {\n\t\t$return = explode($delimiter, $v);\n\t}\n\t$callf = $is_int ? 'intval' : 'floatval';\n\treturn array_map($callf, $return);\n}\n\n###### /IO ######\n\nfunction getAnswer($is_test = false, $f = false) {\n\tif ($is_test === false) {\n\t\t$f = STDIN;\n\t}\n\t/* begin body */\n\t$n = readNum($f);\n\t$str = '';\n\tfor ($i = 1; $i <= 1001; $i++) {\n\t\t$str.=$i;\n\t}\n\techo $str[$n-1];\n\t/* / end body */\n}\n\nif (empty($is_test))\n\tgetAnswer();"}], "negative_code": [], "src_uid": "2d46e34839261eda822f0c23c6e19121"} {"source_code": "= 5) {\n $x -= 5;\n return move($x) + 1;\n } else {\n return 1;\n }\n}\n\nfscanf(STDIN, \"%d\", $x);\nprintf(\"%d\", move($x));\n", "positive_code": [{"source_code": ""}, {"source_code": "solution($n);\n// End of interface\n\n\nclass MainClass {\n\t//617-A. Elephant\n\t//public $problemLink = 'https://codeforces.com/problemset/problem/617/A';\n\t//public $submissionLink = '';\n\n\tpublic function solution($n){\n\t\t$res = 0;\n\t\tfor ($i = 5; $i>0; $i--){\n\t\t\t$quotient = $n/$i;\n\t\t\t$intQuotient = (int) $quotient;\n\t\t\t$currentReminder = $n % $i;\n\t\t\tif ($intQuotient > 0){\n\t\t\t\t$res = $res + $intQuotient;\n\t\t\t};\n\t\t\tif ($currentReminder === 0){\n\t\t\t\tbreak;\n\t\t\t};\n\t\t\tif ($currentReminder > 0){\n\t\t\t\t$n = $currentReminder;\n\t\t\t};\n\t\t}\n\t\treturn $res;\n\t}\n}\n"}, {"source_code": "solution($n);\n// End of interface\n\n\nclass MainClass {\n\t//617-A. Elephant\n\t//public $problemLink = 'https://codeforces.com/problemset/problem/617/A';\n\t//public $submissionLink = '';\n\n\tpublic function solution($n){\n\t\t$res = 0;\n\t\tfor ($i = 5; $i>0; $i--){\n\t\t\t$intQuotient = (int)($n/$i);\n\t\t\t$currentReminder = $n % $i;\n\t\t\tif ($intQuotient > 0){\n\t\t\t\t$res = $res + $intQuotient;\n\t\t\t};\n\t\t\tif ($currentReminder === 0){\n\t\t\t\tbreak;\n\t\t\t};\n\t\t\tif ($currentReminder > 0){\n\t\t\t\t$n = $currentReminder;\n\t\t\t};\n\t\t}\n\t\treturn $res;\n\t}\n}\n"}, {"source_code": ""}, {"source_code": "0; $i--)\n{\n\t$ans += intval($elphnt / $i);\n\t$elphnt %= $i;\n}\n\necho $ans.\"\\n\";"}, {"source_code": ""}, {"source_code": ""}, {"source_code": " 5){ \n $n += - 5;\n $k += + 1;\n }\n echo $k;"}, {"source_code": "= $i) {\n $x -= $i;\n $s += 1;\n }\n}\necho $s;\n?>"}, {"source_code": "= 5) {\n $x -= 5;\n $s += 1;\n}\nwhile ($x >= 4) {\n $x -= 4;\n $s += 1;\n}\nwhile ($x >= 3) {\n $x -= 3;\n $s += 1;\n}\nwhile ($x >= 2) {\n $x -= 2;\n $s += 1;\n}\nwhile ($x >= 1) {\n $x -= 1;\n $s += 1;\n}\necho $s;\n?>"}, {"source_code": " 4) $i=5;\n elseif ($dis > 3) $i=4;\n elseif ($dis > 2) $i=3;\n elseif ($dis > 1) $i=2;\n else $i=1;\n\n walk($dis-$i, $w+1);\n }\n walk($dis,$w);\n\n\n if ((--$count) == 0) {\n break;\n }\n}\n"}, {"source_code": " 4) $i=5;\n elseif ($dis > 3) $i=4;\n elseif ($dis > 2) $i=3;\n elseif ($dis > 1) $i=2;\n else $i=1;\n\n return walk($dis-$i, $w+1);\n }\n put(walk($dis,$w));\n\n\n if ((--$count) == 0) {\n break;\n }\n}\n"}, {"source_code": "= 1; $i--) {\n $walk += floor($nr / $i);\n $nr = $nr % $i;\n}\n\necho $walk;"}, {"source_code": "=5){\n $ghadam++;\n @$input-=5;\n}\nwhile($input>=4){\n $ghadam++;\n @$input-=4;\n}\nwhile($input>=3){\n $ghadam++;\n @$input-=3;\n}\nwhile($input>=2){\n $ghadam++;\n @$input-=2;\n}\nwhile($input>=1){\n $ghadam++;\n @$input-=1;\n}\necho $ghadam;\n?>"}, {"source_code": ""}, {"source_code": " $line) {\n $input[$index] = explode(\" \", trim($line));\n}\n\n// Solve past this line\n$friend = $input[0][0];\n$output = (int)($friend / 5);\n\necho $output >= 1 ? $output+($friend%5 ? 1: 0): 1;\n "}, {"source_code": " $line) {\n $input[$index] = explode(\" \", trim($line));\n}\n\n// Solve past this line\necho (int)(($input[0][0] + 4) / 5);\n "}, {"source_code": ""}, {"source_code": " 5.\nfor($i = 5;$i >= 1;$i--) {\n \n while(($our_number + $i) <= $input) {\n \n $steps++;\n $our_number += $i;\n \n }\n \n if($our_number == $input) {\n \n break;\n \n }\n \n}\n\necho $steps;"}, {"source_code": ""}, {"source_code": " 5) {\n $moves = $moves - 5;\n $counter ++;\n}\necho $counter + 1;\n?>"}, {"source_code": ""}, {"source_code": ""}, {"source_code": ""}, {"source_code": " 0) {\n if (($x - 5) >= 0) {\n $x -= 5;\n $s++;\n }\n}\nwhile ($x > 0) {\n if (($x - 4) >= 0) {\n $x -= 4;\n $s++;\n }\n}\nwhile ($x > 0) {\n if (($x - 3) >= 0) {\n $x -= 3;\n $s++;\n }\n}\nwhile ($x > 0) {\n if (($x - 2) >= 0) {\n $x -= 2;\n $s++;\n }\n}\nwhile ($x > 0) {\n if (($x - 1) >= 0) {\n $x -= 1;\n $s++;\n }\n}\n?>"}, {"source_code": ""}, {"source_code": " 5.\nfor($i = 5;$i >= 1;$i--) {\n \n while(($our_number + $i) < $input) {\n \n $steps++;\n $our_number += $i;\n \n }\n \n if($our_number == $input) {\n \n break;\n \n }\n \n}\n\necho $steps;"}, {"source_code": ""}, {"source_code": " $value) {\n\t$b[$key] += 0;\n}\nsort($b);\n$count = 0;\nfor ($i=$n-1; $i >= 0; $i--) { \n\tif ($m <= $k) break;\n\tif ($k != 0) {\n\t\t$count++;\n\t\t$k += $b[$i] - 1;\n\t} else {\n\t\tbreak;\n\t}\n}\nif ($m > $k) $count = -1;\nfwrite($f_out, $count);\nfclose($f_out);", "positive_code": [{"source_code": " $c) && ($x == $a))\n {\n $f = 1;\n break;\n }\n elseif($b > $c)\n {\n $c += $d[$e] - 1;\n $e++;\n }\n else\n {\n break;\n }\n}\nif($f == 1)\n{\n print \"-1\";\n}\nelse\n{\n print $e;\n}\n?>"}], "negative_code": [{"source_code": " $value) {\n\t$b[$key] += 0;\n}\narsort($b);\n$count = 0;\nfor ($i=0; $i < $n; $i++) { \n\tif ($m <= $k) break;\n\tif ($k != 0) {\n\t\t$count++;\n\t\t$k += $b[$i] - 1;\n\t} else {\n\t\tbreak;\n\t}\n}\nif ($m > $k) $count = -1;\nfwrite($f_out, $count);\nfclose($f_out);"}, {"source_code": " $value) {\n\t$b[$key] += 0;\n}\narsort($b);\n$count = 0;\nfor ($i=0; $i < $n; $i++) { \n\tif ($m <= $k) break;\n\tif ($k != 0) {\n\t\t$count++;\n\t\t$k += $b[$i] - 1;\n\t} else {\n\t\t$count = -1;\n\t\tbreak;\n\t}\n}\nif ($m > $k) $count = -1;\nfwrite($f_out, $count);\nfclose($f_out);"}], "src_uid": "b32ab27503ee3c4196d6f0d0f133d13c"}