CodeChef
  • PRACTICE
    • Easy
    • Medium
    • Hard
    • Challenge
    • Peer
  • COMPETE
  • DISCUSS
    • Wiki
    • Forums
    • Blog
    • Twitter
  • COMMUNITY
    • CodeChef Meetups
    • Campus Chapters
    • Host Your Contest
    • User Groups
    • CodeChef TechTalks
  • HELP
    • Frequently Asked Questions
    • FAQ for Problem Setters
    • Ranks
    • Tutorials
  • ABOUT
    • About CodeChef
    • Team CodeChef
    • Press Room
    • CEO's Corner
    • About Directi

Updated: Announcing Variable Time Limits Based on Programming Language

Posted by The Chef on April 1st, 2009 Filed in Features, Practice Problems View Comments

Cupcakes,
You’ve asked for it, we’ve done it. A big complaint people have had was the time limits were too strict for programming languages that didn’t start with a C. There are now variable time limits depending on the programming language you have used to submit your solution. The current time limits are as follows (as a multiplier to the time limit listed on the problem page):

  • Java – 2X
  • Python – 3X
  • Ruby – 3X
  • PHP – 3X
  • Lisp clisp – 3X
  • Lisp sbcl – 3X
  • Scala – 1X
  • C# – 2X
  • All other languages – 1X

We will continue to tweak the exact multipliers  and will let you know if there are any other modifications.  Solutions will not be rejudged, you will be required to submit new solutions to see if your program now satisfies the time limit conditions.

Cheers,

The Chef

  • Share/Bookmark
  • Prateek Karandikar

    What happens if tweaking the multipliers results in a submission failing with the new limits which passed with the old limits? Or will time limits only be increased?

  • Prateek Karandikar

    What happens if tweaking the multipliers results in a submission failing with the new limits which passed with the old limits? Or will time limits only be increased?

  • http://www.codechef.com The Chef

    We will not tighten the multipliers for the duration of the contest (though we may add multipliers for other programming languages), or loosen other ones up.
    Cheers!

  • Prasenjit Ghosh

    GREAT!!!

    That’s a welcome move for us Java programmers (and I’m sure for others too who use languages not starting with C)

  • http://www.codechef.com The Chef

    We will not tighten the multipliers for the duration of the contest (though we may add multipliers for other programming languages), or loosen other ones up.
    Cheers!

  • Prasenjit Ghosh

    GREAT!!!

    That’s a welcome move for us Java programmers (and I’m sure for others too who use languages not starting with C)

  • Anonymous Coward

    I don’t get why these languages get these artificial advantages.

  • Anonymous Coward

    I don’t get why these languages get these artificial advantages.

  • Popular Bravo

    You dont get it, because you do not understand the limitations of virtual machines and interpreted languages as opposed to compiled languages.
    Maybe wikipedia would help you.

  • Popular Bravo

    You dont get it, because you do not understand the limitations of virtual machines and interpreted languages as opposed to compiled languages.
    Maybe wikipedia would help you.

  • Dhruv

    The reason being that many of these languages are slower in one way or the other as compared to C/C++, so we feel that they should be compensated accordingly. Be rest assured that no one will get an artifical advantage because of using a particular language, and only good algorithms(in any language) will be able to pass successfully in the given limits. I hope that answers your concerns.

  • Dhruv

    The reason being that many of these languages are slower in one way or the other as compared to C/C++, so we feel that they should be compensated accordingly. Be rest assured that no one will get an artifical advantage because of using a particular language, and only good algorithms(in any language) will be able to pass successfully in the given limits. I hope that answers your concerns.

  • Dhruv

    Hey Chef, what about “C”aml? ;)

  • Dhruv

    or “C”#?
    :-p

  • Dhruv

    Hey Chef, what about “C”aml? ;)

  • Dhruv

    or “C”#?
    :-p

  • Prasenjit Ghosh

    @Anonymous Coward

    Most probably you haven’t used these languages. Else you wouldn’t have called it an “advantage” in the first place. Try running a code with same logic in C and Java and notice the difference in times.

  • Prasenjit Ghosh

    @Anonymous Coward

    Most probably you haven’t used these languages. Else you wouldn’t have called it an “advantage” in the first place. Try running a code with same logic in C and Java and notice the difference in times.

  • http://www.iwishihadasite.com Gaurav Shukla

    @Anonymous Coward- It appears you are new to programming, cause the question you asked is answered in 8th or 9th grade(at least in ISC I guess). Its great you’re coming on to a site like Codechef for a better exposure! I’d suggest you go and check the best times for one of the trivial problems like Life, Universe, Everything and note the difference in timings.

    Apart from the VM etc. I guess Java’s unicode character set which gives a further burden to the programs….

  • http://www.iwishihadasite.com Gaurav Shukla

    @Anonymous Coward- It appears you are new to programming, cause the question you asked is answered in 8th or 9th grade(at least in ISC I guess). Its great you’re coming on to a site like Codechef for a better exposure! I’d suggest you go and check the best times for one of the trivial problems like Life, Universe, Everything and note the difference in timings.

    Apart from the VM etc. I guess Java’s unicode character set which gives a further burden to the programs….

  • Abhijeet Nagre (Aby)

    Hi, What is the multiplier for C#? The same logic also applies for keeping a higher multiplier for C# as well, since C# code is complied Just In Time.

    Thanks,
    Abhijeet.

  • Abhijeet Nagre (Aby)

    Hi, What is the multiplier for C#? The same logic also applies for keeping a higher multiplier for C# as well, since C# code is complied Just In Time.

    Thanks,
    Abhijeet.

  • INTEST

    #include <iostream>#include <cstdio>int main(void) {unsigned int count=0,i=0;long unsigned int k,n;unsigned int temp;fscanf(stdin,”%uld”,&n);fscanf(stdin,”%uld”,&k);if(k<=10000000){ while(i<n && std::cin>>temp && temp<=1000000000){ if(temp%k==0)count++; i++; } }std::cout<<count; return 0;}WHY TIME LIMIT IS EXCEEDING…………what's wrong with this

  • INTEST

    #include <iostream>
    #include <cstdio>
    int main(void) {
    unsigned int count=0,i=0;
    long unsigned int k,n;
    unsigned int temp;
    fscanf(stdin,”%uld”,&n);
    fscanf(stdin,”%uld”,&k);
    if(k<=10000000){
    while(i<n && std::cin>>temp && temp<=1000000000){
    if(temp%k==0)count++;
    i++;
    }
    }
    std::cout<<count;
    return 0;
    }

    WHY TIME LIMIT IS EXCEEDING…………what's wrong with this

  • INTEST

    #include
    #include
    int main(void) {
    unsigned int count=0,i=0;
    long unsigned int k,n;
    unsigned int temp;
    fscanf(stdin,”%uld”,&n);
    fscanf(stdin,”%uld”,&k);
    if(k< =10000000){
    while(i>temp && temp<=1000000000){
    if(temp%k==0)count++;
    i++;
    }
    }
    std::cout< return 0;
    }

    WHY TIME LIMIT IS EXCEEDING…………what’s wrong with this

  • itjob123

    You dont get it, because you do not understand the limitations of virtual machines and interpreted languages as opposed to compiled languages

  • itjob123

    You dont get it, because you do not understand the limitations of virtual machines and interpreted languages as opposed to compiled languages

  • Anonymous

    You dont get it, because you do not understand the limitations of virtual machines and interpreted languages as opposed to compiled languages

  • https://www.google.com/accounts/o8/id?id=AItOawlpqwEpaFgJqhR3yuYTgLxto68CWd-RDmQ Mike S

    I am having issues getting Haskell to run in the allotted time.  Have you seen requests for a multiplier on Haskell? I am using the same algorithm as efficient solutions in other languages.

  • http://www.register-web-domain.in How to register a website

    I would love to learn more about technical and programming related things. 
    Great post, and i loved it. 

  • JM

    It is odd that Java and Scala have different time limits, given that both run on same JVM and scala can, at most, be as fast as Java can(in most cases).

