课评: CSP04橙子周六1400-03 二维数组 2026-09-26(雨禾到课+明泓补课,4人请假)

This commit is contained in:
chengzi
2026-09-26 18:57:57 +08:00
parent f028d896cd
commit f7c75b0fe3
18 changed files with 45292 additions and 0 deletions

View File

@@ -0,0 +1,679 @@
{
"generatedAt": "2026-09-26T10:26:01.757Z",
"baseUrl": "https://oj.qonnwolf.com",
"course": {
"id": "6a826183bdde81887a2237b5",
"title": "2026 秋季班 CSP04"
},
"group": "橙子周六1400CSP04",
"section": {
"id": "6a826183bdde81887a2237be",
"no": "03",
"name": "二维数组",
"title": "03 二维数组"
},
"progress": [
{
"title": "01 基础回顾",
"submitted": 5,
"started": 5,
"students": 5
},
{
"title": "02 简单排序",
"submitted": 3,
"started": 3,
"students": 5
},
{
"title": "03 二维数组",
"submitted": 1,
"started": 1,
"students": 5
},
{
"title": "04 二维数组图形",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "05 二维数组综合",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "06 综合训练1",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "07 自定义函数进阶",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "08 sort基础",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "09 sort进阶",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "10 结构体基础",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "11 结构体进阶",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "12 综合训练2",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "13 递推算法 ",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "14 指针基础",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "15 指针进阶",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "16 文件操作与异常处理",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "17 综合训练3",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "18 真题实战1",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "19 真题实战2",
"submitted": 0,
"started": 0,
"students": 5
},
{
"title": "20 期末考试",
"submitted": 0,
"started": 0,
"students": 5
}
],
"classSummary": {
"studentCount": 5,
"startedStudentCount": 1,
"submittedStudentCount": 1,
"completedStudentCount": 0,
"attentionStudentCount": 5,
"notStartedStudentCount": 4,
"recoveredStudentCount": 1,
"completionRate": 8.24,
"firstAttemptScoreRate": 57.14,
"finalScoreRate": 8.24,
"averageAttemptsPerStudent": 2.8,
"averageFirstAttemptDurationMs": 1251861
},
"perProblem": [
{
"name": "📝 课堂练习",
"title": "CSP04-03A",
"problems": [
{
"pid": 4406,
"title": "矩阵原样输出",
"submitted": 1,
"accepted": 1,
"firstAttemptScoreRate": 100,
"averageAttempts": 1
},
{
"pid": 930,
"title": "图像相似度",
"submitted": 1,
"accepted": 1,
"firstAttemptScoreRate": 100,
"averageAttempts": 1
},
{
"pid": 4410,
"title": "矩阵加法",
"submitted": 1,
"accepted": 1,
"firstAttemptScoreRate": 100,
"averageAttempts": 1
},
{
"pid": 1520,
"title": "每个小组的最大年龄",
"submitted": 1,
"accepted": 1,
"firstAttemptScoreRate": 0,
"averageAttempts": 3
},
{
"pid": 4413,
"title": "每列最大值",
"submitted": 1,
"accepted": 1,
"firstAttemptScoreRate": 0,
"averageAttempts": 2
},
{
"pid": 6604,
"title": "二维数组 - 选择题",
"submitted": 1,
"accepted": 1,
"firstAttemptScoreRate": 20,
"averageAttempts": 4
},
{
"pid": 6605,
"title": "二维数组 - 判断题",
"submitted": 1,
"accepted": 1,
"firstAttemptScoreRate": 80,
"averageAttempts": 2
}
]
},
{
"name": "📋 课后作业",
"title": "CSP04-03B",
"problems": [
{
"pid": 4411,
"title": "矩阵元素总和",
"submitted": 0,
"accepted": 0,
"firstAttemptScoreRate": null,
"averageAttempts": null
},
{
"pid": 921,
"title": "奇偶统计",
"submitted": 0,
"accepted": 0,
"firstAttemptScoreRate": null,
"averageAttempts": null
},
{
"pid": 4412,
"title": "主对角线求和",
"submitted": 0,
"accepted": 0,
"firstAttemptScoreRate": null,
"averageAttempts": null
}
]
},
{
"name": "🚀 拓展练习",
"title": "CSP04-03C",
"problems": [
{
"pid": 3677,
"title": "二维数组应用 - 学习效率",
"submitted": 0,
"accepted": 0,
"firstAttemptScoreRate": null,
"averageAttempts": null
},
{
"pid": 4418,
"title": "行和列的总和",
"submitted": 0,
"accepted": 0,
"firstAttemptScoreRate": null,
"averageAttempts": null
},
{
"pid": 4419,
"title": "矩形区域求和",
"submitted": 0,
"accepted": 0,
"firstAttemptScoreRate": null,
"averageAttempts": null
},
{
"pid": 4420,
"title": "杨辉三角前n行",
"submitted": 0,
"accepted": 0,
"firstAttemptScoreRate": null,
"averageAttempts": null
},
{
"pid": 2517,
"title": "矩阵交换行",
"submitted": 0,
"accepted": 0,
"firstAttemptScoreRate": null,
"averageAttempts": null
},
{
"pid": 3678,
"title": "二维数组应用 - 矩阵翻转输出",
"submitted": 0,
"accepted": 0,
"firstAttemptScoreRate": null,
"averageAttempts": null
},
{
"pid": 4414,
"title": "方阵顺时针旋转",
"submitted": 0,
"accepted": 0,
"firstAttemptScoreRate": null,
"averageAttempts": null
}
]
}
],
"students": [
{
"uid": 202,
"name": "张雨禾",
"groups": [
"橙子周六1400CSP04"
],
"stats": {
"assigned": 17,
"accepted": 7,
"firstAttemptScoreRate": 57.14,
"finalScoreRate": 41.18,
"attemptCount": 14,
"signals": [
"尚未完成",
"首刷掌握不足",
"订正后提升明显"
]
},
"problems": [
{
"tid": "tid1",
"pid": 930,
"title": "图像相似度",
"submissions": [
{
"seq": 1,
"status": "AC",
"score": 100,
"rid": "6ab7687a713ff6370c5b0c46",
"lang": "cc.cc14o2",
"errorHead": "",
"code": "#include<bits/stdc++.h>\nusing namespace std;\nint n,m;\nint a[110][110];\nint b[110][110];\nint cnt;\nint main(){\n\tcin>>n>>m;\n\tfor(int i=1;i<=n;i++){\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcin>>a[i][j];\n\t\t}\n\t}\n\t\n\t\n\t\n\n\t\n\tfor(int i=1;i<=n;i++){\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcin>>b[i][j];\n\t\t\tif(a[i][j]==b[i][j]){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\n\t\t}\n\t\n\t}\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\tcout<<fixed<<setprecision(2)<<100.0*cnt/(n*m);\n\t\n\t\n\treturn 0;\n} "
}
]
},
{
"tid": "tid1",
"pid": 1520,
"title": "每个小组的最大年龄",
"submissions": [
{
"seq": 1,
"status": "WA",
"score": 0,
"rid": "6ab76da6713ff6370c5b12eb",
"lang": "cc.cc14o2",
"errorHead": "",
"code": "#include<bits/stdc++.h>\nusing namespace std;\nint n,m;\nint age;\nint main(){\n\tcin>>n>>m;\n\tfor(int i=1;i<=n;i++){\n\t\tint maxx;\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcin>>age;\n\t\t\tmaxx=max(age,maxx);\n\t\t}\n\t\tcout<<maxx<<endl;\n\t}\n\t\n\t\n\treturn 0;\n} "
},
{
"seq": 2,
"status": "WA",
"score": 0,
"rid": "6ab76df9713ff6370c5b1319",
"lang": "cc.cc14o2",
"errorHead": "",
"code": "#include<bits/stdc++.h>\nusing namespace std;\nint n,m;\nint age;\nint main(){\n\tcin>>n>>m;\n\tfor(int i=1;i<=n;i++){\n\t\tint maxx;\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcin>>age;\n\t\t\tmaxx=max(age,maxx);\n\t\t}\n\t\tcout<<maxx<<endl;\n\t}\n\t\n\t\n\treturn 0;\n} "
},
{
"seq": 3,
"status": "AC",
"score": 100,
"rid": "6ab76e31713ff6370c5b1347",
"lang": "cc.cc14o2",
"errorHead": "",
"code": "#include<bits/stdc++.h>\nusing namespace std;\nint n,m;\nint age;\nint main(){\n\tcin>>n>>m;\n\tfor(int i=1;i<=n;i++){\n\t\tint maxx=0;\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcin>>age;\n\t\t\tmaxx=max(age,maxx);\n\t\t}\n\t\tcout<<maxx<<endl;\n\t}\n\t\n\t\n\treturn 0;\n} "
}
]
},
{
"tid": "tid1",
"pid": 4406,
"title": "矩阵原样输出",
"submissions": [
{
"seq": 1,
"status": "AC",
"score": 100,
"rid": "6ab7639d713ff6370c5b08d7",
"lang": "cc.cc14o2",
"errorHead": "",
"code": "#include<bits/stdc++.h>\nusing namespace std;\nint n,m;\nint arr[110][110];\nint main(){\n\tcin>>n>>m;\n\tfor(int i=1;i<=n;i++){\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcin>>arr[i][j];\n\t\t}\n\t}\n\tfor(int i=1;i<=n;i++){\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcout<<arr[i][j]<<\" \";\n\t\t}\n\t\tcout<<endl;\n\t}\n\t\n\t\n\t\n\t\n\treturn 0;\n} "
}
]
},
{
"tid": "tid1",
"pid": 4410,
"title": "矩阵加法",
"submissions": [
{
"seq": 1,
"status": "AC",
"score": 100,
"rid": "6ab76af6713ff6370c5b0e9a",
"lang": "cc.cc14o2",
"errorHead": "",
"code": "#include<bits/stdc++.h>\nusing namespace std;\nint n,m;\nint a[110][110];\nint b[110][110];\nint cnt;\nint main(){\n\tcin>>n>>m;\n\tfor(int i=1;i<=n;i++){\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcin>>a[i][j];\n\t\t}\n\t}\n\t\n\tfor(int i=1;i<=n;i++){\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcin>>b[i][j];\n\t\t\tcout<<a[i][j]+b[i][j]<<\" \";\n\t\t}\n\t\tcout<<endl;\n\t}\n\t\n\t\n\t\n\treturn 0;\n} "
}
]
},
{
"tid": "tid1",
"pid": 4413,
"title": "每列最大值",
"submissions": [
{
"seq": 1,
"status": "CE",
"score": 0,
"rid": "6ab77baa713ff6370c5b2f67",
"lang": "cc.cc14o2",
"errorHead": "foo.cc:15:29: error: 'i' was not declared in this scope ; foo.cc:19:15: error: 'maxx' was not declared in this scope",
"code": "#include<bits/stdc++.h>\nusing namespace std;\nint n,m;\nint arr[110][110];\nint main(){\n\tcin>>n>>m;\n\tfor(int i=1;i<=n;i++){\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcin>>arr[i][j];\n\t\t}\n\t}\n\t\n\tfor(int j=1;j<=m;j++){\n\t\tint maxx=0;\n\t\tfor(int j=1;i<=n;i++){\n\t\t\tmaxx=max(maxx,arr[i][j]);\n\t\t}\n\t}\n\tcout<<maxx;\n\t\n\treturn 0;\n}"
},
{
"seq": 2,
"status": "AC",
"score": 100,
"rid": "6ab77c07713ff6370c5b3024",
"lang": "cc.cc14o2",
"errorHead": "",
"code": "#include<bits/stdc++.h>\nusing namespace std;\nint n,m;\nint arr[110][110];\nint main(){\n\tcin>>n>>m;\n\tfor(int i=1;i<=n;i++){\n\t\tfor(int j=1;j<=m;j++){\n\t\t\tcin>>arr[i][j];\n\t\t}\n\t}\n\t\n\tfor(int j=1;j<=m;j++){\n\t\tint maxx=0;\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tmaxx=max(maxx,arr[i][j]);\n\t\t}\n\t\tcout<<maxx<<\" \";\n\t}\n\t\n\t\n\treturn 0;\n}"
}
]
},
{
"tid": "tid1",
"pid": 6604,
"title": "二维数组 - 选择题",
"submissions": [
{
"seq": 1,
"status": "WA",
"score": 20,
"rid": "6ab764d9713ff6370c5b09d8",
"lang": "_",
"errorHead": "",
"code": "'1': A\n'2': A\n'3': B\n'4': A\n'5': A\n"
},
{
"seq": 2,
"status": "WA",
"score": 40,
"rid": "6ab768ee713ff6370c5b0ca5",
"lang": "_",
"errorHead": "",
"code": "'1': C\n'2': B\n'3': B\n'4': B\n'5': B\n"
},
{
"seq": 3,
"status": "WA",
"score": 60,
"rid": "6ab76915713ff6370c5b0cd8",
"lang": "_",
"errorHead": "",
"code": "'1': C\n'2': C\n'3': B\n'4': C\n'5': D\n"
},
{
"seq": 4,
"status": "AC",
"score": 100,
"rid": "6ab76929713ff6370c5b0cfd",
"lang": "_",
"errorHead": "",
"code": "'1': C\n'2': D\n'3': B\n'4': D\n'5': D\n"
}
]
},
{
"tid": "tid1",
"pid": 6605,
"title": "二维数组 - 判断题",
"submissions": [
{
"seq": 1,
"status": "WA",
"score": 80,
"rid": "6ab77155713ff6370c5b1617",
"lang": "_",
"errorHead": "",
"code": "'1': A\n'2': B\n'3': B\n'4': B\n'5': B\n"
},
{
"seq": 2,
"status": "AC",
"score": 100,
"rid": "6ab77209713ff6370c5b184d",
"lang": "_",
"errorHead": "",
"code": "'1': A\n'2': A\n'3': B\n'4': B\n'5': B\n"
}
]
}
]
},
{
"uid": 357,
"name": "苏俊宇",
"groups": [
"橙子周六1400CSP04"
],
"stats": {
"assigned": 17,
"accepted": 0,
"firstAttemptScoreRate": null,
"finalScoreRate": 0,
"attemptCount": 0,
"signals": [
"尚未开始"
]
},
"problems": []
},
{
"uid": 360,
"name": "郑子煜",
"groups": [
"橙子周六1400CSP04"
],
"stats": {
"assigned": 17,
"accepted": 0,
"firstAttemptScoreRate": null,
"finalScoreRate": 0,
"attemptCount": 0,
"signals": [
"尚未开始"
]
},
"problems": []
},
{
"uid": 370,
"name": "卢华琛",
"groups": [
"橙子周六1400CSP04"
],
"stats": {
"assigned": 17,
"accepted": 0,
"firstAttemptScoreRate": null,
"finalScoreRate": 0,
"attemptCount": 0,
"signals": [
"尚未开始"
]
},
"problems": []
},
{
"uid": 393,
"name": "鲍佳音",
"groups": [
"橙子周六1400CSP04"
],
"stats": {
"assigned": 17,
"accepted": 0,
"firstAttemptScoreRate": null,
"finalScoreRate": 0,
"attemptCount": 0,
"signals": [
"尚未开始"
]
},
"problems": []
}
],
"objective": {
"6604": {
"title": "二维数组 - 选择题 - 题目详情 - 穹狼科创",
"questions": [
{
"no": 1,
"text": "【202606】小杨正在开发一款名为&quot;星际网格&quot;的游戏,他用二维数组 int map[5][4]; 来表示地图。已知 int 占 4 字节,如果 map 的内存地址是 0x2000 ,则表达式 &map + 1 的地址值是( )。",
"options": [
"0x204c",
"0x205c",
"0x2050",
"0x2058"
]
},
{
"no": 2,
"text": "【202412】假定整型是 32 位,对一个 2 行 3 列的二维整数数组 array ,假设数组第一个元素在内存中的地址为 0x7ffee4065820 ,则第 2 行第 2 个元素的地址 &array[1][1] 为( )。 int array[2][3] = { {0, 1, 2}, {3, 4, 5} };",
"options": [
"0x7ffee4065824",
"0x7ffee4065828",
"0x7ffee406582c",
"0x7ffee4065830"
]
},
{
"no": 3,
"text": "【202503】下面( )正确定义了二维数组。",
"options": [
"int arr[3,4];",
"int arr[3][4];",
"int arr(3,4);",
"int a[3-4];"
]
},
{
"no": 4,
"text": "【202409】一个二维数组定义为 int arr[3][4]; (假设一个 int 变量占 4 个字节),则 int arr[0] 占用( )个字节的内存。",
"options": [
"3",
"4",
"12",
"16"
]
},
{
"no": 5,
"text": "【202506】下面的函数接收一个3行4列的二维数组并输出其中元素,则横线上不能填写( )。 void printArray(________) { for (int i = 0; i < 3; ++i) for (int j = 0; j < 4; ++j) std::cout << arr[i][j] << &quot; &quot;; }",
"options": [
"int arr[3][4]",
"int arr[][4]",
"int (*arr)[4]",
"int** arr"
]
}
]
},
"6605": {
"title": "二维数组 - 判断题 - 题目详情 - 穹狼科创",
"questions": [
{
"no": 1,
"text": "【202512】在 C++ 中,定义如下二维数组: int a[3][4]; ,数组 a 在内存中是按行优先连续存放的,即 a[0][0] 、 a[0][1] 、 a[0][2] 、 a[0][3] 在内存中是连续的。",
"options": [
"正确",
"错误"
]
},
{
"no": 2,
"text": "【202309】如果希望记录 10 个最长为 99 字节的字符串,可以将字符串数组定义为 char s[10][100]; 。",
"options": [
"正确",
"错误"
]
},
{
"no": 3,
"text": "【202503】二维数组作为函数参数时,必须显式指定所有维度的大小。",
"options": [
"正确",
"错误"
]
},
{
"no": 4,
"text": "【202412】 int arr[3][] 是一个正确的二维数组的声明。",
"options": [
"正确",
"错误"
]
},
{
"no": 5,
"text": "【202506】下面这段代码不合法,因为每一行都必须显式初始化3个元素。 int arr[2][3] = {{1, 2}, {3}};",
"options": [
"正确",
"错误"
]
}
]
}
}
}