1 Star 0 Fork 0

赏镜猎人/Problems Archive 2024

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
lemonPack.py 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
赏镜猎人 提交于 2024-03-19 08:10 . first commit
import os
import sys
targetDirectory = "lemonpack/" + input()
if targetDirectory[-1] == '/':
targetDirectory = targetDirectory[:-1]
os.system("mkdir -p " + targetDirectory)
os.system("mkdir -p " + targetDirectory + "/data")
os.system("mkdir -p " + targetDirectory + "/sample")
os.system("mkdir -p " + targetDirectory + "/source/std")
while True:
args = list(input().split())
directory, short = args[0], args[1]
os.system("mkdir -p " + targetDirectory + "/data/" + short)
os.system("mkdir -p " + targetDirectory + "/sample/" + short)
os.system("mkdir -p " + targetDirectory + "/source/std/" + short)
dataDirectory = directory + "/tests"
testfiles = os.listdir(dataDirectory)
for file in testfiles:
if 'samples' in file:
os.system('cp ' + dataDirectory + '/' + file + ' ' + targetDirectory + '/sample/' + short + '/' + file)
else:
os.system('cp ' + dataDirectory + '/' + file + ' ' + targetDirectory + '/data/' + short + '/' + file)
os.system('cp {}/std.cpp {}/source/std/{}/{}.cpp'.format(directory, targetDirectory, short, short))
if 'spj' in args:
os.system('cp {}/checker.cpp {}/data/{}/checker.cpp'.format(directory, targetDirectory, short))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bouncy-hunter/problems-archive-2024.git
[email protected]:bouncy-hunter/problems-archive-2024.git
bouncy-hunter
problems-archive-2024
Problems Archive 2024
master

搜索帮助