The problem.json file

Manifest!

The problem.json file contains the basic information of a problem. It is placed under the problem folder.

You need basic Json skills before continuing. Google it if you don't know.

The Problem Attribute

The file itself is a object, so start it by writing a pair of {}

The TestMap

TestMap contains information for subtasks. Each key maps to the id of a subtask, each value maps to the configuration for that subtask. Each subtask has the following arguments:

Example Problem.json

{
	"name":"Test Problem",
	"tl":1000,
	"ml":262144,
	"ver":7,
	"order":["easy","hard"],
	"diff":2.0,
	"tests":{
		"easy":{
			"scheme":"min",
			"requirement:":[],
			"toEnd":true,
			"score":0.6
		},
		"hard":{
			"scheme":"sum",
			"requirement":["easy"],
			"toEnd":false,
			"score":0.2
		}
	}
}

Don't forget that the ID of the subtask is the name of the subtask folder!

Last updated