generated from TNFSH-Programming-Contest/tps-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
34 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
["A", "B", "C", "D"] | ||
["C"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
exclude: | ||
# NEWPROBLEM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||