Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cf submit没法自动检测场次和题目 #71

Closed
thallium opened this issue Mar 4, 2020 · 7 comments
Closed

cf submit没法自动检测场次和题目 #71

thallium opened this issue Mar 4, 2020 · 7 comments

Comments

@thallium
Copy link

thallium commented Mar 4, 2020

系统: manjaro linux
config文件:

{
  "template": [
    {
      "alias": "cpp",
      "lang": "54",
      "path": "/home/gengchen/ACM/templates/template.cpp",
      "suffix": [
        "cpp"
      ],
      "before_script": "g++ -Wall -Wextra -Wconversion -Wshift-overflow=2 -fsanitize=address -O2 $%full%$ -o $%file%$",
      "script": "./$%file%$",
      "after_script": ""
    }
  ],
  "default": 0,
  "gen_after_parse": true,
  "host": "https://codeforces.com",
  "proxy": "",
  "folder_name": {
    "acmsguru": "acmsguru",
    "contest": "/",
    "group": "group",
    "gym": "gym",
    "root": "cf"
  }
}
@thallium
Copy link
Author

thallium commented Mar 4, 2020

"set folders' name"是新出的功能吗,之前好像没见过,我是不是用错了……

@xalanq
Copy link
Owner

xalanq commented Mar 4, 2020

现在的检测规则是{cf}/{contest}/{contest_id}/{problem_id}/xxx

@xalanq
Copy link
Owner

xalanq commented Mar 4, 2020

所以你要么重新 cf parse,然后到自动生成到目录下提交,要么将原来的 contest 的一堆数字命名的文件夹放到一个 cf/contest/ 文件夹里

@xalanq
Copy link
Owner

xalanq commented Mar 4, 2020

 "folder_name": {
    "acmsguru": "acmsguru",
    "contest": "/",
    "group": "group",
    "gym": "gym",
    "root": "cf"
  }

别把 contest 改成 / ....

@xalanq
Copy link
Owner

xalanq commented Mar 4, 2020

另一种解决方案正在考虑,见 #67 #70

@thallium
Copy link
Author

thallium commented Mar 4, 2020

好的了解了,谢谢

@xalanq xalanq closed this as completed Mar 4, 2020
@lucifer1004
Copy link
Contributor

Suppose your folder structure to be:

  • parent
    • cf
      • group
      • gym
      • 1302

As a temporary workaround, you can use

"folder_name": {
    "acmsguru": "cf/acmsgurfu",
    "contest": "cf",
    "group": "cf/group",
    "gym": "cf/gym",
    "root": "parent"
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants