parent
efc25bd26a
commit
e785c544cb
|
@ -167,3 +167,6 @@ System Error:系统错误。在进行代码测评时,测评机器发送错
|
|||
- Vue
|
||||
- 组件库 [Element-plus](https://element-plus.org/zh-CN/component/overview.html)
|
||||
- 文本编辑器 TODO
|
||||
|
||||
|
||||
|
||||
|
|
3132
log/onlineoj.log
3132
log/onlineoj.log
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -405,10 +405,11 @@ public class CodeServiceImpl extends ServiceImpl<CodeMapper, Code> implements Co
|
|||
String inputData = testCase.getInput();
|
||||
String outputData = "";
|
||||
try {
|
||||
Process process = Runtime.getRuntime().exec("python3 main.py", null, new File(code.getCodePath()));
|
||||
Process process = Runtime.getRuntime().exec("python main.py", null, new File(code.getCodePath()));
|
||||
if (!inputData.equals("")) {
|
||||
BufferedWriter bout = new BufferedWriter(new OutputStreamWriter(process.getOutputStream()));
|
||||
bout.write(inputData);
|
||||
bout.flush();
|
||||
bout.close();
|
||||
}
|
||||
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
<div class="my-split">
|
||||
<Split v-model="split1">
|
||||
<template #left>
|
||||
<el-scrollbar height="640px">
|
||||
<el-scrollbar height="640px" style="width: 100%">
|
||||
<div class="demo-split-pane problemDetail">
|
||||
<el-row>
|
||||
<el-col :span="24" class="title">{{ problem.title }}</el-col>
|
||||
<el-col :span="24" class="t">题目描述</el-col>
|
||||
<el-col :span="24" class="v">{{ problem.description }}</el-col>
|
||||
<el-col :span="24" class="t">输入描述</el-col>
|
||||
<el-col :span="24" class="v">{{ problem.describeInput }}</el-col>
|
||||
<el-col :span="24" class="t">输出描述</el-col>
|
||||
<el-col :span="24" class="v">{{ problem.describeOutput }}</el-col>
|
||||
<el-col :span="24" class="t">输入样例</el-col>
|
||||
<el-col :span="8" class="v c">{{ problem.input }}</el-col>
|
||||
<el-col :span="24" class="t">输出样例</el-col>
|
||||
<el-col :span="8" class="v c">{{ problem.output }}</el-col>
|
||||
<el-row :gutter="0">
|
||||
<el-col class="title">{{ problem.title }}</el-col>
|
||||
<el-col class="t">题目描述</el-col>
|
||||
<el-col class="v">{{ problem.description }}</el-col>
|
||||
<el-col class="t">输入描述</el-col>
|
||||
<el-col class="v">{{ problem.describeInput }}</el-col>
|
||||
<el-col class="t">输出描述</el-col>
|
||||
<el-col class="v">{{ problem.describeOutput }}</el-col>
|
||||
<el-col class="t">输入样例</el-col>
|
||||
<el-col class="v c">{{ problem.input }}</el-col>
|
||||
<el-col class="t">输出样例</el-col>
|
||||
<el-col class="v c">{{ problem.output }}</el-col>
|
||||
</el-row>
|
||||
|
||||
</div>
|
||||
|
@ -115,7 +115,7 @@ export default {
|
|||
name: "Problem",
|
||||
data() {
|
||||
return {
|
||||
split1: 0.5,
|
||||
split1: 0.3,
|
||||
split2: 0.8,
|
||||
activeIndex: '1',
|
||||
language: "C",
|
||||
|
@ -398,6 +398,9 @@ export default {
|
|||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
|
||||
|
||||
.split {
|
||||
height: 100%;
|
||||
/*height: 650px;*/
|
||||
|
@ -411,7 +414,7 @@ export default {
|
|||
}
|
||||
|
||||
.problemDetail {
|
||||
padding: 10px 20px !important;
|
||||
padding: 10px 10px !important;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue