Skip to content

Commit

Permalink
pC statement
Browse files Browse the repository at this point in the history
  • Loading branch information
littlecube committed Sep 11, 2023
2 parents 3ad0a66 + fb1018b commit a2f3ccf
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 73 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto eol=lf
# Auto detect text files and perform LF normalization
* text=auto
1 change: 1 addition & 0 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ on:

jobs:
run:
if: ${{ github.repository != 'TNFSH-Programming-Contest/tps-starter' }}
uses: TNFSH-Programming-Contest/tps-actions/.github/workflows/build-pdf.yml@main
with:
problems: ${{ inputs.problems }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- '*/gen/**'
- '*/solution/**'
- '*/validator/**'
- '*/problem.json'
- '*/solutions.json'
- '*/subtasks.json'
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/dump-ranking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Dump ranking

on:
workflow_dispatch:
inputs:
url:
description: 'URL to ranking'

jobs:
run:
uses: TNFSH-Programming-Contest/tps-actions/.github/workflows/dump-ranking.yml@main
with:
url: ${{ inputs.url }}
14 changes: 14 additions & 0 deletions .github/workflows/list-subtasks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: List subtasks

on:
push:
branches:
- '**'
paths:
- '*/subtasks.json'
workflow_dispatch:

jobs:
run:
if: ${{ github.repository != 'TNFSH-Programming-Contest/tps-starter' }}
uses: TNFSH-Programming-Contest/tps-actions/.github/workflows/list-subtasks.yml@main
2 changes: 1 addition & 1 deletion .problems.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
["A", "B", "C", "D"]
["C"]
16 changes: 0 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
nothing:

import-pA:
cmsImportTask ./pA/ -u $(if $(s), , --no-statement)

import-pB:
cmsImportTask ./pB/ -u $(if $(s), , --no-statement)

import-pC:
cmsImportTask ./pC/ -u $(if $(s), , --no-statement)

import-pD:
cmsImportTask ./pD/ -u $(if $(s), , --no-statement)

# NEWPROBELM

merge-pdfs: pA/attachments/problems.pdf

pA/attachments/problems.pdf: p*/statement/index.pdf
bash merge_pdfs.sh
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude:
# NEWPROBLEM
55 changes: 0 additions & 55 deletions cover.tex
Original file line number Diff line number Diff line change
@@ -1,55 +0,0 @@
\documentclass[a4paper]{article}
\title{Cover}
\usepackage[left=2cm,right=2cm,top=3cm,bottom=2cm]{geometry}
\usepackage{fontspec}
\usepackage{xeCJK}
\setCJKmainfont[]{Noto Sans Mono CJK TC}
\setCJKmonofont[]{Noto Sans Mono CJK TC}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
\usepackage{anyfontsize}
\usepackage{t1enc}
\usepackage{listings}
\lstset{language=C++,basicstyle=\ttfamily}
\begin{document}

\begin{center}
\textbf{\huge 範例競賽}\\
\vspace{5mm}
\textbf{\huge 試題本}\\
\vspace{10mm}
\rule{17cm}{2pt}\\
\vspace{5mm}

\huge 競賽規則\\
\end{center}

\fontsize{14pt}{20pt}\selectfont
\begin{enumerate}
\setlength\itemsep{0.5pt}
\item 競賽時間:2022/01/01 00:00 \textasciitilde \, 23:59,共 24 小時。
\item 本次競賽試題共 1 題,每題皆有子任務。
\item 為了愛護地球,本次競賽題本僅提供電子檔,不提供紙本。
\item 每題的分數為該題所有子任務得分數加總;單筆子任務得分數為各筆繳交在該筆得到的最大分數。
\item 全部題目的輸入皆為標準輸入。
\item 全部題目的輸出皆為標準輸出。
\item 所有輸入輸出請嚴格遵守題目要求,多或少的換行及空格皆有可能造成裁判系統判斷為答案錯誤。
\item 每題每次上傳間隔為 120 秒,裁判得視情況調整。
\item 所有試題相關問題請於競賽系統中提問,題目相關公告也會公告於競賽系統,請密切注意。
\item 如有電腦問題,請舉手向監考人員反映。
\item 如有如廁需求,須經過監考人員同意方可離場。
\item 不得攜帶任何參考資料,但競賽系統上的參考資料可自行閱讀。
\item 不得自行攜帶隨身碟,如需備份資料,請將資料儲存於電腦 D 槽。
\item 競賽中請勿交談。請勿做出任何會干擾競賽的行為。
\item 如需使用 C++ 的 \lstinline{std::cin} 或 \lstinline{std::cout} 可將以下程式碼插入 main function 以及將 \lstinline{endl} 取代為 \lstinline{'\n'} 來優化輸入輸出速度。唯須注意不可與 \lstinline{cstdio} 混用。
\begin{lstlisting}
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
\end{lstlisting}

\end{enumerate}

\begin{center}
\rule{17cm}{2pt}\\
\end{center}
\end{document}

0 comments on commit a2f3ccf

Please sign in to comment.