diff --git a/manual/llmanual.pdf b/manual/llmanual.pdf
index b483fd83..fa45d638 100644
Binary files a/manual/llmanual.pdf and b/manual/llmanual.pdf differ
diff --git a/manual/src/content/docs/contest.typ b/manual/src/content/docs/contest.typ
index f9ccfc42..2e6e0c2f 100644
--- a/manual/src/content/docs/contest.typ
+++ b/manual/src/content/docs/contest.typ
@@ -231,7 +231,7 @@ int main(int argc, char **argv)
选中一行或多行后按 `Delete` 键,即可删除对应的输入输出文件。
-在下面可以设置本测试点的分值、时间限制和空间限制。可以设置的最大分值为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MB。
+在下面可以设置本测试点的分值、时间限制和空间限制。可以设置的最大分值为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MiB。
== 批量添加测试点
@@ -307,4 +307,4 @@ int main(int argc, char **argv)
请尽量保证输入输出文件能够按上述方法唯一配对,否则产生的结果不可预料。
-其中可以设置的试题总分值最大为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MB。
\ No newline at end of file
+其中可以设置的试题总分值最大为 10000000,最大时间限制为 86400000 ms(即 1 天),最大空间限制为 16777216 MiB。
\ No newline at end of file
diff --git a/manual/src/content/docs/issue.typ b/manual/src/content/docs/issue.typ
index f52eddaa..c7863bfc 100644
--- a/manual/src/content/docs/issue.typ
+++ b/manual/src/content/docs/issue.typ
@@ -40,7 +40,7 @@ sudo apt install bubblewrap
== 测评时使用更多栈空间
-Windows 平台下可以在 `g++` 编译时添加 `-Wl,--stack=2147483647` 命令来开启约 2048 MB 栈空间。
+Windows 平台下可以在 `g++` 编译时添加 `-Wl,--stack=2147483647` 命令来开启约 2048 MiB 栈空间。
Linux 平台下的栈空间限制和题目的内存限制相同。
diff --git a/manual/src/content/docs/settings.typ b/manual/src/content/docs/settings.typ
index 4b010c1a..554ad5dd 100644
--- a/manual/src/content/docs/settings.typ
+++ b/manual/src/content/docs/settings.typ
@@ -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。
diff --git a/src/addcompilerwizard.cpp b/src/addcompilerwizard.cpp
index dd59958f..c59644ca 100644
--- a/src/addcompilerwizard.cpp
+++ b/src/addcompilerwizard.cpp
@@ -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";
}
diff --git a/src/component/exportutil/exportutil.cpp b/src/component/exportutil/exportutil.cpp
index 82f562d6..ae27ff87 100644
--- a/src/component/exportutil/exportutil.cpp
+++ b/src/component/exportutil/exportutil.cpp
@@ -171,7 +171,7 @@ auto ExportUtil::getContestantHtmlCode(Contest *contest, Contestant *contestant,
htmlCode += "
";
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");
}
@@ -539,7 +539,7 @@ auto ExportUtil::getSmallerContestantHtmlCode(Contest *contest, Contestant *cont
htmlCode += " | ";
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");
}
diff --git a/src/detaildialog.cpp b/src/detaildialog.cpp
index 069ab2a7..15533d96 100644
--- a/src/detaildialog.cpp
+++ b/src/detaildialog.cpp
@@ -191,7 +191,7 @@ void DetailDialog::refreshViewer(Contest *_contest, Contestant *_contestant) {
htmlCode += R"( | )";
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");
}
diff --git a/src/exttestcasetable.cpp b/src/exttestcasetable.cpp
index 9d3807dc..afb047af 100644
--- a/src/exttestcasetable.cpp
+++ b/src/exttestcasetable.cpp
@@ -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)
@@ -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)
diff --git a/src/forms/addcompilerwizard.ui b/src/forms/addcompilerwizard.ui
index 3aea0282..f3130f84 100755
--- a/src/forms/addcompilerwizard.ui
+++ b/src/forms/addcompilerwizard.ui
@@ -907,7 +907,7 @@
-
- MB
+ MiB
diff --git a/src/forms/addtaskdialog.ui b/src/forms/addtaskdialog.ui
index 7d31f0a4..09165a15 100755
--- a/src/forms/addtaskdialog.ui
+++ b/src/forms/addtaskdialog.ui
@@ -84,7 +84,7 @@
- MB
+ MiB
diff --git a/src/forms/addtestcaseswizard.ui b/src/forms/addtestcaseswizard.ui
index fac6a43a..336e0314 100755
--- a/src/forms/addtestcaseswizard.ui
+++ b/src/forms/addtestcaseswizard.ui
@@ -216,7 +216,7 @@
- MB
+ MiB
diff --git a/src/forms/exttestcaseupdaterdialog.ui b/src/forms/exttestcaseupdaterdialog.ui
index ce87a34f..2e62d989 100644
--- a/src/forms/exttestcaseupdaterdialog.ui
+++ b/src/forms/exttestcaseupdaterdialog.ui
@@ -192,7 +192,7 @@
- MB
+ MiB
diff --git a/src/forms/generalsettings.ui b/src/forms/generalsettings.ui
index 776fc453..e7dedf9f 100755
--- a/src/forms/generalsettings.ui
+++ b/src/forms/generalsettings.ui
@@ -356,7 +356,7 @@
- MB
+ MiB
@@ -667,7 +667,7 @@
- KB
+ KiB
diff --git a/src/forms/testcaseeditwidget.ui b/src/forms/testcaseeditwidget.ui
index 68940751..c89b96ca 100755
--- a/src/forms/testcaseeditwidget.ui
+++ b/src/forms/testcaseeditwidget.ui
@@ -466,7 +466,7 @@
- MB
+ MiB
diff --git a/src/judgingdialog.cpp b/src/judgingdialog.cpp
index b082a325..710532e1 100644
--- a/src/judgingdialog.cpp
+++ b/src/judgingdialog.cpp
@@ -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"));
@@ -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"));
diff --git a/translations/en_US.ts b/translations/en_US.ts
index 2665dd7f..24b8fef3 100644
--- a/translations/en_US.ts
+++ b/translations/en_US.ts
@@ -80,7 +80,7 @@
- MB
+ MiB
@@ -220,7 +220,7 @@
- Memory Limit: %1 MB
+ Memory Limit: %1 MiB
@@ -267,7 +267,7 @@
- MB
+ MiB
@@ -306,7 +306,7 @@
- MB
+ MiB
@@ -905,7 +905,7 @@
Test Case #%1:
%2 Pt
Time Limit: %3 ms
-Memory Limit: %4 MB
+Memory Limit: %4 MiB
@@ -923,7 +923,7 @@ Depends:
- #%1 :: %2 pt, TL %3 ms, ML %4 MB, %5
+ #%1 :: %2 pt, TL %3 ms, ML %4 MiB, %5
@@ -966,7 +966,7 @@ Depends:
- MB
+ MiB
@@ -1053,7 +1053,7 @@ Depends:
- MB
+ MiB
@@ -1065,7 +1065,7 @@ Depends:
- KB
+ KiB
@@ -1156,7 +1156,7 @@ Depends:
- %1 MB
+ %1 MiB
@@ -2586,7 +2586,7 @@ p, li { white-space: pre-wrap; }
- MB
+ MiB
diff --git a/translations/zh_CN.ts b/translations/zh_CN.ts
index b7f280f3..732a5a54 100755
--- a/translations/zh_CN.ts
+++ b/translations/zh_CN.ts
@@ -85,8 +85,8 @@
空间限制
- MB
- MB
+ MiB
+ MiB
Step 3/3: Check the result and start using LemonLime.
@@ -226,8 +226,8 @@
java 路径:
- Memory Limit: %1 MB
- 内存限制:%1 MB
+ Memory Limit: %1 MiB
+ 内存限制:%1 MiB
[Python Compiler]
@@ -281,8 +281,8 @@
空间限制
- MB
- MB
+ MiB
+ MiB
@@ -313,8 +313,8 @@
空间限制
- MB
- MB
+ MiB
+ MiB
Step 2/3: Input patterns for input files and output files. Use argument <1>, <2>, etc. to represent a regular expression. Files will in the same subtask when their matched parts of checked expressions are identical.
@@ -921,11 +921,11 @@
Test Case #%1:
%2 Pt
Time Limit: %3 ms
-Memory Limit: %4 MB
+Memory Limit: %4 MiB
测试点 #%1:
%2 Pt
时间限制:%3 ms
-空间限制:%4 MB
+空间限制:%4 MiB
@@ -944,8 +944,8 @@ Depends:
#%1 :: %2 pt, %3
- #%1 :: %2 pt, TL %3 ms, ML %4 MB, %5
- #%1 :: %2 pt, TL %3 ms, ML %4 MB, %5
+ #%1 :: %2 pt, TL %3 ms, ML %4 MiB, %5
+ #%1 :: %2 pt, TL %3 ms, ML %4 MiB, %5
@@ -987,8 +987,8 @@ Depends:
空间限制
- MB
- MB
+ MiB
+ MiB
Depends
@@ -1066,8 +1066,8 @@ Depends:
默认空间限制
- MB
- MB
+ MiB
+ MiB
Compile Time Limit
@@ -1082,8 +1082,8 @@ Depends:
源程序大小限制
- KB
- KB
+ KiB
+ KiB
Input File Extensions
@@ -1183,7 +1183,7 @@ Depends:
%1 ms
- %1 ms %2 MB
+ %1 ms %2 MiB
%1 ms
@@ -1207,8 +1207,8 @@ Depends:
运行时错误
- %1 MB
- %1 MB
+ %1 MiB
+ %1 MiB
Presentation Error
@@ -2612,8 +2612,8 @@ p, li { white-space: pre-wrap; }
这个测试点的每个点的空间限制…
- MB
- MB
+ MiB
+ MiB
Error
diff --git a/translations/zh_TW.ts b/translations/zh_TW.ts
index 19245f75..18ac6366 100644
--- a/translations/zh_TW.ts
+++ b/translations/zh_TW.ts
@@ -85,8 +85,8 @@
記憶體限制
- MB
- MB
+ MiB
+ MiB
Step 3/3: Check the result and start using LemonLime.
@@ -226,8 +226,8 @@
java 路徑:
- Memory Limit: %1 MB
- 記憶體限制:%1 MB
+ Memory Limit: %1 MiB
+ 記憶體限制:%1 MiB
[Python Compiler]
@@ -281,8 +281,8 @@
記憶體限制
- MB
- MB
+ MiB
+ MiB
@@ -313,8 +313,8 @@
記憶體限制
- MB
- MB
+ MiB
+ MiB
Step 2/3: Input patterns for input files and output files. Use argument <1>, <2>, etc. to represent a regular expression. Files will in the same subtask when their matched parts of checked expressions are identical.
@@ -921,11 +921,11 @@
Test Case #%1:
%2 Pt
Time Limit: %3 ms
-Memory Limit: %4 MB
+Memory Limit: %4 MiB
測試點 #%1:
%2 Pt
時間限制:%3 ms
-記憶體限制:%4 MB
+記憶體限制:%4 MiB
@@ -944,8 +944,8 @@ Depends:
#%1 :: %2 pt, %3
- #%1 :: %2 pt, TL %3 ms, ML %4 MB, %5
- #%1 :: %2 pt, TL %3 ms, ML %4 MB, %5
+ #%1 :: %2 pt, TL %3 ms, ML %4 MiB, %5
+ #%1 :: %2 pt, TL %3 ms, ML %4 MiB, %5
@@ -987,8 +987,8 @@ Depends:
記憶體限制
- MB
- MB
+ MiB
+ MiB
Depends
@@ -1066,8 +1066,8 @@ Depends:
預設記憶體限制
- MB
- MB
+ MiB
+ MiB
Compile Time Limit
@@ -1082,8 +1082,8 @@ Depends:
源程式大小限制
- KB
- KB
+ KiB
+ KiB
Input File Extensions
@@ -1183,7 +1183,7 @@ Depends:
%1 ms
- %1 ms %2 MB
+ %1 ms %2 MiB
%1 ms
@@ -1207,8 +1207,8 @@ Depends:
執行時錯誤
- %1 MB
- %1 MB
+ %1 MiB
+ %1 MiB
Presentation Error
@@ -2612,8 +2612,8 @@ p, li { white-space: pre-wrap; }
這個測試點的每個點的記憶體限制…
- MB
- MB
+ MiB
+ MiB
Error
diff --git a/unix/test/mle_static.c b/unix/test/mle_static.c
index 66da9fdf..a46e42a7 100644
--- a/unix/test/mle_static.c
+++ b/unix/test/mle_static.c
@@ -1,7 +1,7 @@
#include
int a[100000000];
-// 400 MB
+// 400 MiB
int main() {
puts("Hello World!");
|