<?php
$in_f=fopen(__DIR__.DIRECTORY_SEPARATOR.'cinemaholics.in', 'r');
$Max=trim(fgets($in_f)); $Mel=trim(fgets($in_f));
fclose($in_f);
/* my small code */
$out_f=fopen(__DIR__.DIRECTORY_SEPARATOR.'cinemaholics.out', 'r+');
fputs($out_f, $out.PHP_EOL);
fclose($out_f);
Doesn't works on http://codeforces.net/gym/101110/problem/A , but nice works in my local PHP CLI. I hope someone is reading it, I am noob, I don't know if someone is reading. Thanks.
I read FAQ and it was something about PHP & files & that it 'll not work, but I'm not sure.