Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified manual/llmanual.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions manual/src/content/docs/contest.typ
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ int main(int argc, char **argv)

选中一行或多行后按 `Delete` 键,即可删除对应的输入输出文件。

在下面可以设置本测试点的分值、时间限制和空间限制。可以设置的最大分值为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MB
在下面可以设置本测试点的分值、时间限制和空间限制。可以设置的最大分值为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MiB

== 批量添加测试点

Expand Down Expand Up @@ -307,4 +307,4 @@ int main(int argc, char **argv)

请尽量保证输入输出文件能够按上述方法唯一配对,否则产生的结果不可预料。

其中可以设置的试题总分值最大为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MB
其中可以设置的试题总分值最大为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MiB
2 changes: 1 addition & 1 deletion manual/src/content/docs/issue.typ
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sudo apt install bubblewrap

== 测评时使用更多栈空间

Windows 平台下可以在 `g++` 编译时添加 `-Wl,--stack=2147483647` 命令来开启约 2048 MB 栈空间。
Windows 平台下可以在 `g++` 编译时添加 `-Wl,--stack=2147483647` 命令来开启约 2048 MiB 栈空间。

Linux 平台下的栈空间限制和题目的内存限制相同。

Expand Down
4 changes: 2 additions & 2 deletions manual/src/content/docs/settings.typ
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ LemonLime 没有设置编译器时(比如第一次运行)会自动弹出添

