From 338313f3fb97aa96b7cf75596ddcbf55f6a9002d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 21 Mar 2025 01:22:46 +0900 Subject: feat(frontend): show ranking in 1v1 watch page --- .../app/components/Gaming/ProblemColumnContent.tsx | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 frontend/app/components/Gaming/ProblemColumnContent.tsx (limited to 'frontend/app/components/Gaming/ProblemColumnContent.tsx') diff --git a/frontend/app/components/Gaming/ProblemColumnContent.tsx b/frontend/app/components/Gaming/ProblemColumnContent.tsx new file mode 100644 index 0000000..b85cc6d --- /dev/null +++ b/frontend/app/components/Gaming/ProblemColumnContent.tsx @@ -0,0 +1,57 @@ +import FoldableBorderedContainerWithCaption from "../FoldableBorderedContainerWithCaption"; +import CodeBlock from "./CodeBlock"; +import InlineCode from "./InlineCode"; + +type Props = { + description: string; + sampleCode: string; +}; + +export default function ProblemColumnContent({ + description, + sampleCode, +}: Props) { + return ( + <> + +
+					{description}
+				
+
+ + + + +
+

+ スコアはコード中の全 ASCII + 空白文字を除去した後のバイト数です。また、先頭や末尾に置かれた PHP + タグ (、 + ) はカウントされません。 +

+

+ 同じスコアを出した場合、より提出が早かったプレイヤーの勝ちとなります。 +

+

+ この環境の PHP バージョンは{" "} + 8.4.4 です。 mbstring + を除くほとんどの拡張は無効化されています。 + また、ファイルやネットワークアクセスはできません。 +

+

+ テストの成否は、標準出力へ出力された文字列を比較して判定されます。 + 末尾の改行はあってもなくても構いません。 + 標準エラー出力の内容は無視されますが、fatal error + 等で実行が中断された場合は失敗扱いとなります。 +

+

+ なお、 + は{" "} + {" "} + に設定されています。 +

+
+
+ + ); +} -- cgit v1.2.3-70-g09d2