补全9月11日至13日课评:为13名学生创建请假文档,为5个班级创建总结文档

This commit is contained in:
chengzi
2026-09-13 19:34:34 +08:00
parent 167d832353
commit 21001eccf5
1322 changed files with 37510 additions and 4136 deletions

View File

@@ -0,0 +1,32 @@
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int n;
int arr[100100];
int main(){
// 循环拆位
int num, sum = 0;
cin >> num;
int t = num;
while(t > 0){
// 第一步 获取最一位
int g = t % 10; // %10 获得最后一位
// 第二步 我们要进行的操作
sum = sum * 10 + g;
// 第三步 去掉最后一位
t /= 10;
}
if(sum == num){
cout << "是回文串";
} else {
cout << "不是回文串";
}
return 0;
}