课评: 转出学生归档(王子墨/张立坤/黄俊博)+ 周四班级总结 + 新生章梓皓档案 + C++示例代码

This commit is contained in:
chengzi
2026-09-29 22:43:54 +08:00
parent 6f57dfe67e
commit 73cce4c4f5
116 changed files with 6817 additions and 248 deletions

View File

@@ -0,0 +1,26 @@
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int n;
int arr[100100];
int main(){
double wut, tuv, tut; // 乌龟到终点的时间 兔子的速度 兔子休息的时间
cin >> wut >> tuv >> tut;
// 先求出兔子到终点的时间
double t = 1000.0 / tuv + tut;
if(t == wut){
cout << "tie";
} else if(t < wut){
cout << "rabbit";
} else {
cout << "turtle";
}
cout << endl;
cout << fixed << setprecision(2) << t;
return 0;
}

Binary file not shown.

View File

@@ -0,0 +1,19 @@
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int n;
int arr[100100];
int main(){
cin >> n;
long long cnt = 1;
for(int i = 1; i <= n; i++){
cnt = cnt * 2;
}
cout << cnt - 1;
return 0;
}