fix: some format

This commit is contained in:
KirisameVanilla 2025-11-20 23:33:21 +08:00
parent f5b37a17c9
commit 6f1bdc9826
No known key found for this signature in database
GPG Key ID: 7FC750F817277AC5
2 changed files with 27 additions and 27 deletions

View File

@ -1,5 +1,5 @@
--- ---
title: 2025-2026学年春季期期中(zq) title: 2025-2026学年春季期期中(张泉)
--- ---
## 一、判断16 分) ## 一、判断16 分)
@ -12,7 +12,9 @@ title: 2025-2026学年春季期期中(zq)
## 二、读代码25 分) ## 二、读代码25 分)
1. ```c 1. a=\_\_\_\_
```c
#include<stdio.h> #include<stdio.h>
int main() { int main() {
int a = 3, b = 4; int a = 3, b = 4;
@ -21,9 +23,9 @@ title: 2025-2026学年春季期期中(zq)
} }
``` ```
a=\_\_\_\_ 2. a=\_\_\_\_
2. ```c ```c
#include<stdio.h> #include<stdio.h>
void Anaesthesia(int b) { void Anaesthesia(int b) {
static int a = 0; static int a = 0;
@ -36,9 +38,9 @@ title: 2025-2026学年春季期期中(zq)
} }
``` ```
a=\_\_\_\_ 3. \_\_\_\_, \_\_\_\_
3. ```c ```c
#include<stdio.h> #include<stdio.h>
int main() { int main() {
c = 'A' + 4 - 'Z' + 'z'; c = 'A' + 4 - 'Z' + 'z';
@ -47,9 +49,9 @@ title: 2025-2026学年春季期期中(zq)
} }
``` ```
\_\_\_\_, \_\_\_\_ 4. \_\_\_\_, \_\_\_\_
4. ```c ```c
#include<stdio.h> #include<stdio.h>
int main() { int main() {
int a = 2; int a = 2;
@ -59,9 +61,9 @@ title: 2025-2026学年春季期期中(zq)
} }
``` ```
\_\_\_\_, \_\_\_\_ 5. \_\_\_\_
5. ```c ```c
#include<stdio.h> #include<stdio.h>
int main() { int main() {
int a = 5, b = 10, c = 15; int a = 5, b = 10, c = 15;
@ -69,12 +71,11 @@ title: 2025-2026学年春季期期中(zq)
c += 5; c += 5;
} else { } else {
c -= 5; c -= 5;
} printf("%d", c); }
printf("%d", c);
} }
``` ```
\_\_\_\_
## 三、选择题25分题面暂缺 ## 三、选择题25分题面暂缺
函数不允许嵌套定义函数(函数里不可以定义函数) 函数不允许嵌套定义函数(函数里不可以定义函数)

View File

@ -1,5 +1,5 @@
--- ---
title: 2025-2026学年春季期期中(whq) title: 2025-2026学年春季期期中(邬海琴)
--- ---
## 一、选择20 分) 10道 ## 一、选择20 分) 10道
@ -12,9 +12,11 @@ title: 2025-2026学年春季期期中(whq)
## 二、填空20 分) ## 二、填空20 分)
1. 静态变量关键词\_\_\_\_常态变量关键词\_\_\_\_ 1. 静态变量关键词\_\_\_\_常态变量关键词\_\_\_\_
2. ```c 2. \_\_\_\_
```c
#include<stdio.h> #include<stdio.h>
int main() { int main() {
int a = 3, b = 2; int a = 3, b = 2;
@ -22,17 +24,16 @@ title: 2025-2026学年春季期期中(whq)
printf("%.2f",c); printf("%.2f",c);
} }
``` ```
\_\_\_\_
3. `a = 9, b = 2``!(a * 2 % 4) && (c = 2) || (7 - 2 * b > 2)` 输出\_\_\_\_ 3. `a = 9, b = 2``!(a * 2 % 4) && (c = 2) || (7 - 2 * b > 2)` 输出\_\_\_\_
4. `unsigned int` 取值多少 \_\_\_\_ 4. `unsigned int` 取值多少 \_\_\_\_
5. `short arr[11];` 占用\_\_\_\_ bit(s) 5. `short arr[11];` 占用\_\_\_\_ bit(s)
## 三、判断输出20 分) ## 三、判断输出20 分)
1. ```c 1. ```c
#include<stdio.h> #include<stdio.h>
int main() { int main() {
int row = 3, col = 4, i, j; int row = 3, col = 4, i, j;
@ -49,7 +50,7 @@ title: 2025-2026学年春季期期中(whq)
} }
``` ```
2. ```c 2. ```c
#include<stdio.h> #include<stdio.h>
#define SQUARE(x) x*x #define SQUARE(x) x*x
int main() { int main() {
@ -62,8 +63,7 @@ title: 2025-2026学年春季期期中(whq)
## 四、手写代码40 分) ## 四、手写代码40 分)
1. 求五个数中的中位数
1. 求五个数中的中位数
**Input** **Input**
@ -73,7 +73,7 @@ title: 2025-2026学年春季期期中(whq)
> `3` > `3`
2. `100~999` 的素数水仙花数,如果没有,输出`No Such Number.` 2. 求 `100~999` 的素数水仙花数,如果没有,输出`No Such Number.`
**Input** **Input**
@ -82,4 +82,3 @@ title: 2025-2026学年春季期期中(whq)
**Output** **Output**
> `No Such Number.` > `No Such Number.`