Today is the 681th day of learning programming with the cool rain!
Hello, everyone, this is the question from GESP.
day681

GESP December 2023 Level 2 Question 2




Answer:
START OF SPRING
Solution
#include <iostream>
using namespace std;
// Cool rain 666
int main() {
int n, i, j;
scanf("%d", &n);
for(i=1; i<=(n+1)/2-1; i++) {
printf("|");
for(j=2; j<=n-1; j++) {
printf("a");
}
printf("|\n");
}
printf("|");
for(int j=2;j<=n-1;j++) {
printf("-");
}
printf("|\n");
for(int i=(n+1)/2+1;i<=n;i++) {
printf("|");
for(int j=2;j<=n-1;j++) {
printf("a");
}
printf("|\n");
}
return 0;
}

20
25
3

MARCH
Day
Mon
Tue
Wed
Thu
Fri
Sat
1
Dragon Raises Its Head
2
3rd Day of the Lunar Month
3
4th Day of the Lunar Month
4
5th Day of the Lunar Month
5
Waking of Insects
6
7th Day of the Lunar Month
7
8th Day of the Lunar Month
8
International Women’s Day
9
10th Day of the Lunar Month
10
11
12
12
Tree Planting Day
13
14
15
15
Consumer Rights Day
16
17
18
19
20
20
Spring Equinox
21
22
22
World Water Day
23
24
25
26
27
28
29
March
30
2nd Day of the Lunar Month
31
3rd Day of the Lunar Month
@秀米XIUMI
Cool Rain
Kaizhi Station
