galb-dai commited on
Commit
d9b5156
·
1 Parent(s): ea11ee1

Update CSS.

Browse files
Files changed (3) hide show
  1. app.py +3 -3
  2. src/about.py +3 -3
  3. src/display/css_html_js.py +1 -1
app.py CHANGED
@@ -239,7 +239,7 @@ with blocks:
239
  md_warmup = gr.Markdown(
240
  value=(
241
  '<p style="text-align: center;"><code>Union-of-Paths-and-Cycles</code></p>\n'
242
- "Given a tree-like graph $G=(V,E)$ and a weight function $w:V\\to\\mathbb{N}$, compute the sum of all weights of sets $S\\subseteq V$ such that the induced subgraph $G[S]$ is a disjoint union of paths and cycles."
243
  ),
244
  latex_delimiters=_latex,
245
  elem_classes=["f1-problem-markdown"],
@@ -247,7 +247,7 @@ with blocks:
247
  md_tier1 = gr.Markdown(
248
  value=(
249
  '<p style="text-align: center;"><code>Maximal-Union-of-Paths-and-Cycles</code></p>\n'
250
- "Given a tree-like graph $G=(V,E)$ and a weight function $w:V\\to\\mathbb{N}$, compute the sum of all weights of sets $S\\subseteq V$ such that $G[S]$ is a disjoint union of paths and cycles and $S$ is maximal with respect to this property."
251
  ),
252
  visible=False,
253
  latex_delimiters=_latex,
@@ -256,7 +256,7 @@ with blocks:
256
  md_tier2 = gr.Markdown(
257
  value=(
258
  '<p style="text-align: center;"><code>Maximal-Union-of-Cycles</code></p>\n'
259
- "Given a tree-like graph $G=(V,E)$ and a weight function $w:V\\to\\mathbb{N}$, compute the sum of all weights of sets $S\\subseteq V$ such that $G[S]$ is a disjoint union of cycles and $S$ is maximal with respect to this property."
260
  ),
261
  visible=False,
262
  latex_delimiters=_latex,
 
239
  md_warmup = gr.Markdown(
240
  value=(
241
  '<p style="text-align: center;"><code>Union-of-Paths-and-Cycles</code></p>\n'
242
+ "Given a tree-like graph $G=(V,E)$ and a weight function $w:V\\to\\mathbb{N}$, compute the sum of all weights of sets $S\\subseteq V$ such that the induced subgraph $G[S]$ is a <b>disjoint union of paths and cycles</b>."
243
  ),
244
  latex_delimiters=_latex,
245
  elem_classes=["f1-problem-markdown"],
 
247
  md_tier1 = gr.Markdown(
248
  value=(
249
  '<p style="text-align: center;"><code>Maximal-Union-of-Paths-and-Cycles</code></p>\n'
250
+ "Given a tree-like graph $G=(V,E)$ and a weight function $w:V\\to\\mathbb{N}$, compute the sum of all weights of sets $S\\subseteq V$ such that $G[S]$ is a <b>disjoint union of paths and cycles</b> and $S$ is <b>maximal</b> with respect to this property."
251
  ),
252
  visible=False,
253
  latex_delimiters=_latex,
 
256
  md_tier2 = gr.Markdown(
257
  value=(
258
  '<p style="text-align: center;"><code>Maximal-Union-of-Cycles</code></p>\n'
259
+ "Given a tree-like graph $G=(V,E)$ and a weight function $w:V\\to\\mathbb{N}$, compute the sum of all weights of sets $S\\subseteq V$ such that $G[S]$ is a <b>disjoint union of cycles</b> and $S$ is <b>maximal</b> with respect to this property."
260
  ),
261
  visible=False,
262
  latex_delimiters=_latex,
src/about.py CHANGED
@@ -24,17 +24,17 @@ WHAT_IS_F1_HTML_TOP = f"""
24
  </div>
25
  <div class="f1-grid-row" role="row">
26
  <div class="f1-grid-cell" role="cell">Warmup</div>
27
- <div class="f1-grid-cell" role="cell" style="text-align: center;">100</div>
28
  <div class="f1-grid-cell" role="cell">A set of “easier” problems.</div>
29
  </div>
30
  <div class="f1-grid-row" role="row">
31
  <div class="f1-grid-cell" role="cell">Tier 1</div>
32
- <div class="f1-grid-cell" role="cell" style="text-align: center;">100</div>
33
  <div class="f1-grid-cell" role="cell">A set of challenging problems.</div>
34
  </div>
35
  <div class="f1-grid-row" role="row">
36
  <div class="f1-grid-cell" role="cell">Tier 2</div>
37
- <div class="f1-grid-cell" role="cell" style="text-align: center;">20</div>
38
  <div class="f1-grid-cell" role="cell">A set of highly challenging problems.</div>
39
  </div>
40
  </div>
 
24
  </div>
25
  <div class="f1-grid-row" role="row">
26
  <div class="f1-grid-cell" role="cell">Warmup</div>
27
+ <div class="f1-grid-cell" role="cell">100</div>
28
  <div class="f1-grid-cell" role="cell">A set of “easier” problems.</div>
29
  </div>
30
  <div class="f1-grid-row" role="row">
31
  <div class="f1-grid-cell" role="cell">Tier 1</div>
32
+ <div class="f1-grid-cell" role="cell">100</div>
33
  <div class="f1-grid-cell" role="cell">A set of challenging problems.</div>
34
  </div>
35
  <div class="f1-grid-row" role="row">
36
  <div class="f1-grid-cell" role="cell">Tier 2</div>
37
+ <div class="f1-grid-cell" role="cell">20</div>
38
  <div class="f1-grid-cell" role="cell">A set of highly challenging problems.</div>
39
  </div>
40
  </div>
src/display/css_html_js.py CHANGED
@@ -40,7 +40,7 @@ custom_css = """
40
  display: inline-block; background: #f9fafb !important; padding: 2px 8px; border-radius: 6px; margin-left: auto; margin-right: auto;
41
  }
42
 
43
- .f1-problem-markdown > * { margin-top: 7px; margin-bottom: 7px; }
44
 
45
  /* Problem body: padding + comfortable line-height inside Markdown + small space before tabs */
46
  #f1-examples .f1-problem-markdown .markdown { background: var(--f1-bg-muted); border: 1px solid var(--f1-border); border-radius: 8px; padding: 18px; margin: 10px 14px 10px 14px; line-height: 1.8; }
 
40
  display: inline-block; background: #f9fafb !important; padding: 2px 8px; border-radius: 6px; margin-left: auto; margin-right: auto;
41
  }
42
 
43
+ .f1-problem-markdown > * { margin-top: 7px; margin-bottom: 7px; line-height: 1.8; }
44
 
45
  /* Problem body: padding + comfortable line-height inside Markdown + small space before tabs */
46
  #f1-examples .f1-problem-markdown .markdown { background: var(--f1-bg-muted); border: 1px solid var(--f1-border); border-radius: 8px; padding: 18px; margin: 10px 14px 10px 14px; line-height: 1.8; }