/ 默认额外时间限制比率: 新建一个测试点默认的额外时间限制比率,默认为 0.1。(因 LemonLime 采用 realtime 作为判定 TLE 的标准,需要适当调整此值以免造成误判,参见 #link("https://github.com/Project-LemonLime/Project_LemonLime/issues/84")[issues/84]。)

/ 默认空间限制: 新建一个测试点时默认的空间限制,默认为 512 MB,可以设置的最大值为 16777216 MB
/ 默认空间限制: 新建一个测试点时默认的空间限制,默认为 512 MiB,可以设置的最大值为 16777216 MiB

/ 编译时间限制: 测试时允许编译器运行的最长时间,默认为 10000 ms,可以设置的最大值为 86400000 ms,即 1 天。

/ 检验器时间限制: 对于使用自定义校验器的试题,测试时允许校验器运行的最长时间,默认为 10000 ms,可以设置的最大值为 86400000 ms,即 1 天。

/ 源程序大小限制: 测试时可以接受的最大源程序大小,可以设置的最大值为 262144 KB,即 256 MB。(1 KB = 1024 B)
/ 源程序大小限制: 测试时可以接受的最大源程序大小,可以设置的最大值为 262144 KiB,即 256 MiB。(1 KiB = 1024 B)

/ 最大重测次数: 当测试某测试点时程序运行时间不超过时间限制的 1.1 倍,或超时不超过 100ms 时,LemonLime 会对该测试点进行重测。可以设置的最大值为 12。

Expand Down
2 changes: 1 addition & 1 deletion src/addcompilerwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ auto AddCompilerWizard::validateCurrentPage() -> bool {
text += tr("[Java Compiler]") + "\n";
text += tr("javac Path: ") + ui->javacPath->text() + "\n";
text += tr("java Path: ") + ui->javaPath->text() + "\n";
text += tr("Memory Limit: %1 MB").arg(ui->javaMemoryLimit->text()) + "\n";
text += tr("Memory Limit: %1 MiB").arg(ui->javaMemoryLimit->text()) + "\n";
text += "\n";
}

Expand Down
4 changes: 2 additions & 2 deletions src/component/exportutil/exportutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ auto ExportUtil::getContestantHtmlCode(Contest *contest, Contestant *contestant,
htmlCode += "<td>";

if (memoryUsed[j][k] != -1) {
htmlCode += QString("").asprintf("%.3lf MB", double(memoryUsed[j][k]) / 1024 / 1024);
htmlCode += QString("").asprintf("%.3lf MiB", double(memoryUsed[j][k]) / 1024 / 1024);
} else {
htmlCode += tr("Invalid");
}
Expand Down Expand Up @@ -539,7 +539,7 @@ auto ExportUtil::getSmallerContestantHtmlCode(Contest *contest, Contestant *cont
htmlCode += "<td>";

if (memoryUsed[j][k] != -1) {
htmlCode += QString("").asprintf("%.3lf MB", double(memoryUsed[j][k]) / 1024 / 1024);
htmlCode += QString("").asprintf("%.3lf MiB", double(memoryUsed[j][k]) / 1024 / 1024);
} else {
htmlCode += tr("Invalid");
}
Expand Down
2 changes: 1 addition & 1 deletion src/detaildialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void DetailDialog::refreshViewer(Contest *_contest, Contestant *_contestant) {
htmlCode += R"(<td nowrap="nowrap" align="center" valign="middle">)";

if (memoryUsed[j][k] != -1) {
htmlCode += QString("").asprintf("%.3lf MB", double(memoryUsed[j][k]) / 1024 / 1024);
htmlCode += QString("").asprintf("%.3lf MiB", double(memoryUsed[j][k]) / 1024 / 1024);
} else {
htmlCode += tr("Invalid");
}
Expand Down
4 changes: 2 additions & 2 deletions src/exttestcasetable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void ExtTestCaseTable::refreshTask(Task *nowTask) {
if (editTask->getTaskType() == Task::AnswersOnly)
tipStr = QString(tr("Test Case #%1:\n%2 Pt")).arg(i + 1).arg(score);
else
tipStr = QString(tr("Test Case #%1:\n%2 Pt\nTime Limit: %3 ms\nMemory Limit: %4 MB"))
tipStr = QString(tr("Test Case #%1:\n%2 Pt\nTime Limit: %3 ms\nMemory Limit: %4 MiB"))
.arg(i + 1)
.arg(score)
.arg(times)
Expand All @@ -138,7 +138,7 @@ void ExtTestCaseTable::refreshTask(Task *nowTask) {
addItem(nowrow, 0, QString(tr("#%1 :: %2 pt, %3")).arg(i + 1).arg(score).arg(depStr), tipStr);
else
addItem(nowrow, 0,
QString(tr("#%1 :: %2 pt, TL %3 ms, ML %4 MB, %5"))
QString(tr("#%1 :: %2 pt, TL %3 ms, ML %4 MiB, %5"))
.arg(i + 1)
.arg(score)
.arg(times)
Expand Down
2 changes: 1 addition & 1 deletion src/forms/addcompilerwizard.ui
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@
<item>
<widget class="QLabel" name="javaMbLabel">
<property name="text">
<string>MB</string>
<string>MiB</string>
</property>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion src/forms/addtaskdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</font>
</property>
<property name="text">
<string>MB</string>
<string>MiB</string>
</property>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion src/forms/addtestcaseswizard.ui
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
</font>
</property>
<property name="text">
<string>MB</string>
<string>MiB</string>
</property>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion src/forms/exttestcaseupdaterdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
</font>
</property>
<property name="text">
<string>MB</string>
<string>MiB</string>
</property>
</widget>
</item>
Expand Down
4 changes: 2 additions & 2 deletions src/forms/generalsettings.ui
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
</font>
</property>
<property name="text">
<string>MB</string>
<string>MiB</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -667,7 +667,7 @@
</font>
</property>
<property name="text">
<string>KB</string>
<string>KiB</string>
</property>
</widget>
</item>
Expand Down
2 changes: 1 addition & 1 deletion src/forms/testcaseeditwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
</font>
</property>
<property name="text">
<string>MB</string>
<string>MiB</string>
</property>
</widget>
</item>
Expand Down
4 changes: 2 additions & 2 deletions src/judgingdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void JudgingDialog::singleCaseFinished(QString contestantName, int progress, int
addtext += tr(" %1 ms").arg(timeUsed);

if (memoryUsed >= 0)
addtext += tr(" %1 MB").arg(1.00 * memoryUsed / 1024.00 / 1024.00);
addtext += tr(" %1 MiB").arg(1.00 * memoryUsed / 1024.00 / 1024.00);

if (scoreGot > 0)
scoretext = tr(" %1 %2").arg(scoreGot).arg(scoreGot == 1 ? tr("Pt") : tr("Pts"));
Expand All @@ -129,7 +129,7 @@ void JudgingDialog::singleCaseFinished(QString contestantName, int progress, int
addtext += tr(" %1 ms").arg(timeUsed);

if (memoryUsed >= 0)
addtext += tr(" %1 MB").arg(1.00 * memoryUsed / 1024.00 / 1024.00);
addtext += tr(" %1 MiB").arg(1.00 * memoryUsed / 1024.00 / 1024.00);

if (scoreGot > 0) {
scoretext = tr(" %1 %2").arg(scoreGot).arg(scoreGot == 1 ? tr("Pt") : tr("Pts"));
Expand Down
22 changes: 11 additions & 11 deletions translations/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<translation></translation>
</message>
<message>
<source>MB</source>
<source>MiB</source>
<translation></translation>
</message>
<message>
Expand Down Expand Up @@ -220,7 +220,7 @@
<translation></translation>
</message>
<message>
<source>Memory Limit: %1 MB</source>
<source>Memory Limit: %1 MiB</source>
<translation></translation>
</message>
<message>
Expand Down Expand Up @@ -267,7 +267,7 @@
<translation></translation>
</message>
<message>
<source>MB</source>
<source>MiB</source>
<translation></translation>
</message>
<message>
Expand Down Expand Up @@ -306,7 +306,7 @@
<translation></translation>
</message>
<message>
<source>MB</source>
<source>MiB</source>
<translation></translation>
</message>
<message>
Expand Down Expand Up @@ -905,7 +905,7 @@
<source>Test Case #%1:
%2 Pt
Time Limit: %3 ms
Memory Limit: %4 MB</source>
Memory Limit: %4 MiB</source>
<translation></translation>
</message>
<message>
Expand All @@ -923,7 +923,7 @@ Depends: </source>
<translation></translation>
</message>
<message>
<source>#%1 :: %2 pt, TL %3 ms, ML %4 MB, %5</source>
<source>#%1 :: %2 pt, TL %3 ms, ML %4 MiB, %5</source>
<translation></translation>
</message>
</context>
Expand Down Expand Up @@ -966,7 +966,7 @@ Depends: </source>
<translation></translation>
</message>
<message>
<source>MB</source>
<source>MiB</source>
<translation></translation>
</message>
<message>
Expand Down Expand Up @@ -1053,7 +1053,7 @@ Depends: </source>
<translation></translation>
</message>
<message>
<source>MB</source>
<source>MiB</source>
<translation></translation>
</message>
<message>
Expand All @@ -1065,7 +1065,7 @@ Depends: </source>
<translation></translation>
</message>
<message>
<source>KB</source>
<source>KiB</source>
<translation></translation>
</message>
<message>
Expand Down Expand Up @@ -1156,7 +1156,7 @@ Depends: </source>
<translation></translation>
</message>
<message>
<source> %1 MB</source>
<source> %1 MiB</source>
<translation></translation>
</message>
<message>
Expand Down Expand Up @@ -2586,7 +2586,7 @@ p, li { white-space: pre-wrap; }
<translation></translation>
</message>
<message>
<source>MB</source>
<source>MiB</source>
<translation></translation>
</message>
<message>
Expand Down
Loading
Loading