blog comments powered by Disqus

Recent Posts

  • The February Long Challenge has a Surprise in store!
  • Gennady’s blitz·krieg!
  • An overwhelming participation for IOPC2012 :)
  • IIT-Kanpur along with CodeChef presents Techkriti-IOPC 2012
  • A “tie’ing” start to the year

Categories

  • About (15)
  • Announcement (90)
  • Campus Chapters (4)
  • Contests (94)
  • Events (17)
  • Features (19)
  • Meetup (4)
  • Open Source (1)
  • Practice Problems (6)
  • Prizes (32)
  • Programmer of the Month (27)
  • Tech Talks (2)
  • Tutorials (24)
  • Winners (44)

Recent Comments

  • Anonymous on Programmer of the Month for May 2011: Egor Kulikov
  • geciktirici hap on The February Long Challenge has a Surprise in store!
  • raj on The February Long Challenge has a Surprise in store!
  • Vaibhav Setiya on The February Long Challenge has a Surprise in store!
  • Anish_7766 on The February Long Challenge has a Surprise in store!

Recent Pictures

Blogroll

  • Documentation
  • Plugins
  • Suggest Ideas
  • Support Forum
  • Themes
  • WordPress Blog
  • WordPress Planet

Archives

  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009

Company Blogs

  • Directi
  • .pw Corp Blog
  • CEOs Blog

Careers@Directi


  • About CodeChef
  • About Directi
  • CEO's Corner
  • CodeChef Campus Chapters
  • Blogger Community Program
  • User Group Outreach Program

© 2009, Directi Group. All Rights Reserved.

Sponsors