摘要:
#include"bits/stdc++.h" using namespace std; int prime(int x) { if(x<2) return 0; for(int i=2;i*i<=x;i++) { if(x%i==0) return 0; } return 1; } int mai 阅读全文
posted @ 2022-05-07 19:22
cxy8
阅读(17)
评论(0)
推荐(0)
摘要:
不能直接两重循环数据是1e5会超时 这样 #include"bitsdc++.h" using namespace std; const int N=1e5+10; double a[N],s[N]; double ans; int main() { int n; cin>>n; for(int i 阅读全文
posted @ 2022-05-07 18:45
cxy8
阅读(23)
评论(0)
推荐(0)

浙公网安备 33010602011771号