Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
d633d4d4
Commit
d633d4d4
authored
4 years ago
by
Jiří Setnička
Browse files
Options
Downloads
Patches
Plain Diff
Score: Drobnosti v hláškách
#197
parent
766f9d8e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/score.py
+7
-7
7 additions, 7 deletions
mo/score.py
with
7 additions
and
7 deletions
mo/score.py
+
7
−
7
View file @
d633d4d4
...
@@ -7,7 +7,7 @@ from typing import Any, List, Tuple, Optional, Dict, Union
...
@@ -7,7 +7,7 @@ from typing import Any, List, Tuple, Optional, Dict, Union
import
mo.db
as
db
import
mo.db
as
db
from
mo.util
import
normalize_grade
from
mo.util
import
normalize_grade
from
mo.util_format
import
inflect_number
,
inflect_with_number
from
mo.util_format
import
inflect_with_number
class
ScoreOrder
:
class
ScoreOrder
:
...
@@ -327,8 +327,8 @@ class Score:
...
@@ -327,8 +327,8 @@ class Score:
if
step
!=
0
:
if
step
!=
0
:
self
.
_add_message
(
self
.
_add_message
(
"
info
"
,
"
info
"
,
f
"
Výpočet na úrovni kola
{
self
.
_prev_rounds
[
step
-
1
].
round_code
()
}
nestačil,
"
f
"
Výpočet na úrovni kola
{
self
.
_prev_rounds
[
step
-
1
].
round_code
_short
()
}
nestačil,
"
+
f
"
započítávám body z kola
{
self
.
_prev_rounds
[
step
].
round_code
()
}
"
+
f
"
započítávám body z kola
{
self
.
_prev_rounds
[
step
].
round_code
_short
()
}
.
"
)
)
tasks_by_difficulty
=
sorted
(
tasks_by_difficulty
=
sorted
(
...
@@ -345,15 +345,15 @@ class Score:
...
@@ -345,15 +345,15 @@ class Score:
self
.
_add_message
(
self
.
_add_message
(
"
warning
"
,
"
warning
"
,
f
"
Úlohy
{
last_task
.
task
.
code
}
a
{
task
.
task
.
code
}
mají stejnou vypočtenou obtížnost
"
f
"
Úlohy
{
last_task
.
task
.
code
}
a
{
task
.
task
.
code
}
mají stejnou vypočtenou obtížnost
"
+
f
"
{
difficulty
}
, pro výpočet obtížnosti je řadím podle kódu úlohy
"
+
f
"
{
difficulty
}
, pro výpočet obtížnosti je řadím podle kódu úlohy
.
"
)
)
difficulty_report
.
append
(
f
"
{
task
.
task
.
code
}
(
{
task
.
get_difficulty_str
()
}
=
{
float
(
difficulty
)
:
.
2
f
}
)
"
)
difficulty_report
.
append
(
f
"
{
task
.
task
.
code
}
(
{
task
.
get_difficulty_str
()
}
=
{
float
(
difficulty
)
:
.
2
f
}
)
"
)
last_task
,
last_difficulty
=
task
,
difficulty
last_task
,
last_difficulty
=
task
,
difficulty
self
.
_add_message
(
self
.
_add_message
(
"
info
"
,
"
info
"
,
f
"
Průměrné body úloh kola
{
self
.
_prev_rounds
[
step
].
round_code
()
}
od nejobtížnější:
"
f
"
Průměrné body úloh kola
{
self
.
_prev_rounds
[
step
].
round_code
_short
()
}
od nejobtížnější:
"
+
"
,
"
.
join
(
difficulty_report
)
+
"
,
"
.
join
(
difficulty_report
)
+
"
.
"
)
)
for
result
in
self
.
_results
.
values
():
for
result
in
self
.
_results
.
values
():
...
@@ -394,7 +394,7 @@ class Score:
...
@@ -394,7 +394,7 @@ class Score:
if
self
.
_exists_same_order_key
():
if
self
.
_exists_same_order_key
():
self
.
_add_message
(
self
.
_add_message
(
"
error
"
,
"
error
"
,
"
I po započítání všech úloh (včetně minulých kol) a ročníků účastníků existují sdílená místa. Je potřeba určit pořadí losem
"
"
I po započítání všech úloh (včetně minulých kol) a ročníků účastníků existují sdílená místa. Je potřeba určit pořadí losem
.
"
)
)
# Další kontroly
# Další kontroly
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment