template for the problem.

This commit is contained in:
2023-03-28 17:09:12 +08:00
parent bcb3d23e37
commit 05c85fd9b0
5 changed files with 95 additions and 87 deletions

View File

@@ -231,3 +231,39 @@ export const LANGUAGE_SHOW_VALUE = {
JavaScript: "JS",
Golang: "Go",
}
const cTemplate = `//TEMPLATE BEGIN
#include <stdio.h>
int main() {
printf("黄岩一职");
return 0;
}
//TEMPLATE END`
const cppTemplate = `//TEMPLATE BEGIN
#include <iostream>
int main() {
return 0;
}
//TEMPLATE END`
const blankTemplate = `//PREPEND BEGIN
//PREPEND END
//TEMPLATE BEGIN
//TEMPLATE END
//APPEND BEGIN
//APPEND END`
export const CODE_TEMPLATES = {
C: cTemplate,
"C++": cppTemplate,
Python2: blankTemplate,
Python3: blankTemplate,
Java: blankTemplate,
JavaScript: blankTemplate,
Golang: blankTemplate,
}