unfortunately Java and PHP do not support per-processor, so these language is out of scope of this feature. We encourage our members to use this feature for flexible coding.
For example, for C/C++ you can now write code like this and can submit it without changing your code:
- Code: Select all
int main(){
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
//your code goes here
return 0;
}
So you no longer need to comment out freopen and do not risk getting a failed verdict due to a silly mistake.
Happy Coding
