diff --git a/20240823/十四届蓝桥比赛/14届省赛真题C++.pdf b/20240823/十四届蓝桥比赛/14届省赛真题C++.pdf new file mode 100644 index 0000000..28c188f Binary files /dev/null and b/20240823/十四届蓝桥比赛/14届省赛真题C++.pdf differ diff --git a/20240823/十四届蓝桥比赛/主要成分.cpp b/20240823/十四届蓝桥比赛/主要成分.cpp new file mode 100644 index 0000000..87d95b6 --- /dev/null +++ b/20240823/十四届蓝桥比赛/主要成分.cpp @@ -0,0 +1,10 @@ +#include +using namespace std; + +int n; + +int main(){ + ios::sync_with_stdio(false),cin.tie(0),cout.tie(0); + + +} \ No newline at end of file diff --git a/20240823/十四届蓝桥比赛/八进制回文平方数.cpp b/20240823/十四届蓝桥比赛/八进制回文平方数.cpp new file mode 100644 index 0000000..ebc18a8 --- /dev/null +++ b/20240823/十四届蓝桥比赛/八进制回文平方数.cpp @@ -0,0 +1,38 @@ +#include +using namespace std; + +bool is_pf(int n){ + int a = sqrt(n); + if(a*a==n){ + return true; + }else{ + return false; + } +} + +bool is_huiwen(int n){ + stringstream ss; + ss<>n; + + for(int i=1;i<=n;i++){ + if(is_pf(i)&&is_huiwen(i)){ + cout<