摘要: 原题链接 题解: #include "iostream" #include "algorithm" #define ll long long using namespace std; ll sum=0; bool prime(ll x){ int n=2; for(;x%n!=0;n++); sum 阅读全文
posted @ 2023-01-15 20:03 Cheng_Mao 阅读(21) 评论(0) 推荐(0)
摘要: 原题链接 题解: 本题有两种办法解决,第一种 使用stl中 next_permutation函数 #include "iostream" #include "algorithm" #include "iomanip" using namespace std; int main(){ int x,n, 阅读全文
posted @ 2023-01-15 19:19 Cheng_Mao 阅读(97) 评论(0) 推荐(0)