Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
added codejom admin menu
Commit Description:
added codejom admin menu
# TestPair stores an input-solution pair for a problem. This is used
# in a certain "test-pair"-type problem for the CodeJom competition
# which follows the Google Code Jam format, i.e., a participant only
# submits a solution to a single random input that the participant
# requested. This input-solution pair is a TestPair.
class TestPair < ActiveRecord :: Base
belongs_to :problem
def grade ( submitted_solution )
sols = solution . split
subs = submitted_solution . split
if sols . length == subs . length
subs . length . times do | i |
return false if subs [ i ]!= sols [ i ]
end
return true
else
return false
end
end
end
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings