藍橋杯 C/C++ 組歷屆真題合集速刷(一)

一、1.單詞分析 - 藍橋云課

(模擬、枚舉)算法代碼:

#include <bits/stdc++.h>
using namespace std;int main()
{string s;cin>>s;unordered_map<char,int> mp;for(auto ch:s){mp[ch]++;}char result_char='z';int max_count=0;for(auto& entry:mp){if(entry.second>max_count){result_char=entry.first;max_count=entry.second;}else if (entry.second == max_count) {if (entry.first < result_char) {result_char = entry.first;}}}cout << result_char << endl;cout << max_count << endl;return 0;
}

?二、2.成績統計 - 藍橋云課

(模擬)算法代碼:?

#include <bits/stdc++.h>
using namespace std;int main()
{int n;cin>>n;int simple=0,good=0;for(int i=0;i<n;i++){int score=0;cin>>score;if(score>=60){simple++;if(score>=85){good++;}}}double pass_rate=(double)simple/n*100;double good_rate=(double)good/n*100;printf("%d%%",(int)round(pass_rate));cout<<endl;printf("%d%%",(int)round(good_rate));return 0;
}

三、3.門牌制作 - 藍橋云課

(模擬、枚舉)算法代碼:?

#include <bits/stdc++.h>
using namespace std;
int cnt;
int main()
{for(int i=1;i<=2020;i++){int tmp=i;while(tmp){if(tmp%10==2){cnt++;}tmp/=10;}}cout<<cnt<<endl;return 0;
}

四、4.數字三角形 - 藍橋云課

(DFS)算法代碼:(通過50%)?

#include<bits/stdc++.h>
using namespace std;int n;
vector<vector<int>> num;
int max_sum = 0;void dfs(int row, int col, int sum, int left_count, int right_count) {// 到達最后一行if (row == n - 1) {// 檢查左右移動次數差是否不超過1if (abs(left_count - right_count) <= 1) {max_sum = max(max_sum, sum);}return;}// 向左下移動dfs(row + 1, col, sum + num[row + 1][col], left_count + 1, right_count);// 向右下移動dfs(row + 1, col + 1, sum + num[row + 1][col + 1], left_count, right_count + 1);
}int main() {cin >> n;num.resize(n,vector<int>(n,0));// 讀取輸入for (int i = 0; i < n; i++) {for (int j = 0; j <= i; j++) {cin >> num[i][j];}}// 從頂點開始DFSdfs(0, 0, num[0][0], 0, 0);cout << max_sum << endl;return 0;
}

?(動態規劃)算法代碼:(通過30%)

#include<bits/stdc++.h>
using namespace std;int main() {int n;cin >> n;vector<vector<int>> num(n, vector<int>(n, 0));for (int i = 0; i < n; i++) {for (int j = 0; j <= i; j++) {cin >> num[i][j];}}// 從倒數第二層開始向上動態規劃for (int i = n - 2; i >= 0; i--) {for (int j = 0; j <= i; j++) {num[i][j] += max(num[i + 1][j], num[i + 1][j + 1]);}}cout << num[0][0] << endl;return 0;
}

五、5.卡片 - 藍橋云課

(模擬、枚舉)算法代碼:?

