-
Notifications
You must be signed in to change notification settings - Fork 0
/
information
95 lines (78 loc) · 1.81 KB
/
information
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# 2017.01.03 周二
runner基本完成
目前暂时采用只运行一个box
在box下建立不同子目录的方式运行代码
//缺陷:可能代码之间会互相影响
不能采取上述方式
还是采取不同代码在不同box中运行
两次比较输出
一次比较去掉行末空格换行
一次比较去掉所有空格换行
g++ a.cpp -w -std=c++11 -lm -o a.o
isolate -b 3 -m 30240 -M run.meta -r run.error -i data.in -o run.out -v -v -v --run -- ./a.o
isolate meta file sample:
SG:
exitsig:11
time:0.144
time-wall:0.271
max-rss:19996
csw-voluntary:6
csw-forced:17
status:SG
message:Caught fatal signal 11
(push 1 into queue<int> forever)
exitsig:8
time:0.016
time-wall:0.209
max-rss:6856
csw-voluntary:5
csw-forced:2
status:SG
message:Caught fatal signal 8
(a=2,b=0 cout<<a/b<<endl)
TLE:
status:TO
message:Time limit exceeded
killed:1
time:1.600
time-wall:1.628
max-rss:6592
csw-voluntary:3
csw-forced:5
(while(1) )
MLE:
exitsig:11
time:0.024
time-wall:0.171
max-rss:27272 /30240
csw-voluntary:4
csw-forced:1
status:SG
message:Caught fatal signal 11
exitsig:11
time:0.036
time-wall:0.179
max-rss:37240 /40240
csw-voluntary:5
csw-forced:7
status:SG
message:Caught fatal signal 11
install docker
sudo curl -sSL https://get.docker.com | bash
docker 构建流程
1.构建Dockerfile
docker build -t ustb_judger:version .
2.从image运行container
docker run -t --privileged ustb_judger:version(ctrl+c退出)
3.查看本地ip
docker inspect --format='{{json .NetworkSettings.Networks}}' d82816b60724
4.进入容器查看log
docker exec -i -t 22c8102566a8 /bin/bash
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
git can not pull :
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'