ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Time limit vs Time Limit per case
Posted by blaklites 18 Jun 2012 03:34
Hello, I have been solving problems in uva online judge and have participated in acm regional contest from my country too. I am new to TIME LIMIT PER CASE style problem solving. What is the actual difference between this and the usual Time Limit we have in in ACM ICPC/ Problem from uva online and other similar sites. As far as I have learned, we assume something around O(x) where x=10^8 to be around 1 sec. Keeping that in mind, we solve problem in uva. So if my solution uses something around 10*7 instructions per test case, and there are 10 test cases maximum, I assume that the code will run within 1 second as 10^7*10=10^8.

How does this work in the Time Limit per case system in sites like sgu/timus. If a problem has time limit per case of 0.5 sec, what should be the complexity, or say roughly number of instructions in my solution? How shall I design my algorithm than?