#include <iostream>
using namespace std;int main()
{int i;int arr[10];for(i=0;i<10;i++){arr[i]=2021;//記錄0-9這10張卡片的數量,開始都是2021張}for(i=1;;i++){//由于不知道到i的邊界值,省略,會一直執行int x=i;    //用x來存放每一個i的值,防止i值的改變while(x){if(arr[x%10]==0){//當有一張卡片的數量剩余為0張的時候,輸出前一個i的值,也就是i-1,并退出cout<<i-1;return 0;}  arr[x%10]--;  //每一張卡片數量減少1x/=10;}}return 0;
}

六、6.成績分析 - 藍橋云課

(模擬)算法代碼:?

#include <bits/stdc++.h>
using namespace std;
int sum;
vector<int> score;
int main()
{int n;cin>>n;score.resize(n,0);for(int i=0;i<n;i++){cin>>score[i];sum+=score[i];}sort(score.begin(),score.end());int the_lowest=score.front();int the_best=score.back();double average=(double)sum/n;average=round(average*100)/100;printf("%d\n",the_best);printf("%d\n",the_lowest);printf("%.2f\n",average);return 0;
}

七、7.空間 - 藍橋云課

(單位換算)算法代碼:?

#include <bits/stdc++.h>
using namespace std;
int main()
{cout<<(long long)256*1024*1024*8/32;cout<<1ll*256*1024*1024*8/32;return 0;
}

八、8.路徑之謎 - 藍橋云課

(DFS)算法代碼:?

#include <bits/stdc++.h>
using namespace std;int n;
vector<int> north;  // 北墻靶子數字(自西向東)
vector<int> west;   // 西墻靶子數字(自北向南)
vector<int> path;   // 存儲當前路徑
vector<vector<bool>> visited;  // 記錄已訪問的方格
vector<int> result;  // 存儲最終結果// 方向數組:上、右、下、左
int dx[4] = {-1, 0, 1, 0};
int dy[4] = {0, 1, 0, -1};// 檢查當前位置是否有效
bool isValid(int x, int y) {return x >= 0 && x < n && y >= 0 && y < n && !visited[x][y];
}// 檢查當前箭靶數字是否合法
bool isTargetValid() {for (int i = 0; i < n; i++) {if (north[i] < 0 || west[i] < 0) return false;}return true;
}// 檢查是否到達終點且所有箭靶數字恰好用完
bool isSolution() {if (path.back() != n * n - 1) return false; // 未到達東南角for (int i = 0; i < n; i++) {if (north[i] != 0 || west[i] != 0) return false;}return true;
}void dfs(int x, int y) {// 到達終點且滿足條件if (x == n - 1 && y == n - 1 && isSolution()) {result = path;return;}// 嘗試四個方向for (int i = 0; i < 4; i++) {int nx = x + dx[i];int ny = y + dy[i];if (isValid(nx, ny)&&isTargetValid()) {// 嘗試移動到這個位置int num = nx * n + ny;visited[nx][ny] = true;path.push_back(num);north[ny]--;west[nx]--;dfs(nx, ny);// 回溯visited[nx][ny] = false;path.pop_back();north[ny]++;west[nx]++;}}
}int main() {cin >> n;north.resize(n);west.resize(n);visited.resize(n, vector<bool>(n, false));// 讀取北墻靶子數字(自西向東)for (int i = 0; i < n; i++) {cin >> north[i];}// 讀取西墻靶子數字(自北向南)for (int i = 0; i < n; i++) {cin >> west[i];}// 起點是西北角(0,0),編號為0visited[0][0] = true;north[0]--;  // 北墻最西邊的靶子west[0]--;   // 西墻最北邊的靶子path.push_back(0);dfs(0, 0);// 輸出結果for (int i = 0; i < result.size(); i++) {if (i != 0) cout << " ";cout << result[i];}cout << endl;return 0;
}

九、9.裁紙刀 - 藍橋云課

(規律、思維)算法代碼:

#include <iostream>
using namespace std;
int main()
{int s;s=440+4-1;cout<<s;return 0;
}

十、10.九進制轉十進制 - 藍橋云課

(進制轉換)算法代碼: (兩種方法異曲同工)

#include<bits/stdc++.h>
using namespace std;int main() {string num = "2022"; // 九進制數int decimal = 0;int base = 9; // 九進制// 從最高位開始計算for (int i = 0; i < num.size(); i++) {int digit = num[i] - '0'; // 獲取當前位的數字int power = num.size() - 1 - i; // 計算當前位的權值指數decimal += digit * pow(base, power);}cout << decimal << endl; // 輸出結果return 0;
}
#include<bits/stdc++.h>
using namespace std;int main() {string num = "2022";int decimal = 0;int power = 1;// 從右向左計算for(int i = num.length() - 1; i >= 0; --i) {decimal += (num[i] - '0') * power;power *= 9;}cout << decimal << endl; // 輸出: 1478return 0;
}

十一、11.分巧克力 - 藍橋云課

(二分)算法代碼:?

#include <bits/stdc++.h>
using namespace std;
int n, k;
int max_num;
int ans;
vector<pair<int, int>> hw; // 存儲所有巧克力的高和寬int count_pieces(int mid)
{int cnt=0;for(auto &ch:hw){int h=ch.first;int w=ch.second;cnt+=(h/mid)*(w/mid);}return cnt;
}int main() 
{cin >> n >> k;hw.resize(n);for (int i = 0; i < n; ++i) {cin >> hw[i].first >> hw[i].second;max_num = max(max_num, hw[i].first);max_num = max(max_num, hw[i].second);}int l = 1, r = max_num;ans = 1; // 初始化為最小可能邊長while(l<=r){int mid=l+(r-l)/2;int cnt=count_pieces(mid);if(cnt>=k){ans=mid;l=mid+1;}else{r=mid-1;}}cout<<ans<<endl;return 0;
}

十二、12.跑步鍛煉 - 藍橋云課

(模擬、枚舉)算法代碼:?

#include <bits/stdc++.h>
using namespace std;
int ans;
const int month_days[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
int week_day=6;bool isLeapYear(int year) {return (year % 400 == 0) || (year % 100 != 0 && year % 4 == 0);
}int main()
{for(int year=2000;year<=2020;year++){for(int month=1;month<=12;month++){// 處理終止條件:2020年10月1日之后停止if (year == 2020 && month > 10) break;int days = month_days[month];// 處理閏年二月if (month == 2 && isLeapYear(year)) {days = 29;}for(int day=1;day<=days;day++){if(year==2020&&month==10&&day>=2){break;}if(day==1||week_day==1){ans+=2;}else{ans++;}week_day=(week_day+1)%7;}}}cout<<ans<<endl;return 0;
}

十三、13.蛇形填數 - 藍橋云課

(模擬、規律、思維)算法代碼:?

發現規律:

#include <bits/stdc++.h>
using namespace std;
int main()
{int ans=1;for(int i=1;i<20;i++){ans+=i*4;//對角線元素值=前一個元素+前一個元素的行號*4}cout<<ans;return 0;
}

數組模擬實現:

#include<bits/stdc++.h>
using namespace std;int mp[200][200], row = 0, col = 0, cnt = 1;int main() {mp[0][0] = 1;while(!mp[19][19]) {//右移mp[row][++col] = ++cnt;//左下方while(col) {mp[++row][--col] = ++cnt;}//下移mp[++row][col] = ++cnt;//右上方while(row) {mp[--row][++col] = ++cnt;}}/*for(int i = 0; i < 20; i++) {for(int j = 0; j < 20; j++) {cout << mp[i][j] << "  ";}cout << endl;}*/cout << mp[19][19];return 0;
}

非常牛逼的掉頭想法(不需要數組):(自殘形愧)

#include <iostream>
using namespace std;
int main()
{int row=1,col=1,flag=1,num=1;while(true){if(row==1){col++;flag=1;num++;}if(col==1){row++;flag=-1;num++;}row+=flag;col-=flag;num++;if(row==20&&col==20) break;}cout<<num;return 0;
}

十四、14.貨物擺放 - 藍橋云課

(枚舉)算法代碼:

#include<stdio.h>// 定義長整型別名,用于處理大整數
typedef long long LL;int main() {// 題目給定的貨物總數(16位數)LL n = 2021041820210418;LL i, j, k;  // 三個維度L、W、H的候選值int res = 0;  // 結果計數器(方案總數)// 第一層循環:遍歷可能的第一個因數i// 優化:i只需遍歷到n的立方根,因為i^3 > n時不可能有解for(i = 1; i*i*i <= n; i++) {// 檢查i是否是n的因數if(n % i == 0) {// 第二層循環:遍歷可能的第二個因數j// 從i開始遍歷,避免重復計算相同的因數組合// 條件i*j*j <= n確保三個因數的乘積不超過nfor(j = i; i*j*j <= n; j++) {// 檢查j是否是(n/i)的因數if((n/i) % j == 0) {// 計算第三個因數kk = n / i / j;// 根據三個因數的關系計算排列組合數:// 情況1:三個數完全相同(i=j=k)if(i == j && j == k) {res += 1;  // 只有1種排列方式}// 情況2:有兩個數相同(i=j或i=k或j=k)else if(i == j || i == k || j == k) {res += 3;  // 3種排列方式}// 情況3:三個數都不同else {res += 6;  // 6種排列方式(3! = 6)}}}}}// 輸出最終結果printf("%d", res);//2430return 0;
}


十五、15.購物單 - 藍橋云課

****     180.90       88折
****      10.25       65折
****      56.14        9折
****     104.65        9折
****     100.30       88折
****     297.15        半價
****      26.75       65折
****     130.62        半價
****     240.28       58折
****     270.62        8折
****     115.87       88折
****     247.34       95折
****      73.21        9折
****     101.00        半價
****      79.54        半價
****     278.44        7折
****     199.26        半價
****      12.97        9折
****     166.30       78折
****     125.50       58折
****      84.98        9折
****     113.35       68折
****     166.57        半價
****      42.56        9折
****      81.90       95折
****     131.78        8折
****     255.89       78折
****     109.17        9折
****     146.69       68折
****     139.33       65折
****     141.16       78折
****     154.74        8折
****      59.42        8折
****      85.44       68折
****     293.70       88折
****     261.79       65折
****      11.30       88折
****     268.27       58折
****     128.29       88折
****     251.03        8折
****     208.39       75折
****     128.88       75折
****      62.06        9折
****     225.87       75折
****      12.89       75折
****      34.28       75折
****      62.16       58折
****     129.12        半價
****     218.37        半價
****     289.69        8折

算法代碼:?

#include <bits/stdc++.h>
using namespace std;
int main()
{double sum = 180.90*0.88+10.25*0.65+56.14*0.9+104.65*0.9+100.30*0.88+297.15*0.5+26.75*0.65+130.62*0.5+240.28*0.58+270.62*0.8+115.87*0.88+247.34*0.95+73.21*0.9+101.00*0.5+79.54*0.5+278.44*0.7+199.26*0.5+12.97*0.9+166.30*0.78+125.50*0.58+84.98*0.9+113.35*0.68+166.57*0.5+42.56*0.9+81.90*0.95+131.78*0.8+255.89*0.78+109.17*0.9+146.69*0.68+139.33*0.65+141.16*0.78+154.74*0.8+59.42*0.8+85.44*0.68+293.70*0.88+261.79*0.65+11.30*0.88+268.27*0.58+128.29*0.88+251.03*0.8+208.39*0.75+128.88*0.75+62.06*0.9+225.87*0.75+12.89*0.75+34.28*0.75+62.16*0.58+129.12*0.5+218.37*0.5+289.69*0.8;int a = (int)round(sum)/100*100+100;printf("%d",a);return 0;
}

十六、16.楊輝三角形 - 藍橋云課

(規律、思維、二分)算法代碼:?

#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
LL n;  // 存儲輸入的N值/*
楊輝三角形觀察:11   11  2  11 3  3 1
1 4 6 4 1
...
數字首次出現一定在左側,因此可以忽略右側對稱部分
*/// 計算組合數C(x,k)
LL C(int x, int k) {LL ans = 1;for(int i = x, j = 1; j <= k; i--, j++) {ans = ans * i / j;  // 計算組合數if(ans > n) return ans;  // 超過n時提前返回}return ans;
}// 檢查當前斜行t中是否存在n
bool check(int t) {// 二分查找的下界是2t,上界取n和2t中的較大值LL l = 2 * t, r = max(n, l);while(l < r) {int mid = l + r >> 1;  // 取中間值if(C(mid, t) >= n) r = mid;  // 中間值大于等于n,調整上界else l = mid + 1;      // 否則調整下界}if(C(r, t) != n) return false;  // 沒找到n// 找到n,計算位置:(r+1)*r/2 + t + 1cout << (LL)(r + 1) * r / 2 + t + 1 << endl;return true;
}int main() {cin >> n;  // 輸入要查找的數字N// 從最大的可能斜行t=17開始向下查找for(int t = 17; ; t--) {if(check(t)) break;  // 找到就退出}return 0;
}

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/pingmian/75965.shtml
繁體地址,請注明出處:http://hk.pswp.cn/pingmian/75965.shtml
英文地址,請注明出處:http://en.pswp.cn/pingmian/75965.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

重塑知識的引擎:人工智能如何改變知識的生產與傳播

一、引言&#xff1a;知識的邊界正在被人工智能重構 千百年來&#xff0c;人類對于“知識”的獲取方式一直遵循著某種路徑依賴&#xff1a;感知現實 → 歸納總結 → 文字表達 → 教育傳承 → 學術沉淀。這一過程復雜而緩慢&#xff0c;需要經過代際的努力才能實現知識的積累與…

list的底層:

我們之前講解了list&#xff0c;今天我們來看一下list的底層&#xff1a; list底層是一個雙向帶頭循環的鏈表&#xff0c;之前我們學習數據結構的時候&#xff0c;我們就學過。 迭代器的封裝&#xff1a; 我們看這個圖片&#xff0c;我們的鏈表的指針可以達到鏈表的迭代器能力…

遵循IEC62304YY/T0664:確保醫療器械軟件生命周期合規性

一、EC 62304與YY/T 0664的核心定位與關系 IEC 62304&#xff08;IEC 62304&#xff09;是國際通用的醫療器械軟件生命周期管理標準&#xff0c;適用于所有包含軟件的醫療器械&#xff08;如嵌入式軟件、獨立軟件、移動應用等&#xff09;&#xff0c;其核心目標是確保軟件的安…

【next函數python】`next()`函數

在Python中&#xff0c;next()函數結合生成器表達式用于高效地查找序列中第一個符合條件的元素。以下是如何理解和編寫類似代碼的步驟&#xff1a; 1. 生成器表達式 生成器表達式&#xff08;如 (e for e in energy3 if e ! 0)&#xff09;是一種惰性計算的迭代結構。它不會一…

[創業之路-364]:穿透表象:企業投資的深層邏輯與誤區規避

前言&#xff1a; 透過現象看本質 企業一生與人生相似 看企業如同看人 三歲看大&#xff0c;七歲看老 三十年河東&#xff0c;三十年河西 企業也有品行、文化、氣質、性格、賺錢、生命周期與賺錢曲線 投資公司的目的是未來賺錢&#xff0c;賺未來賺錢。投資創業中的企業主要看…

【C++】Stack Queue 仿函數

&#x1f4dd;前言&#xff1a; 這篇文章我們來講講STL中的stack和queue。因為前面我們已經有了string、vector和list的學習基礎&#xff0c;所以這篇文章主要關注一些stack和queue的細節問題&#xff0c;以及了解一下deque&#xff08;縫合怪&#xff09;和priority_queue &am…

[實戰] 天線陣列波束成形原理詳解與仿真實戰(完整代碼)

天線陣列波束成形原理詳解與仿真實戰 1. 引言 在無線通信、雷達和聲學系統中&#xff0c;波束成形&#xff08;Beamforming&#xff09;是一種通過調整天線陣列中各個陣元的信號相位和幅度&#xff0c;將電磁波能量集中在特定方向的技術。其核心目標是通過空間濾波增強目標方…

深圳漫云科技戶外公園實景兒童劇本殺小程序:開啟親子互動新紀元

在親子娛樂需求日益增長的當下&#xff0c;深圳漫云科技推出的戶外公園實景兒童劇本殺小程序&#xff0c;憑借其創新玩法與豐富功能&#xff0c;為親子家庭帶來全新體驗。該小程序融合戶外探險、角色扮演與邏輯推理&#xff0c;不僅滿足孩子好奇心&#xff0c;更提升其思維能力…

HOW - 如何測試 React 代碼

目錄 一、使用 React 測試庫&#xff1a;testing-library/react二、使用測試演練場&#xff1a;testing-playground.com三、使用 Cypress 或 Playwright 進行端到端測試四、使用 MSW 在測試中模擬網絡請求 一、使用 React 測試庫&#xff1a;testing-library/react testing-li…

COBOL語言的網絡安全

COBOL語言與網絡安全&#xff1a;傳統語言的新挑戰 引言 COBOL&#xff08;Common Business-Oriented Language&#xff09;是一種早期編程語言&#xff0c;最初于1959年被開發出來&#xff0c;主要用于商業、金融和行政系統的處理。盡管年代久遠&#xff0c;COBOL在大型機系…

通過世界排名第一的免費開源ERP,構建富有彈性的智能供應鏈

概述 現行供應鏈模式的結構性弱點凸顯了對整個行業進行重塑的必要性。正確策略和支持可以幫助您重塑供應鏈&#xff0c;降低成本&#xff0c;實現業務轉型。開源智造&#xff08;OSCG&#xff09;所推出的Odoo免費開源ERP解決方案&#xff0c;將供應鏈轉化為具有快速響應能力的…

Android 開發中compileSdkVersion 和 targetSdkVersion

在 Android 開發中&#xff0c;compileSdkVersion 和 targetSdkVersion 是 build.gradle 文件中的兩個關鍵配置&#xff0c;它們分別控制應用的編譯行為和運行時兼容性。以下是它們的詳細區別和用途&#xff1a; 1. compileSdkVersion&#xff08;編譯版本&#xff09; 作用&a…

Qt QComboBox 下拉復選多選

Qt 中&#xff0c;QComboBox 默認只支持單選&#xff0c;但實際使用過程中&#xff0c;我們經常會碰到需要多選的情況&#xff0c;但是通過一些直接或者曲折的方法還是可以實現的。 1、通過 QListWidget 間接實現 這種方式是網上搜索最多的一種方式&#xff0c;也是相對來說比…

Selenium自動化:玩轉瀏覽器,搞定動態頁面爬取

嘿&#xff0c;各位爬蟲愛好者和自動化達人們&#xff01;是不是經常遇到這種情況&#xff1a;信心滿滿地寫好爬蟲&#xff0c;requests一把梭&#xff0c;結果抓下來的HTML里&#xff0c;想要的數據空空如也&#xff1f;定睛一看&#xff0c;原來數據是靠JavaScript動態加載出…

天梯賽 L2-023 圖著色問題

使用vector<vector<int>> g(N)去存儲邊&#xff0c;然后每次判斷每個節點的鄰節點是不是相同的顏色&#xff0c;需要注意的是不同的顏色一定需要為K種&#xff0c;不能多也不能少。 #include<bits/stdc.h> using namespace std; int main(){int n,m,k;cin&g…

在ubuntu24上裝ubuntu22

實驗室上有一臺只裝了ubuntu24的電腦&#xff0c;但是項目要求在22上進行 搞兩個ubuntu系統&#xff01; 步驟一&#xff1a;制作22的啟動盤 步驟二&#xff1a;進入bios安裝界面 步驟三&#xff1a;選擇try or install ubuntu 步驟四&#xff1a;選擇try ubuntu 步驟五&…

【PVR Review】《Review of Deep Learning Methods for Palm Vein Recognition》

[1]譚振林,劉子良,黃藹權,等.掌靜脈識別的深度學習方法綜述[J].計算機工程與應用,2024,60(06):55-67. 文章目錄 1、Background and Motivation2、數據采集3、掌脈圖像預處理3.1、ROI提取算法3.2、圖像濾波與增強 4、掌脈識別算法4.1、基于深度學習的方法4.2、其他方法 5、融合識…

【CSP】202403-1詞頻統計

文章目錄 算法思路1. 數據結構選擇2. 輸入處理3. 統計出現的文章數4. 輸出結果 代碼示例代碼優化 樣例輸入 4 3 5 1 2 3 2 1 1 1 3 2 2 2 2 3 2樣例輸出 2 3 3 6 2 2算法思路 1. 數據結構選擇 vector<int>&#xff1a;用于存儲每篇文章的單詞列表&#xff08;可能包含…

Docker基礎1

本篇文章我將從系統的知識體系講解docker的由來和在linux中的安裝下載 隨后的文章會介紹下載鏡像、啟動新容器、登錄新容器 如需轉載&#xff0c;標記出處 docker的出現就是為了節省資本和服務器資源 當企業需要一個新的應用程序時&#xff0c;需要為它買臺全新的服務器。這樣…

Linux系統學習Day04 阻塞特性,文件狀態及文件夾查詢

知識點4【文件的阻塞特性】 文件描述符 默認為 阻塞 的 比如&#xff1a;我們讀取文件數據的時候&#xff0c;如果文件緩沖區沒有數據&#xff0c;就需要等待數據的到來&#xff0c;這就是阻塞 當然寫入的時候&#xff0c;如果發現緩沖區是滿的&#xff0c;也需要等待刷新緩…