Skip to content

Commit

Permalink
Update docker workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Apr 4, 2024
1 parent 99ea548 commit 5dc53e0
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN curl https://rclone.org/install.sh | bash

RUN mkdir /workdir
RUN mkdir /workdir/problem-package
COPY judger/workdirs/docker/rclone.conf /workdir/rclone.conf
COPY judger/workdirs/docker/ /workdir

WORKDIR /workdir
ENV RUST_LOG=DEBUG
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
9 changes: 9 additions & 0 deletions judger/workdirs/docker/problem-package/hello-world/ans.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <iostream>

using namespace std;

int main() {
string s;
cin >> s;
cout << "Hello! " << s << endl;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello! world!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
world!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello! oj-lab!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oj-lab!
Binary file not shown.
Binary file not shown.
Binary file not shown.
13 changes: 13 additions & 0 deletions judger/workdirs/docker/problem-package/hello-world/problem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Hello world

limits:
time_multiplier: 5
time_safety_margin: 2
memory: 2048
output: 8
code: 128
compilation_time: 60
compilation_memory: 2048
validation_time: 60
validation_memory: 2048
validation_output: 8

0 comments on commit 5dc53e0

Please sign in to comment.