Submission Flexibility

Any suggestion and feature request can be discussed here.

Submission Flexibility

by froghramar » Tue Aug 09, 2016 12:20 am

In a contest, many user generally takes input from a file to run a code locally for multiple time. It saves his time as he don't have to copy / generate same input again. Then he has to comment out those extra lines before submission. For these reasons many online judges support a flexibility of coders.
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;
}

here every instructions written between #ifndef and #endif works only when you run it locally. I don't know how it works. But it's very cool. This is supported on uva, lightoj, codeforces, codechef. Can you please add this flexibility to devskill?
User avatar
 
Posts: 33
Joined: Thu Jul 28, 2016 8:14 am
Location: Amar Ekushey Hall, University of Dhaka

Re: Submission Flexibility

by devskill » Tue Aug 09, 2016 8:14 pm

Thanks for your suggestion. we will surely look into this.
User avatar
Site Admin
 
Posts: 118
Joined: Tue Feb 02, 2016 10:24 pm

Re: Submission Flexibility

by devskill » Fri Aug 12, 2016 7:33 am

Wanted to give you the good news that we have included this feature in our platform for C/C++ & C#

Here is the announcement about this : http://www.forum.devskill.com/viewtopic.php?f=3&t=19

Thank you for the suggestion, keep suggesting. :ugeek:
User avatar
Site Admin
 
Posts: 118
Joined: Tue Feb 02, 2016 10:24 pm

Re: Submission Flexibility

by froghramar » Fri Aug 12, 2016 9:08 pm

thanks and gratitude :D
User avatar
 
Posts: 33
Joined: Thu Jul 28, 2016 8:14 am
Location: Amar Ekushey Hall, University of Dhaka


Who is online
Users browsing this forum: No registered users and 1 guest
cron